saloromer / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

Multiple File Output error #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Take source input(s), render out 2 output files, one 320x240 the other 80x60.

What is the expected output? What do you see instead?

1. In ffmpeg (ffmbc), rendering out two output files simultaneously, one 
320x240, the other 80x60.

2. Normally (non-ffmbc build), each file comes out at the desired size.

3. With ffmbc ffmpeg, if I specify the larger 320x240 file first, the smaller 
80x60 output file only contains the 1st quadrant of the 320x240 output file. If 
I specify the smaller 80x60 output file, the larger 320x240 contains 4 80x60 
full frames in one 320x240 frame (see attached.)

What version of the product are you using? On what operating system?
FFmpeg version FFmbc-0.4-rc1, Linux 2.6.32-21-server #32-Ubuntu SMP x86_64 
GNU/Linux

Please provide any additional information below:

- Full commandline run and everything the program printed without
the repeating parts.

pw@pw-t2-elves:~$ /usr/local/bin/ffmpeg -f mjpeg -r 29.97 -s 288x244 -i 
/Volumes/loadingdock_tc1/.GR10619AV01.4C2597C8.AE3EE0.mxf -f s16le -acodec 
pcm_s16le -ar 48000 -i 
/Volumes/loadingdock_tc1/.GR10619AA01.4C2597C8.AE3ED0.mxf -f s16le -acodec 
pcm_s16le -ar 48000 -i 
/Volumes/loadingdock_tc1/.GR10619AA02.4C2597C8.AE3EC0.mxf -f s16le -acodec 
pcm_s16le -ar 48000 -i 
/Volumes/loadingdock_tc1/.GR10619AA03.4C2597C8.AE3EB0.mxf -f s16le -acodec 
pcm_s16le -ar 48000 -i 
/Volumes/loadingdock_tc1/.GR10619AA04.4C2597C8.AE3EA0.mxf -map 0:0 -map 1:0 
-map 2:0 -map 3:0 -map 4:0 -b 200k -maxrate 200k -s 80x60 -vcodec libx264 -vpre 
ultrafast_firstpass -acodec libfaac -y -threads 0 -timecode 16:47:40:18 
/Volumes/PilotWare_DV_Hangar/GR1_MEDIA/FTP/GR10619A10/GR10619A10-1test3.mov 
-newaudio -newaudio -newaudio -map 0:0 -map 1:0 -map 2:0 -map 3:0 -map 4:0 -b 
800k -s 320x240 -vcodec libx264 -vpre ultrafast_firstpass -acodec libfaac -y 
-threads 0 -timecode 16:47:40:18 
/Volumes/PilotWare_DV_Hangar/GR1_MEDIA/LOCAL/GR10619A10/GR10619A10-1test3.mov 
-newaudio -newaudio -newaudio
FFmpeg version FFmbc-0.4-rc1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jun  3 2010 12:42:08 with gcc 4.4.3
  configuration: --enable-pthreads --enable-libvorbis --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-nonfree --enable-gpl --enable-libx264 --enable-runtime-cpudetect --enable-libgsm --enable-libxvid --enable-libtheora --disable-mmx --extra-cflags=-m64 --enable-pic --enable-shared --disable-static
  libavutil     50.14. 0 / 50.14. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.60. 0 / 52.60. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.18. 0 /  1.18. 0
  libswscale     0.10. 0 /  0.10. 0
