Opened 13 years ago

Closed 12 years ago

#1433 closed defect (invalid)

Prores Proxy -> libx264 .mp4 results in garbled video

Reported by: Dan Owned by:
Priority: normal Component: ffmpeg
Version: 0.11.1 Keywords: libx264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: When transcoding Apple ProRes Proxy footage to a .mp4 with libx264, the video always comes out garbled (tried multiple sources, same result). I was able to go from prores proxy to prores proxy successfully...
How to reproduce:

%ffmpeg -loglevel 99 -report -i 1min720p60pix.mov -vcodec libx264 -acodec libfaac -b 1000k -ab 128k -threads 0 pixOut1.mp4
ffmpeg started on 2012-06-09 at 10:44:52
Report written to "ffmpeg-20120609-104452.log"
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun  8 2012 21:29:59 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libxvid --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-yasm --enable-libfaac --enable-libmp3lame --enable-libvorbis
  libavutil      51. 54.100 / 51. 54.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xa2d2ba0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xa2d2ba0] ISO: File Type Major Brand: qt  
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xa2d2ba0] Timecode frame rate not supported
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xa2d2ba0] File position before avformat_find_stream_info() is 338189041
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xa2d2ba0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xa2d2ba0] File position after avformat_find_stream_info() is 289984
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1min720p60pix.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2012-06-09 13:52:43
  Duration: 00:01:00.46, start: 0.000000, bitrate: 44748 kb/s
    Stream #0:0(eng), 1, 1/5994: Video: prores (apco / 0x6F637061), yuv422p10le, 1280x720, 1/5994, 43190 kb/s, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 5994 tbn, 5994 tbc
    Metadata:
      creation_time   : 2012-06-09 13:52:43
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng), 47, 1/48000: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      creation_time   : 2012-06-09 13:52:43
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng), 0, 1/5994: Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2012-06-09 13:53:22
      handler_name    : Apple Alias Data Handler
Please use -b:a or -b:v, -b is ambiguous
File 'pixOut1.mp4' already exists. Overwrite ? [y/N] y
w:1280 h:720 pixfmt:yuv422p10le tb:1/5994 sar:1/1 sws_param:flags=2
[buffersink @ 0xa2d1f80] No opaque field provided
[format @ 0xa2d2120] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format'
[scale @ 0xa2d0fe0] w:1280 h:720 fmt:yuv422p10le sar:1/1 -> w:1280 h:720 fmt:yuv422p sar:1/1 flags:0x4
[abuffer source @ 0xa2d09e0] Setting entry with key 'time_base' to value '1/48000'
[abuffer source @ 0xa2d09e0] Setting entry with key 'sample_rate' to value '48000'
[abuffer source @ 0xa2d09e0] Setting entry with key 'sample_fmt' to value 's16'
[abuffer source @ 0xa2d09e0] Setting entry with key 'channel_layout' to value '0x3'
[abuffer @ 0xa2d1120] tb:1/48000 samplefmt:s16 samplerate: 48000 ch layout:0x3
[aformat filter @ 0xa2cc9c0] Setting entry with key 'sample_fmts' to value 's16'
[aformat filter @ 0xa2cc9c0] Setting entry with key 'channel_layouts' to value '0x4,0x3,0x7,0x107,0x37,0x3f'
[libx264 @ 0xa2e4120] using mv_range_thread = 56
[libx264 @ 0xa2e4120] using SAR=1/1
[libx264 @ 0xa2e4120] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64
[libx264 @ 0xa2e4120] profile High 4:2:2, level 3.2, 4:2:2 8-bit
[libx264 @ 0xa2e4120] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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 lookahead_threads=1 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=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[prores @ 0xa2d90e0] detected 4 logical cores
Output #0, mp4, to 'pixOut1.mp4':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2012-06-09 13:52:43
    encoder         : Lavf54.6.100
    Stream #0:0(eng), 0, 1/2997: Video: h264 (![0][0][0] / 0x0021), yuv422p, 1280x720 [SAR 1:1 DAR 16:9], 50/2997, q=-1--1, 1000 kb/s, 2997 tbn, 59.94 tbc
    Metadata:
      creation_time   : 2012-06-09 13:52:43
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng), 0, 1/48000: Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
    Metadata:
      creation_time   : 2012-06-09 13:52:43
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (prores -> libx264)
  Stream #0:1 -> #0:1 (pcm_s16le -> libfaac)
Press [q] to stop, [?] for help

Attachments (1)

ffmpeg-20120609-104452.log (404.7 KB ) - added by Dan 13 years ago.
Report log from transcode

Download all attachments as: .zip

Change History (4)

by Dan, 13 years ago

Attachment: ffmpeg-20120609-104452.log added

Report log from transcode

comment:1 by Carl Eugen Hoyos, 13 years ago

What do you mean with garbled?
Does -pix_fmt yuv420p do what you want?

comment:2 by Dan, 12 years ago

Yes, thank you - this solved my problem!!!

comment:3 by Carl Eugen Hoyos, 12 years ago

Keywords: prores .mp4 removed
Resolution: invalid
Status: newclosed

Iiuc, the problem was that the decoding application does not support yuv422p.

Note: See TracTickets for help on using tickets.