[FFmpeg-user] mp4 to quicktime for FCP editing

Dave Bevan dave.bevan at bbc.co.uk
Thu Dec 15 13:46:57 CET 2011


> Hi is it possible to convert from the input file format below to the
output file format below using ffmpeg?

> ffmpeg -y -i sintel_trailer-480p.mp4 -vcodec mpeg2video -r 25 -pix_fmt
yuv422p -minrate 30000k -maxrate 30000k -b 30000k -intra -flags
+ildct+low_delay -dc 10 -flags2 +ivlc+non_linear_q -ps 1 -qmin 1 -qmax 3
-top 1 -bufsize 1200000 -rc_init_occupancy 1200000 -rc_buf_aggressivity
0.25 -an -s 720x608 sintel_trailer-480pFCP.mov 

> The output file generated by the above cli cannot be imported into
final cut pro. Am I missing a step here?

=======================================================================

So it looks like you're trying to create IMX30 in a MOV wrapper?

I'd suggest looking at http://code.google.com/p/ffmbc as it has the
ability to create IMX30. The problem you will have is attempting to
convert 24fps content to 25fps - where is the extra frame, and audio,
going to come from??

In particular, with ffmbc, besides your framerate problem, the
conversion is VERY simple:
http://code.google.com/p/ffmbc/wiki/IMXD10Encoding.

Rgds,
--Dave.

=======================================================================


Input file format
ffmpeg -i sintel_trailer-480p.mp4
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  5 2010 13:54:05 with gcc 4.3.2 [gcc-4_3-branch revision
141291]
  configuration: --shlibdir=/usr/lib64 --prefix=/usr
--mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared
--enable-libmp3lame --enable-libvorbis --enable-libspeex
--enable-libfaad --enable-libfaac --enable-nonfree --enable-libxvid
--enable-postproc --enable-gpl --enable-x11grab
--extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC
-I/usr/include/gsm' --enable-libdirac --enable-libgsm --enable-avfilter
--enable-libvpx --enable-version3 --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libx264 --enable-libdc1394
--enable-pthreads
  WARNING: library configuration mismatch
  libpostproc configuration: --shlibdir=/usr/lib64 --prefix=/usr
--mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared
--enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-nonfree
--enable-libxvid --enable-gpl --enable-x11grab
--extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC
-I/usr/include/gsm' --enable-libx264 --enable-libdc1394
--enable-pthreads --disable-ffplay --disable-ffprobe --enable-libdirac
--enable-libgsm --enable-avfilter
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sintel_trailer-480p.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Sintel Trailer
    artist          : Durian Open Movie Team
    encoder         : Lavf52.62.0
    copyright       : (c) copyright Blender Foundation |
durian.blender.org
    description     : Trailer for the Sintel open movie project
  Duration: 00:00:52.20, start: 0.000000, bitrate: 669 kb/s
    Stream #0.0(und): Video: h264, yuv420p, 854x480, 537 kb/s, 24 fps,
24 tbr, 24 tbn, 48 tbc
    Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 126 kb/s At
least one output file must be specified

Output file format
ffmpeg -i PHTT00077.mov
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  5 2010 13:54:05 with gcc 4.3.2 [gcc-4_3-branch revision
141291]
  configuration: --shlibdir=/usr/lib64 --prefix=/usr
--mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared
--enable-libmp3lame --enable-libvorbis --enable-libspeex
--enable-libfaad --enable-libfaac --enable-nonfree --enable-libxvid
--enable-postproc --enable-gpl --enable-x11grab
--extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC
-I/usr/include/gsm' --enable-libdirac --enable-libgsm --enable-avfilter
--enable-libvpx --enable-version3 --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libx264 --enable-libdc1394
--enable-pthreads
  WARNING: library configuration mismatch
  libpostproc configuration: --shlibdir=/usr/lib64 --prefix=/usr
--mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared
--enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-nonfree
--enable-libxvid --enable-gpl --enable-x11grab
--extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC
-I/usr/include/gsm' --enable-libx264 --enable-libdc1394
--enable-pthreads --disable-ffplay --disable-ffprobe --enable-libdirac
--enable-libgsm --enable-avfilter
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'PHTT00077.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
  Duration: 00:13:35.24, start: 0.000000, bitrate: 31642 kb/s
    Stream #0.0(eng): Video: mpeg2video, yuv422p, 720x608 [PAR 152:135
DAR 4:3], 30000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
    Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536
kb/s
    Stream #0.2(eng): Data: tmcd / 0x64636D74 At least one output file
must be specified

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					


More information about the ffmpeg-user mailing list