[mjpeg @ 0x1ac7420]Estimating duration from bitrate, this may be inaccurate
Input #0, mjpeg, from 
'/Volumes/loadingdock_tc1/.GR10619AV01.4C2597C8.AE3EE0.mxf':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0(und): Video: mjpeg, yuvj422p, 288x248, tbc 100/2997, fps 29.970
[s16le @ 0x1ada940]Estimating duration from bitrate, this may be inaccurate
Input #1, s16le, from 
'/Volumes/loadingdock_tc1/.GR10619AA01.4C2597C8.AE3ED0.mxf':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #1.0(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[s16le @ 0x1ae49c0]Estimating duration from bitrate, this may be inaccurate
Input #2, s16le, from 
'/Volumes/loadingdock_tc1/.GR10619AA02.4C2597C8.AE3EC0.mxf':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #2.0(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[s16le @ 0x1aeea40]Estimating duration from bitrate, this may be inaccurate
Input #3, s16le, from 
'/Volumes/loadingdock_tc1/.GR10619AA03.4C2597C8.AE3EB0.mxf':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #3.0(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[s16le @ 0x1af8ac0]Estimating duration from bitrate, this may be inaccurate
Input #4, s16le, from 
'/Volumes/loadingdock_tc1/.GR10619AA04.4C2597C8.AE3EA0.mxf':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #4.0(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[scale @ 0x1b48fb0]fmt:yuvj422p 288x248 -> fmt:yuv420p 80x60
[scale @ 0x1b55370]fmt:yuvj422p 288x248 -> fmt:yuv420p 320x240
[libx264 @ 0x1b03f40]VBV maxrate specified, but no bufsize, ignored
[libx264 @ 0x1b03f40]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle 
SSE4.1 Cache64
[libx264 @ 0x1b03f40]profile Baseline, level 1.3
[libx264 @ 0x1b03f40]x264 - core 85 Ubuntu_2:0.85.1448+git1a6d32-4 - 
H.264/MPEG-4 AVC codec - Copyleft 2003-2009 - http://www.videolan.org/x264.html 
- options: cabac=0 ref=1 deblock=0:0:0 analyse=0x1:0 me=dia subme=0 psy=1 
psy_rd=0.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 
deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=64 sliced_threads=0 nr=0 
decimate=1 mbaff=0 constrained_intra=0 bframes=0 wpredp=0 keyint=250 
keyint_min=25 scenecut=0 intra_refresh=0 rc=abr mbtree=0 bitrate=200 
ratetol=20.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41 aq=0
[libx264 @ 0x1b26880]VBV maxrate specified, but no bufsize, ignored
[libx264 @ 0x1b26880]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle 
SSE4.1 Cache64
[libx264 @ 0x1b26880]profile Baseline, level 2.0
[libx264 @ 0x1b26880]x264 - core 85 Ubuntu_2:0.85.1448+git1a6d32-4 - 
H.264/MPEG-4 AVC codec - Copyleft 2003-2009 - http://www.videolan.org/x264.html 
- options: cabac=0 ref=1 deblock=0:0:0 analyse=0x1:0 me=dia subme=0 psy=1 
psy_rd=0.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 
deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=64 sliced_threads=0 nr=0 
decimate=1 mbaff=0 constrained_intra=0 bframes=0 wpredp=0 keyint=250 
keyint_min=25 scenecut=0 intra_refresh=0 rc=abr mbtree=0 bitrate=800 
ratetol=5.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41 aq=0
Output #0, mov, to 
'/Volumes/PilotWare_DV_Hangar/GR1_MEDIA/FTP/GR10619A10/GR10619A10-1test3.mov':
  Metadata:
    encoder: FFmbc 0.4
    Stream #0.0(und): Video: libx264, yuv420p, 80x60, tbc 1001/30000, q=10-51, 200 kb/s
    Stream #0.1(und): Audio: aac, 48000 Hz, 1 channels, s16, 64 kb/s
    Stream #0.2(und): Audio: aac, 48000 Hz, 1 channels, s16, 64 kb/s
    Stream #0.3(und): Audio: aac, 48000 Hz, 1 channels, s16, 64 kb/s
    Stream #0.4(und): Audio: aac, 48000 Hz, 1 channels, s16, 64 kb/s
Output #1, mov, to 
'/Volumes/PilotWare_DV_Hangar/GR1_MEDIA/LOCAL/GR10619A10/GR10619A10-1test3.mov':
  Metadata:
    encoder: FFmbc 0.4
    Stream #1.0(und): Video: libx264, yuv420p, 320x240, tbc 1001/30000, q=10-51, 800 kb/s
    Stream #1.1(und): Audio: aac, 48000 Hz, 1 channels, s16, 64 kb/s
    Stream #1.2(und): Audio: aac, 48000 Hz, 1 channels, s16, 64 kb/s
    Stream #1.3(und): Audio: aac, 48000 Hz, 1 channels, s16, 64 kb/s
    Stream #1.4(und): Audio: aac, 48000 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #1.0 -> #0.1
  Stream #2.0 -> #0.2
  Stream #3.0 -> #0.3
  Stream #4.0 -> #0.4
  Stream #0.0 -> #1.0
  Stream #1.0 -> #1.1
  Stream #2.0 -> #1.2
  Stream #3.0 -> #1.3
  Stream #4.0 -> #1.4
