jslhs / ffmbc

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

FFmbc 0.7 rc7 video only MXF #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If I put just a mpeg2 video stream into an MXF then about every 10-20 seconds a 
key frame is missed from the output file.

What steps will reproduce the problem?
--------------------------------------

ffmbc -threads 2 -loglevel debug -i "EBU_uncompressed.mov" -threads 4 -vcodec 
mpeg2video -flags2 +ivlc+non_linear_q -dc 11 -g 15 -bf 2  -b 50000000 
-color_primaries bt709 -color_transfer bt709 -color_matrix bt709 -pix_fmt 
yuv422p -aspect 16:9 -tff -an -f mxf -timecode "01:00:00:00" -y "./out.mxf"

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

In this instance in my encode, frame 511 should have been a key-frame but it is 
missing. The video is not usable.

Using ffprobe, you can see that the pts and dts don't appear to be valid when 
the mxf doesn't contain audio.

ffprobe -show_packets out.mxf > out.txt

And if you go through the output (or use the xml output format from FFmpeg's 
ffprobe) then you can see when the GOP is extended to > 15 frames - because the 
I frame is missing.

Please use labels and text to provide additional information.
-------------------------------------------------------------

ffmbc -threads 2 -loglevel debug -i "EBU_uncompressed.mov" -threads 4 -vcodec 
mpeg2video -flags2 +ivlc+non_linear_q -dc 11 -g 15 -bf 2  -b 50000000 
-color_primaries bt709 -color_transfer bt709 -color_matrix bt709 -pix_fmt 
yuv422p -aspect 16:9 -tff -an -f mxf -timecode "01:00:00:00" -y "./out.mxf"
FFmbc version 0.7-rc7-static
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] Format mov,mp4,m4a,3gp,3g2,mj2 probed 
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] ISO: File Type Major Brand: qt  
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] 0: start_time: 0 duration: 1759
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] 1: start_time: 0 duration: 3377280
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] 2: start_time: 0 duration: 3377280
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] 3: start_time: 0 duration: 3377280
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] 4: start_time: 0 duration: 3377280
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa09b00] 5: start_time: 0 duration: 1759
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'EBU_uncompressed.mov':
  Metadata:
    major_brand: qt  
    minor_version: 537199360
    compatible_brands: qt  
    creation_time: 2012-10-16 17:05:37
    com.apple.finalcutstudio.media.uuid: D7DEFFE6-FAD3-4F08-B779-77A3FE8B7E5E
    timecode: 01:00:00:00
  Duration: 00:01:10.36, start: 0.000000, bitrate: 832525 kb/s
    Stream #0.0(eng), 1, 1/25: Video: rawvideo, uyvy422, 1920x1080i tff, tbc 0/1, 829440 kb/s, PAR 1:1 DAR 16:9, tbr 25/1, tba 25/1, 25.00 fps
    Stream #0.1(eng), 25, 1/48000: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.2(eng), 25, 1/48000: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.3(eng), 25, 1/48000: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.4(eng), 25, 1/48000: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.5(eng), 0, 1/25: Data: unknown (tmcd)
[buffer @ 0xaa7f080] w:1920 h:1080 pixfmt:uyvy422 tb:1/1000000 sar:1/1 
sws_param:
[buffersink @ 0xaa04920] auto-inserting filter 'auto-inserted scaler 0' between 
the filter 'src' and the filter 'out'
[scale @ 0xaa11d60] w:1920 h:1080 fmt:uyvy422 -> w:1920 h:1080 fmt:yuv422p 
flags:0x4
Output #0, mxf, to './out.mxf':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und), 0, 1/25: Video: mpeg2video, yuv422p, 1920x1080i tff [PAR 1:1 DAR 16:9], tbc 1/25, 50000 kb/s, 25.00 fps
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
[mxf @ 0xaae0a20] package type:1
[mxf @ 0xaae0a20] package type:2
[mxf @ 0xaae0a20] edit units count 0
frame=  254 fps=  9 q=23.4 size=   61455kB time=00:00:10.04 
bitrate=50143.5kbits/s eta=00:02:44.02 
[mxf @ 0xaae0a20] edit units count 253
frame=  512 fps=  8 q=10.8 size=  125641kB time=00:00:20.36 
bitrate=50552.6kbits/s eta=00:02:36.79 
[mxf @ 0xaae0a20] edit units count 258
frame=  770 fps=  1 q=30.0 size=  183608kB time=00:00:30.68 
bitrate=49025.9kbits/s eta=00:25:22.25 
[mxf @ 0xaae0a20] edit units count 258
frame= 1033 fps= 10 q=11.9 size=  252022kB time=00:00:41.20 
bitrate=50110.9kbits/s eta=00:01:11.13 
[mxf @ 0xaae0a20] edit units count 264
frame= 1299 fps=  9 q=29.4 size=  317013kB time=00:00:51.84 
bitrate=50095.8kbits/s eta=00:00:49.80 
[mxf @ 0xaae0a20] edit units count 264
frame= 1560 fps=  8 q=10.4 size=  381578kB time=00:01:02.28 
bitrate=50190.9kbits/s eta=00:00:25.78 
[mxf @ 0xaae0a20] edit units count 261
frame= 1758 fps= 11 q=7.7 size=  428897kB time=00:01:10.20 
bitrate=50050.2kbits/s eta=00:00:00.37  
[mxf @ 0xaae0a20] edit units count 201
[mxf @ 0xaae0a20] package type:1
[mxf @ 0xaae0a20] package type:2
frame= 1759 fps=  8 q=3.9 Lsize=  428906kB time=00:01:10.32 
bitrate=49965.9kbits/s                 
video:427483kB audio:0kB global headers:0kB muxing overhead 0.332958%

Original issue reported on code.google.com by mark.him...@gmail.com on 18 Oct 2012 at 4:10

GoogleCodeExporter commented 8 years ago
I can recreate this problem too.

Only visible when using -an and -f mxf 

Original comment by cy.thomp...@googlemail.com on 23 Oct 2012 at 3:26

GoogleCodeExporter commented 8 years ago
Humm, very strange, I'll need a source file to reproduce here, I tested with a 
random file and I didn't see the issue.

Original comment by baptiste...@gmail.com on 1 Nov 2012 at 8:29

GoogleCodeExporter commented 8 years ago
I found the issue, will be fixed in the next release

Original comment by baptiste...@gmail.com on 6 Dec 2012 at 7:55

GoogleCodeExporter commented 8 years ago
Should be fixed in rc8

Original comment by baptiste...@gmail.com on 14 Mar 2013 at 9:04