[FFmpeg-user] subtitles in version 0.9?

Rick C. rickcorteza at gmail.com
Sat Jan 14 07:17:58 CET 2012


On Jan 14, 2012, at 12:11 AM, Clément Bœsch wrote:

> On Thu, Jan 12, 2012 at 09:10:12PM +0800, Rick C. wrote:
>> 
>> On Jan 10, 2012, at 4:34 PM, Clément Bœsch wrote:
>> 
>>> On Tue, Jan 10, 2012 at 04:31:44PM +0800, Rick C. wrote:
>>>> 
>>>> On Jan 10, 2012, at 4:12 PM, Clément Bœsch wrote:
>>>> 
>>>>> On Tue, Jan 10, 2012 at 07:37:07AM +0800, Rick C. wrote:
>>>>>> Hello,
>>>>>> 
>>>>> 
>>>>> Hi,
>>>>> 
>>>>>> I just wanted to know was there any new subtitle features added in version 0.9?  I was not able to confirm that's why I thought I'd ask.  Thanks!
>>>>>> 
>>>>> 
>>>>> There is a libass "overlay" filter: http://ffmpeg.org/libavfilter.html#ass
>>>>> 
>>>>> [...]
>>>>> 
>>>>> -- 
>>>>> Clément B.
>>>> 
>>>> 
>>>> Great thanks!  This won't work with .srt files right?
>>>> 
>>> 
>>> Right. This is planed though (I can't give a deadline since it might take
>>> quite a while). AFAIK tools like gaupol, subtitleseditor or audacity can
>>> do the convert to ASS.
>>> 
>>> -- 
>>> Clément B.
>> 
>> 
>> If I can ask a related question? :-)  I've also been working to keep subtitles when going from a .mkv to .mp4 for example.  I just added -scodec copy and I know if there are subtitles it will try to add them.  But I've had limited success as this often seems to fail, but there are a few that worked I think from .mp4 to .mp4.  Question is what else can I do besides -scodec copy?  I know the codecs are listed in help but I haven't found much info how to make this work?  Thanks again,
>> 
> 
> You should provide samples so we can reproduce such issue. "often",
> "seems" and uncomplete information are not easy to deal with.
> 
> -- 
> Clément B.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Hi again,

Ok this is the output below.  I know the problem lies with the -scodec copy because if I remove it the movie converts normally.  Just trying to figure out what I need to do in order to make this work.  Thanks!


Last login: Fri Jan 13 10:44:18 on ttys007
mahalkos-iMac:~ mahalko$ /Users/mahalko/Desktop/ffmpeg0.9.1 -i /Users/mahalko/z2-myDesktop/Apollo.18.2011.1080p.x264.MKV.AC3.DTS.Eng.NL.Subs/Apollo.18.2011.1080p.x264.MKV.AC3.DTS.Eng.NL.Subs/Apollo.18.2011.1080p.x264.MKV.AC3.DTS.Eng.NL.Subs.mkv -scodec copy -strict experimental /Users/mahalko/Desktop/test.mp4
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 18 2011 16:33:23 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --arch=x86_64 --enable-runtime-cpudetect
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, matroska,webm, from '/Users/mahalko/z2-myDesktop/Apollo.18.2011.1080p.x264.MKV.AC3.DTS.Eng.NL.Subs/Apollo.18.2011.1080p.x264.MKV.AC3.DTS.Eng.NL.Subs/Apollo.18.2011.1080p.x264.MKV.AC3.DTS.Eng.NL.Subs.mkv':
  Duration: 01:26:32.03, start: 0.000000, bitrate: 11481 kb/s
    Chapter #0.0: start 0.000000, end 213.547000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 213.547000, end 524.274000
    Metadata:
      title           : 00:03:33.547
    Chapter #0.2: start 524.274000, end 938.938000
    Metadata:
      title           : 00:08:44.274
    Chapter #0.3: start 938.938000, end 1368.158000
    Metadata:
      title           : 00:15:38.938
    Chapter #0.4: start 1368.158000, end 1908.323000
    Metadata:
      title           : 00:22:48.158
    Chapter #0.5: start 1908.323000, end 2194.401000
    Metadata:
      title           : 00:31:48.323
    Chapter #0.6: start 2194.401000, end 2828.159000
    Metadata:
      title           : 00:36:34.401
    Chapter #0.7: start 2828.159000, end 3360.315000
    Metadata:
      title           : 00:47:08.159
    Chapter #0.8: start 3360.315000, end 3459.581000
    Metadata:
      title           : 00:56:00.315
    Chapter #0.9: start 3459.581000, end 3865.111000
    Metadata:
      title           : 00:57:39.581
    Chapter #0.10: start 3865.111000, end 4228.850000
    Metadata:
      title           : 01:04:25.111
    Chapter #0.11: start 4228.850000, end 4473.469000
    Metadata:
      title           : 01:10:28.850
    Chapter #0.12: start 4473.469000, end 4586.582000
    Metadata:
      title           : 01:14:33.469
    Chapter #0.13: start 4586.582000, end 5192.032000
    Metadata:
      title           : 01:16:26.582
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default)
    Metadata:
      title           : DTS
    Stream #0:2: Audio: ac3, 48000 Hz, 5.1(side), s16, 640 kb/s
    Metadata:
      title           : AC3
    Stream #0:3(eng): Subtitle: text (default)
    Metadata:
      title           : English
    Stream #0:4(dut): Subtitle: text
    Metadata:
      title           : Nederlands
