FORUMS: list search recent posts

prores to .mp4 trouble in ffmpeg

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Dan Coffey
prores to .mp4 trouble in ffmpeg
on Jun 9, 2012 at 5:20:59 pm

Hi All,

I have trolled the forums for a long time and appreciate all of the help I've gotten here.

Recently I have been developing a new workflow for a large quantity of video. We're down to either prores proxy or XDCAM EX. We make our edits currently (but possibly moving to X or premiere) on FCP7. We then export the finished sequence as a quicktime movie and match the settings of the sequence. What I then intend to do is script an FFMPEG infrastructure which can generate a multitude of files.

Here's where I am stuck:
Using a new build of FFMPEG 11.1, when I go from the exported prores.mov to prores.mp4 (via libx264), I get garbled video.

Here is a sample command (this sample is 720p60 though we'll also be doing 1080p30):
ffmpeg -i 1min720p60pix.mov -vcodec libx264 -acodec libfaac -b:v 1000k -b:a 128k -threads 0 pixOut.mp4

the clip our of fcp looks great. after the transcode to 264 it is rainbows, green, and a big mess (audio's ok!).

when I do the same command line with the NanoFlash XDCAM EX clip, it makes a beautiful .mp4!

Anyone have any ideas? (or even ways I could improve the workflow?) I've boiled it down to these two formats because we're doing mostly web production and would like to save on disk space due to quantity.

Thanks for any advice!

(I noticed that the timecode frame rate is not supported... i also tried exporting from FCP to 720p30 and got the same result).

ffmpeg -i 1min720p60pix.mov -vcodec libx264 -acodec libfaac -b:v 1000k -b:a 128k -threads 0 pixOut20.mp4ffmpeg 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 @ 0x9fce3c0] Timecode frame rate not supported
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): Video: prores (apco / 0x6F637061), yuv422p10le, 1280x720, 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): 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): Data: none (tmcd / 0x64636D74)
Metadata:
creation_time : 2012-06-09 13:53:22
handler_name : Apple Alias Data Handler
[buffer @ 0x9fd57e0] w:1280 h:720 pixfmt:yuv422p10le tb:1/5994 sar:1/1 sws_param:flags=2
[buffersink @ 0x9fce200] No opaque field provided
[format @ 0x9fcc560] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format'
[scale @ 0x9fcc5a0] w:1280 h:720 fmt:yuv422p10le sar:1/1 -> w:1280 h:720 fmt:yuv422p sar:1/1 flags:0x4
[libx264 @ 0x9fe0020] using SAR=1/1
[libx264 @ 0x9fe0020] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64
[libx264 @ 0x9fe0020] profile High 4:2:2, level 3.2, 4:2:2 8-bit
[libx264 @ 0x9fe0020] 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
Output #0, mp4, to 'pixOut20.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): Video: h264 (![0][0][0] / 0x0021), yuv422p, 1280x720 [SAR 1:1 DAR 16:9], 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): 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


Return to posts index

Dan Coffey
Re: prores to .mp4 trouble in ffmpeg
on Jun 10, 2012 at 12:56:27 am

Hi, just wanted to report what I was doing wrong in case anyone hits the same problem... I forgot to include the flag: "-pix_fmt yuv420p"

Thanks,

Dan


Return to posts index

Seth Parker
Re: prores to .mp4 trouble in ffmpeg
on Jul 26, 2012 at 12:59:55 pm

It's interesting that you were required to use -pix_fmt when encoding to x264. My build, by default, automatically selects the yuv420p format. Glad it works!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]