A UTF-16 srt hangs mencoder
James Harvey <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Message-ID | <CA+X5Wn7AbW3QqNgMNf1P-5yqCPZBhaNcbnBYxKos8-H89+ddeQ@mail.gmail.com> |
The subtitles from http://www.tvsubtitles.net/download-114308.html cause mencoder to hang for me. Running this command line: mencoder 'Law & Order S03E05 Wedded Bliss SD DVD.avi' -ovc xvid -oac mp3lame -xvidencopts bitrate=1700 -vf scale=640:360 -sub '/home/jamespharvey30/Downloads/Law Order - 3x05 - Wedded Bliss.DVDRip.en.srt' -subfont-text-scale 3 -o 'Law & Order S03E05 Wedded Bliss SD DVD.new.avi' -msglevel all=9 Creates the following output, and hangs with 100% CPU usage. ... ========================================================================== SPU: Display only forced subs now disabled [file] File size is 0 bytes STREAM: [file] Law & Order S03E05 Wedded Bliss SD DVD.new.avi STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) xvid: using library version 1.3.5 (build xvid-1.3.5) Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale w=640 h=360] SwScale params: 640 x 360 (-1=no scaling) [file] File size is 146061 bytes STREAM: [file] /home/mdarling/Downloads/lo3/Law Order - 3x05 - Wedded Bliss.DVDRip.en.srt STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) SUB: Detected subtitle file format: subviewer If I run: iconv -f utf16le -t utf8 Law\ Order\ -\ 3x05\ -\ Wedded\ Bliss.DVDRip.en.srt > law305.srt It warns "iconv: incomplete character or shift sequence at end of buffer", but creates a .srt that mencoder properly uses. On this particular file, there is some garbage at the end of the last line. Not sure if that means the original UTF-16 srt is corrupted, but even so, maybe mencoder could be changed to not hang on it. _______________________________________________ MPlayer-users mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users