[FFmpeg-trac] #467(avfilter:new): Encoding an image only movie fails when used with the movie overlay filter

FFmpeg trac at avcodec.org
Thu Sep 15 10:13:31 CEST 2011


#467: Encoding an image only movie fails when used with the movie overlay filter
------------------------------------+------------------------------------
             Reporter:  jogga       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  important   |                Component:  avfilter
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by jogga):

 >Was there really a working filter system before r25526?
 [[BR]]
 Yes, but libavfilter was in it's own branch back then. I use this version
 that's still working. svn co svn://svn.ffmpeg.org/soc/libavfilter@r5940
 [[BR]]
 >Please add a minimal command line (without external libraries) and the
 output.
 [[BR]]
 This as simple as I can make it

 {{{
 ffmpeg -y -i /Users/jogga/Desktop/skiing.m4v -vf
 "movie=/Users/jogga/Desktop/skiing_subtitles.mov:f=mov,
 pad=640:360:0:286:0x00000000[subtitles];[in][subtitles]
 overlay=0:0:1[out]" /Users/jogga/Desktop/skiing_subtitled.m4v
 }}}
 and this is the uncut output

 {{{
 ffmpeg version N-32576-g872655f, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Sep 14 2011 10:39:13 with clang 2.1 (tags/Apple/clang-163.7.1)
   configuration: --arch=x86_64 --cc=clang --disable-debug --disable-shared
 --enable-static --enable-libmp3lame --enable-libx264 --enable-libxvid
 --enable-libvpx --enable-libtheora --enable-libvorbis --disable-ffplay
 --disable-ffserver --enable-gpl --enable-swscale --enable-avfilter
 --enable-filter=movie
   libavutil    51. 16. 0 / 51. 16. 0
   libavcodec   53. 14. 0 / 53. 14. 0
   libavformat  53. 12. 0 / 53. 12. 0
   libavdevice  53.  3. 0 / 53.  3. 0
   libavfilter   2. 40. 0 /  2. 40. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0

 Seems stream 0 codec frame rate differs from container frame rate: 5000.00
 (5000/1) -> 25.00 (25/1)
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jogga/Desktop/skiing.m4v':
   Metadata:
     major_brand     : M4V
     minor_version   : 1
     compatible_brands: M4V M4A mp42isom
     creation_time   : 2011-09-15 08:04:40
     encoder         : Mac OS X v10.7.1 (CMA 889, CM 705.35, i386)
   Duration: 00:00:09.96, start: 0.000000, bitrate: 1531 kb/s
     Stream #0.0(und): Video: h264 (Constrained Baseline) (avc1 /
 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 1529 kb/s, 25.09 fps, 25
 tbr, 2500 tbn, 5k tbc
     Metadata:
       creation_time   : 2011-09-15 08:04:40
 [buffer @ 0x108e01420] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:
 [movie @ 0x108e02460] seek_point:0 format_name:mov
 file_name:/Users/jogga/Desktop/skiing_subtitles.mov stream_index:0
 [overlay @ 0x108e03760] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_pad_1' and the filter 'Parsed_overlay_2'
 [pad @ 0x108e03500] w:640 h:74 -> w:640 h:360 x:0 y:286
 color:0x00000000[rgba]
 [scale @ 0x108e01a40] w:640 h:360 fmt:bgra -> w:640 h:360 fmt:yuva420p
 flags:0x4
 [overlay @ 0x108e03760] main w:640 h:360 fmt:yuv420p overlay x:0 y:0 w:640
 h:360 fmt:yuva420p
 [overlay @ 0x108e03760] main_tb:1/1000000 overlay_tb:1/600 -> tb:1/3000000
 exact:1
 [libx264 @ 0x7f9eab807600] using SAR=1/1
 [libx264 @ 0x7f9eab807600] using cpu capabilities: MMX2 SSE2Fast SSSE3
 FastShuffle SSE4.2
 [libx264 @ 0x7f9eab807600] profile High, level 3.0
 [libx264 @ 0x7f9eab807600] 264 - core 115 r1937 aa21558 - 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=25 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
 Output #0, ipod, to '/Users/jogga/Desktop/skiing_subtitled.m4v':
   Metadata:
     major_brand     : M4V
     minor_version   : 1
     compatible_brands: M4V M4A mp42isom
     creation_time   : 2011-09-15 08:04:40
     encoder         : Lavf53.12.0
     Stream #0.0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 640x360
 [SAR 1:1 DAR 16:9], q=-1--1, 25 tbn, 25 tbc
     Metadata:
       creation_time   : 2011-09-15 08:04:40
 Stream mapping:
   Stream #0.0 -> #0.0 (h264 -> libx264)
 Press [q] to stop, [?] for help
 frame=   73 fps=  0 q=28.0 size=      91kB time=00:00:00.84 bitrate=
 886.2kbits/frame=  113 fps=108 q=28.0 size=     190kB time=00:00:02.44
 bitrate= 636.6kbits/frame=  156 fps=101 q=28.0 size=     326kB
 time=00:00:04.16 bitrate= 642.0kbits/frame=  198 fps= 96 q=28.0 size=
 447kB time=00:00:05.84 bitrate= 627.7kbits/frame=  231 fps= 90 q=28.0
 size=     684kB time=00:00:07.16 bitrate= 782.3kbits/frame=  250 fps= 73
 q=-1.0 Lsize=    1070kB time=00:00:09.92 bitrate= 883.4kbits/s
 video:1065kB audio:0kB global headers:0kB muxing overhead 0.412756%
 frame I:7     Avg QP:20.72  size: 17157
 [libx264 @ 0x7f9eab807600] frame P:132   Avg QP:23.97  size:  5745
 [libx264 @ 0x7f9eab807600] frame B:111   Avg QP:27.70  size:  1908
 [libx264 @ 0x7f9eab807600] consecutive B-frames: 23.2% 46.4% 19.2% 11.2%
 [libx264 @ 0x7f9eab807600] mb I  I16..4: 65.8%  3.3% 30.9%
 [libx264 @ 0x7f9eab807600] mb P  I16..4: 17.9%  7.7%  3.5%  P16..4: 48.2%
 6.5%  3.4%  0.0%  0.0%    skip:12.8%
 [libx264 @ 0x7f9eab807600] mb B  I16..4:  2.7%  1.8%  0.7%  B16..8: 42.4%
 3.1%  0.6%  direct: 2.4%  skip:46.3%  L0:71.0% L1:20.5% BI: 8.4%
 [libx264 @ 0x7f9eab807600] 8x8 transform intra:24.2% inter:46.0%
 [libx264 @ 0x7f9eab807600] coded y,uvDC,uvAC intra: 42.7% 29.2% 1.0%
 inter: 24.5% 14.0% 0.0%
 [libx264 @ 0x7f9eab807600] i16 v,h,dc,p: 35% 25% 26% 14%
 [libx264 @ 0x7f9eab807600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 24% 44%  3%
 2%  2%  2%  2%  5%
 [libx264 @ 0x7f9eab807600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 29% 25%  3%
 3%  2%  3%  2%  5%
 [libx264 @ 0x7f9eab807600] i8c dc,h,v,p: 73% 15% 11%  1%
 [libx264 @ 0x7f9eab807600] Weighted P-Frames: Y:25.0% UV:19.7%
 [libx264 @ 0x7f9eab807600] ref P L0: 72.8% 15.0% 10.0%  2.2%  0.1%
 [libx264 @ 0x7f9eab807600] ref B L0: 97.2%  2.4%  0.3%
 [libx264 @ 0x7f9eab807600] ref B L1: 97.9%  2.1%
 [libx264 @ 0x7f9eab807600] kb/s:872.20
 }}}

 The two input files:

 http://dl.dropbox.com/u/659266/skiing.m4v
 http://dl.dropbox.com/u/659266/skiing_subtitles.mov

 And the resulting output file:

 http://dl.dropbox.com/u/659266/skiing_subtitled.m4v

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/467#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list