Mon Mar 04, 2013 7:55 pm by mr.gilbo
zip wrote:those are 2 different filters, ass only supporting ass files, subtitles supporting any sub file (and converting them to ass and subsequentially invoking the same login as the ass filter).
When I test this I don't get the subtitle filter supporting ass files. Trying to use the subtitle filter with .ass files results in ffmpeg abort:
- Code:
# ffmpeg -i test.avi -vf "subtitles=subtitle.ass" out.avi
ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 2 2013 17:08:03 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-libvpx --enable-librtmp --enable-libxvid --enable-static --disable-shared --enable-pthreads --enable-libass --pkg-config=pkg-config --disable-ffplay --disable-ffserver
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[avi @ 0x1974740] non-interleaved AVI
[mpeg4 @ 0x197ac20] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'test.avi':
Metadata:
encoder : FairUse Wizard - http://fairusewizard.com
Duration: 01:45:43.30, start: 0.000000, bitrate: 1052 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 608x320 [SAR 1:1 DAR 19:10], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s
Stream #0:2: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s
[Parsed_subtitles_0 @ 0x1996400] Unable to open subtitle.ass
[AVFilterGraph @ 0x19960e0] Error initializing filter 'subtitles' with args 'subtitle.ass'
Error opening filters!
Using
- Code:
ffmpeg -i test.avi -vf "ass=subtitle.ass" out.avi
produces correct burned in subtitles.
I converted the .srt to .ass using this version of ffmpeg so I'm not sure why the .ass file seems to be incompatible with the subtitles filter. Possibly a bug in ffmpeg?