[buffer @ 0x10151e7e0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[libx264 @ 0x101845e00] using SAR=1/1
[libx264 @ 0x101845e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x101845e00] profile High, level 4.0
[libx264 @ 0x101845e00] 264 - core 119 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x101b9d000] track 2: could not find tag, codec not currently supported in container
Output #0, mp4, to '/Users/mahalko/Desktop/test.mp4':
  Metadata:
    encoder         : Lavf53.24.0
    Chapter #0.0: start 0.000000, end 213.547000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 213.547000, end 524.274000
    Metadata:
      title           : 00:03:33.547
    Chapter #0.2: start 524.274000, end 938.938000
    Metadata:
      title           : 00:08:44.274
    Chapter #0.3: start 938.938000, end 1368.158000
    Metadata:
      title           : 00:15:38.938
    Chapter #0.4: start 1368.158000, end 1908.323000
    Metadata:
      title           : 00:22:48.158
    Chapter #0.5: start 1908.323000, end 2194.401000
    Metadata:
      title           : 00:31:48.323
    Chapter #0.6: start 2194.401000, end 2828.159000
    Metadata:
      title           : 00:36:34.401
    Chapter #0.7: start 2828.159000, end 3360.315000
    Metadata:
      title           : 00:47:08.159
    Chapter #0.8: start 3360.315000, end 3459.581000
    Metadata:
      title           : 00:56:00.315
    Chapter #0.9: start 3459.581000, end 3865.111000
    Metadata:
      title           : 00:57:39.581
    Chapter #0.10: start 3865.111000, end 4228.850000
    Metadata:
      title           : 01:04:25.111
    Chapter #0.11: start 4228.850000, end 4473.469000
    Metadata:
      title           : 01:10:28.850
    Chapter #0.12: start 4473.469000, end 4586.582000
    Metadata:
      title           : 01:14:33.469
    Chapter #0.13: start 4586.582000, end 5192.032000
    Metadata:
      title           : 01:16:26.582
    Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 24k tbn, 23.98 tbc (default)
    Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 5.1(side), s16, 128 kb/s (default)
    Metadata:
      title           : DTS
    Stream #0:2(eng): Subtitle: text (default)
    Metadata:
      title           : English
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (dca -> aac)
  Stream #0:3 -> #0:2 (copy)
Could not write header for output file #0 (incorrect codec parameters ?)
mahalkos-iMac:~ mahalko$ 




More information about the ffmpeg-user mailing list