Press [q] to stop encoding
frame= 1685 fps= 53 q=12.0 Lq=24.0 size=    3274kB time=56.22 bitrate= 
477.0kbits/s    
video:7255kB audio:3580kB global headers:0kB muxing overhead -69.786495%
[libx264 @ 0x1b03f40]frame I:7     Avg QP:10.29  size:  1743
[libx264 @ 0x1b03f40]frame P:1678  Avg QP:11.85  size:   837
[libx264 @ 0x1b03f40]mb I  I16..4:  7.1%  0.0% 92.9%
[libx264 @ 0x1b03f40]mb P  I16..4: 16.2%  0.0%  0.0%  P16..4: 80.8%  0.0%  0.0% 
 0.0%  0.0%    skip: 3.0%
[libx264 @ 0x1b03f40]final ratefactor: 16.42
[libx264 @ 0x1b03f40]coded y,uvDC,uvAC intra: 72.1% 84.7% 70.6% inter: 75.1% 
71.7% 47.8%
[libx264 @ 0x1b03f40]i16 v,h,dc,p: 66% 19%  8%  7%
[libx264 @ 0x1b03f40]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 31% 11%  4%  4%  3%  4% 
 3%  6%
[libx264 @ 0x1b03f40]kb/s:201.69
[libx264 @ 0x1b26880]frame I:7     Avg QP:22.86  size: 14553
[libx264 @ 0x1b26880]frame P:1678  Avg QP:25.55  size:  3522
[libx264 @ 0x1b26880]mb I  I16..4: 19.2%  0.0% 80.8%
[libx264 @ 0x1b26880]mb P  I16..4:  4.5%  0.0%  0.0%  P16..4: 65.4%  0.0%  0.0% 
 0.0%  0.0%    skip:30.1%
[libx264 @ 0x1b26880]final ratefactor: 25.03
[libx264 @ 0x1b26880]coded y,uvDC,uvAC intra: 55.1% 48.9% 30.9% inter: 42.4% 
15.7% 4.5%
[libx264 @ 0x1b26880]i16 v,h,dc,p: 70% 19%  8%  4%
[libx264 @ 0x1b26880]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 23% 13%  7%  6%  6%  6% 
 6%  8%
[libx264 @ 0x1b26880]kb/s:855.31

Original issue reported on code.google.com by ericpar...@gmail.com on 28 Jun 2010 at 6:52

Attachments:

GoogleCodeExporter commented 8 years ago
Here's a simpler test case:

Download this: http://pw.atlasdigital.tv/pilotware_dv_hangar/MZ0525B1-8.mov

Then execute these two commands:
1.
ffmpeg -i MZ0525B1-8.mov -b 200k -maxrate 200k -s 80x60 -vcodec libx264 -vpre 
ultrafast_firstpass -acodec libfaac -y -threads 0 -timecode 16:47:40:18 
MZ0525B1-8small.mov -b 800k -s 320x240 -vcodec libx264 -vpre 
ultrafast_firstpass -acodec libfaac -y -threads 0 -timecode 16:47:40:18 
MZ0525B1-8same.mov

2. ffmpeg -i MZ0525B1-8.mov -b 800k -s 320x240 -vcodec libx264 -vpre 
ultrafast_firstpass -acodec libfaac -y -threads 0 -timecode 16:47:40:18 
MZ0525B1-8sameFirst.mov -b 200k -maxrate 200k -s 80x60 -vcodec libx264 -vpre 
ultrafast_firstpass -acodec libfaac -y -threads 0 -timecode 16:47:40:18 
MZ0525B1-8smallsecond.mov

You can see what I mean as described above.

Eric

Original comment by ericpar...@gmail.com on 29 Jun 2010 at 9:57

GoogleCodeExporter commented 8 years ago
Fixed in 0.6-rc3

Original comment by baptiste...@gmail.com on 9 Mar 2011 at 3:00