[FFmpeg-trac] #2431(avcodec:new): Detect if subtitle streams do not contain valid utf-8
FFmpeg
trac at avcodec.org
Fri Apr 5 14:00:38 CEST 2013
#2431: Detect if subtitle streams do not contain valid utf-8
-------------------------------------+-----------------------------------
Reporter: Nick | Owner:
Type: enhancement | Status: new
Priority: wish | Component: avcodec
Version: git-master | Resolution:
Keywords: sub srt | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-----------------------------------
Comment (by Nick):
Replying to [comment:13 cehoyos]:
> As you told me in comment:5 (I didn't know before, I had never tested
it): with -sub_charenc cp1252
> $ ffmpeg -f lavfi -i testsrc -sub_charenc cp1252 -i subtitle_test.srt
-vcodec mpeg4 -scodec mov_text -t 60 out.mov
[[BR]]
I tested your command line and I try to adapt that for my test files:
{{{
ffmpeg -i input.mp4 -sub_charenc cp1252 -i subtitle_test.srt -vcodec copy
-acodec copy -scodec mov_text output.mp4
}}}
In both cases I get following error messages:
{{{
C:\Video>ffmpeg -i input.mp4 -sub_charenc cp1252 -i subtitle_test.srt
-vcodec copy -acodec copy -scodec mov_text output.mp4
ffmpeg version N-51511-g599866f Copyright (c) 2000-2013 the FFmpeg
developers
built on Apr 1 2013 12:44:46 with gcc 4.8.0 (GCC)
[...]
[subrip @ 024fc540] Character encoding subtitles conversion needs a
libavcodec built with iconv support for this codec
Input #1, srt, from 'subtitle_test.srt':
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: subrip
[subrip @ 024fc540] Character encoding subtitles conversion needs a
libavcodec built with iconv support for this codec
[...]
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (subrip -> mov_text)
Error while opening decoder for input stream #1:0
}}}
The same happens if I try to import an ASS subtitle file, like:
''ffmpeg -i input.mp4 -sub_charenc cp1252 -i subtitle_test.ass -vcodec
copy -acodec copy -scodec mov_text output.mp4''
"'''Character encoding subtitles conversion needs a libavcodec built with
iconv support for this codec'''" (?) -->
Where I can found a Windows build of ffmpeg.exe built with iconv support
for srt/ass?
Would be the activation of the "iconv support" for SRT and ASS subtitle
streams/files as default already the solution of my problem? This sounds
like a pratical solution!
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2431#comment:14>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list