[FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file
Albert Scholtalbers
compuvision.sr at gmail.com
Wed Jul 10 20:56:55 CEST 2013
Hi there,
I'm trying to produce MPEG2 files with hardcoded subs using ffmpeg under
Windows.
I'm following the instructions here:
http://trac.ffmpeg.org/wiki/How%20to%20burn%20subtitles%20into%20the%20video
I get perfect MPEG2 files with the default template in winff.
ffmpeg.exe -y -i "E:\src.mkv" -f dvd -target ntsc-dvd -r 29.97 -vf
scale=720:480 -aspect 16:9 -b:v 8000k -g 12 -mbd rd -trellis 1 -flags +mv0
-cmp 0 -subcmp 2 "E:\dest.mpg"
When I enter the option -vf subtitles=src.srt, like this
ffmpeg.exe -y -i "E:\src.mkv" -vf subtitles=src.srt -f dvd -target ntsc-dvd
-r 29.97 -vf scale=720:480 -aspect 16:9 -b:v 8000k -g 12 -mbd rd -trellis 1
-flags +mv0 -cmp 0 -subcmp 2 "E:\dest.mpg"
I get still the same mpeg file, without any subs....
When I type ffmpeg.exe I see it's compiled with libass
ffmpeg version N-51433-g551f683 Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 28 2013 21:58:26 with gcc 4.8.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray
--enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-lib
twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxa
vs --enable-libxvid --enable-zlib
libavutil 52. 22.101 / 52. 22.101
libavcodec 55. 2.100 / 55. 2.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 48.105 / 3. 48.105
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
What is the problem, what am I doing wrong?
The output is this:
ffmpeg version N-51433-g551f683 Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 28 2013 21:58:26 with gcc 4.8.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray
--enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-lib
twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxa
vs --enable-libxvid --enable-zlib
libavutil 52. 22.101 / 52. 22.101
libavcodec 55. 2.100 / 55. 2.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 48.105 / 3. 48.105
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from src.mkv':
Metadata:
creation_time : 2013-04-11 22:04:12
Duration: 01:26:25.18, start: 0.000000, bitrate: 6955 kb/s
Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x688 [SAR 1:1 DAR
80:43], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
(default)
Stream #0:1: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
(default)
Output #0, dvd, to 'E:\testmpg.mpg':
Metadata:
encoder : Lavf55.0.100
Stream #0:0(eng): Video: mpeg2video (hq), yuv420p, 720x480 [SAR 32:27
DAR 16:9], q=2-31, 8000 kb/s, 90k tbn, 29.97 t
bc (default)
Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Stream #0:1 -> #0:1 (dca -> ac3)
Press [q] to stop, [?] for help
More information about the ffmpeg-user
mailing list