jslhs / ffmbc

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

Encoding to PAL DV25 (yuv420p) with v0.7 rc2 produces corrupt output #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The source here happens to be IMX30, but the issue can be seen on my default SD 
DV test clock clip.

Command line here:

ffmbc -v 9 -loglevel debug -threads 1 -i primary-2011-10_05_1039-34.mov 
-vframes 250 -vf crop=720:576:0:32 -vcodec dvvideo -pix_fmt yuv420p -r 25 
-aspect 16:9 -bff -acodec pcm_s16le -ac 2 -ar 48000 -f mov -y out.mov
FFmbc version 0.7-rc2
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb194f20] Format mov,mp4,m4a,3gp,3g2,mj2 probed 
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb194f20] ISO: File Type Major Brand: qt  
[mpeg2video @ 0xb197700] Unsupported bit depth: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb194f20] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb194f20] 0: start_time: 0 duration: 314
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb194f20] 1: start_time: 0 duration: 602880
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb194f20] 2: start_time: 0 duration: 314
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'primary-2011-10_05_1039-34.mov':
  Metadata:
    major_brand: qt  
    minor_version: 0
    compatible_brands: qt  
    creation_time: 2011-10-05 09:39:34
    encoder: FFmbc 0.7
    timecode: 10:39:34:00
  Duration: 00:00:12.56, start: 0.000000, bitrate: 31543 kb/s
    Stream #0.0(eng), 1, 1/25: Video: mpeg2video (4:2:2), yuv422p, 720x608i tff [PAR 608:405 DAR 16:9], tbc 2/50, 30000 kb/s, PAR 64:45 DAR 32:19, tbr 25/1, tba 25/1, 25.00 fps
    Metadata:
      codec_name: mpeg2video
    Stream #0.1(eng), 1, 1/48000: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    Stream #0.2(eng), 1, 1/25: Data: unknown (tmcd)
[buffer @ 0xb198180] w:720 h:608 pixfmt:yuv422p tb:1/1000000 sar:64/45 
sws_param:
[crop @ 0xb190080] auto-inserting filter 'auto-inserted scaler 0' between the 
filter 'src' and the filter 'Parsed filter 0 crop'
[scale @ 0xb18ebc0] w:720 h:608 fmt:yuv422p -> w:720 h:608 fmt:yuv420p flags:0x4
[crop @ 0xb190080] w:720 h:608 -> w:720 h:576
[dvvideo @ 0xb19bca0] Unsupported bit depth: 0
Output #0, mov, to 'out.mov':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und), 0, 1/25: Video: dvvideo, yuv420p, 720x576i bff [PAR 64:45 DAR 16:9], tbc 1/25, 28800 kb/s, 25.00 fps
    Stream #0.1(und), 0, 1/48000: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1

Corruption can be seen where it is obvious that interlaced DCT macroblocks 
would be being encoded.

If the source material is progressive (even if it's flagged as interlaced) then 
there is no corruption.

Original issue reported on code.google.com by mark.him...@gmail.com on 5 Oct 2011 at 12:26

GoogleCodeExporter commented 8 years ago
For instance: compare a frame from the original PAL IMX30;

http://commondatastorage.googleapis.com/himslm01/primary-2011-10_05_1039-34_0001
50.png

With the encoded frame from the PAL DV25

http://commondatastorage.googleapis.com/himslm01/primary-2011-10_05_1039-34_out_
000150.png

Original comment by mark.him...@gmail.com on 5 Oct 2011 at 12:35

GoogleCodeExporter commented 8 years ago
Should be fixed in rc3

Original comment by baptiste...@gmail.com on 10 Oct 2011 at 4:58

GoogleCodeExporter commented 8 years ago
Confirmed fixed in rc3

Original comment by mark.him...@gmail.com on 10 Oct 2011 at 5:13

GoogleCodeExporter commented 8 years ago

Original comment by baptiste...@gmail.com on 10 Oct 2011 at 6:29