[FFmpeg-user] converting yuv directly to Apple Final Cut Pro

Roee Kashi galacap at gmail.com
Sun Jan 29 11:50:10 CET 2012


ok, i have some outputs here:
1) this is the first conversion command and it's output (convert yuv+mp3 to
pal-dv mov)
ffmpeg -y -i aud_file.mp3 -s 528x384 -vtag YV12 -r 25 -i raw_vid.yuv -r 25
-target pal-dv output.mov.tmp
ffmpeg version N-37063-g14d94a1 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jan 23 2012 17:40:00 with gcc 4.6.2
  configuration: --disable-static --enable-shared --enable-gpl
--enable-version3
 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth
--enable-bzli
b --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-l
ibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-li
bvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-l
ibx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 57.105 / 53. 57.105
  libavformat    53. 30.100 / 53. 30.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 59.101 /  2. 59.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[mp3 @ 0070EA60] max_analyze_duration 5000000 reached at 5004000
[mp3 @ 0070EA60] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'aud_file.mp3':
  Metadata:
    encoder         : Lavf53.30.100
  Duration: 00:03:47.19, start: 0.000000, bitrate: 127 kb/s
    Stream #0:0: Audio: mp3, 16000 Hz, mono, s16, 128 kb/s
[rawvideo @ 01E71A40] Estimating duration from bitrate, this may be
inaccurate
Input #1, rawvideo, from 'raw_vid.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: rawvideo (YV12 / 0x32315659), yuv420p, 528x384, 25
tbr,
25 tbn, 25 tbc
[buffer @ 0070EF60] w:528 h:384 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:
[scale @ 01E79700] w:528 h:384 fmt:yuv420p -> w:720 h:576 fmt:yuv420p
flags:0x4
Output #0, dv, to 'output.mov.tmp':
  Metadata:
    encoder         : Lavf53.30.100
    Stream #0:0: Video: dvvideo, yuv420p, 720x576, q=2-31, 200 kb/s, 90k
tbn, 25
 tbc
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo -> dvvideo)
  Stream #0:0 -> #0:1 (mp3 -> pcm_s16le)
Press [q] to stop, [?] for help
frame=    3 fps=  0 q=0.0 size=   20480kB time=00:00:00.12
bitrate=1398101.3kbit
frame=   13 fps= 11 q=0.0 size=   45056kB time=00:00:00.52
bitrate=709805.3kbits
frame=   21 fps= 12 q=0.0 size=   73728kB time=00:00:00.84
bitrate=719023.5kbits
frame=   33 fps= 15 q=0.0 size=   90112kB time=00:00:01.32
bitrate=559240.5kbits
frame=   43 fps= 15 q=0.0 size=  114688kB time=00:00:01.72
bitrate=546234.9kbits
frame=   64 fps= 19 q=0.0 size=  134438kB time=00:00:02.56
bitrate=430200.0kbits
frame=  120 fps= 32 q=0.0 size=  146250kB time=00:00:04.80
bitrate=249600.0kbits
frame=  145 fps= 34 q=0.0 size=  160875kB time=00:00:05.80
bitrate=227222.1kbits
frame=  203 fps= 42 q=0.0 size=  172688kB time=00:00:08.12
bitrate=174218.7kbits
frame=  261 fps= 49 q=0.0 size=  184500kB time=00:00:10.43
bitrate=144779.3kbits
frame=  316 fps= 54 q=0.0 size=  196594kB time=00:00:12.64
bitrate=127412.7kbits
frame=  330 fps= 52 q=0.0 size=  212344kB time=00:00:13.20
bitrate=131781.8kbits
frame=  387 fps= 57 q=0.0 size=  224297kB time=00:00:15.47
bitrate=118701.5kbits
frame=  442 fps= 60 q=0.0 size=  235828kB time=00:00:17.68
bitrate=109270.6kbits
frame=  496 fps= 63 q=0.0 size=  248344kB time=00:00:19.84
bitrate=102541.9kbits
frame=  510 fps= 61 q=0.0 size=  265078kB time=00:00:20.40
bitrate=106447.1kbits
frame=  560 fps= 63 q=0.0 size=  277734kB time=00:00:22.40
bitrate=101571.4kbits
frame=  612 fps= 65 q=0.0 size=  289969kB time=00:00:24.47
bitrate=97037.3kbits/
frame=  663 fps= 67 q=0.0 size=  303328kB time=00:00:26.52
bitrate=93697.7kbits/
frame=  672 fps= 65 q=0.0 size=  319641kB time=00:00:26.88
bitrate=97414.3kbits/
frame=  724 fps= 66 q=0.0 size=  331734kB time=00:00:28.96
bitrate=93838.7kbits/
frame=  781 fps= 69 q=0.0 size=  343125kB time=00:00:31.24
bitrate=89977.0kbits/
frame=  828 fps= 69 q=0.0 size=  359719kB time=00:00:33.11
bitrate=88975.3kbits/
frame=  849 fps= 68 q=0.0 size=  375328kB time=00:00:33.96
bitrate=90538.5kbits/
frame=  887 fps= 68 q=0.0 size=  386016kB time=00:00:35.48
bitrate=89127.4kbits/
frame=  941 fps= 69 q=0.0 size=  397221kB time=00:00:37.64
bitrate=86451.5kbits/
frame= 1010 fps= 72 q=0.0 size=  407109kB time=00:00:40.40
bitrate=82550.5kbits/
frame= 1083 fps= 74 q=0.0 size=  417797kB time=00:00:43.32
bitrate=79007.2kbits/
frame= 1157 fps= 77 q=0.0 size=  428484kB time=00:00:46.28
bitrate=75845.8kbits/
frame= 1231 fps= 79 q=0.0 size=  439031kB time=00:00:49.24
bitrate=73041.1kbits/
frame= 1303 fps= 81 q=0.0 size=  449578kB time=00:00:52.12
bitrate=70662.8kbits/
frame= 1375 fps= 83 q=0.0 size=  460266kB time=00:00:55.00
bitrate=68554.5kbits/
frame= 1446 fps= 85 q=0.0 size=  470672kB time=00:00:57.84
bitrate=66662.2kbits/
frame= 1518 fps= 86 q=0.0 size=  481078kB time=00:01:00.72
bitrate=64904.3kbits/
frame= 1592 fps= 88 q=0.0 size=  491484kB time=00:01:03.68
bitrate=63226.1kbits/
frame= 1667 fps= 90 q=0.0 size=  502172kB time=00:01:06.68
bitrate=61694.5kbits/
frame= 1741 fps= 91 q=0.0 size=  513000kB time=00:01:09.64
bitrate=60346.0kbits/
frame= 1815 fps= 93 q=0.0 size=  523547kB time=00:01:12.60
bitrate=59075.7kbits/
frame= 1884 fps= 94 q=0.0 size=  533109kB time=00:01:15.36
bitrate=57951.6kbits/
frame= 1985 fps= 96 q=0.0 size=  534375kB time=00:01:19.40
bitrate=55133.5kbits/
frame= 2111 fps=100 q=0.0 size=  534375kB time=00:01:24.44
bitrate=51842.7kbits/
frame= 2231 fps=103 q=0.0 size=  534375kB time=00:01:29.24
bitrate=49054.2kbits/
frame= 2351 fps=106 q=0.0 size=  534375kB time=00:01:34.04
bitrate=46550.4kbits/
frame= 2474 fps=110 q=0.0 size=  534375kB time=00:01:38.96
bitrate=44236.1kbits/
frame= 2598 fps=113 q=0.0 size=  534375kB time=00:01:43.92
bitrate=42124.7kbits/
frame= 2722 fps=115 q=0.0 size=  534375kB time=00:01:48.88
bitrate=40205.7kbits/
frame= 2847 fps=118 q=0.0 size=  534375kB time=00:01:53.88
bitrate=38440.5kbits/
frame= 2970 fps=121 q=0.0 size=  534375kB time=00:01:58.79
bitrate=36848.6kbits/
frame= 3095 fps=123 q=0.0 size=  534375kB time=00:02:03.80
bitrate=35360.3kbits/
frame= 3219 fps=126 q=0.0 size=  534375kB time=00:02:08.76
bitrate=33998.1kbits/
frame= 3341 fps=128 q=0.0 size=  534375kB time=00:02:13.64
bitrate=32756.7kbits/
frame= 3465 fps=130 q=0.0 size=  534375kB time=00:02:18.59
bitrate=31584.5kbits/
frame= 3590 fps=132 q=0.0 size=  534375kB time=00:02:23.60
bitrate=30484.7kbits/
frame= 3715 fps=135 q=0.0 size=  534375kB time=00:02:28.60
bitrate=29459.0kbits/
Truncating packet of size 304128 to 1
frame= 3800 fps=135 q=0.0 size=  534375kB time=00:02:32.00
bitrate=28800.0kbits/
Truncating packet of size 1024 to 961
Truncating packet of size 1024 to 1
frame= 3800 fps=135 q=0.0 Lsize=  534375kB time=00:02:32.00
bitrate=28800.0kbits
/s
video:534375kB audio:42599kB global headers:0kB muxing overhead -7.383200%

------> END OF COMMAND 1

2) this is the second command - mov->mov:
ffmpeg -y -i output.mov.tmp -vcodec copy -acodec copy -sameq -strict -o
output.mov
ffmpeg version N-37063-g14d94a1 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jan 23 2012 17:40:00 with gcc 4.6.2
  configuration: --disable-static --enable-shared --enable-gpl
--enable-version3
 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth
--enable-bzli
b --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-l
ibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-li
bvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-l
ibx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 57.105 / 53. 57.105
  libavformat    53. 30.100 / 53. 30.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 59.101 /  2. 59.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[dv @ 006DEA00] Estimating duration from bitrate, this may be inaccurate
Input #0, dv, from 'output.mov.tmp':
  Metadata:
    timecode        : 00:00:00:00
  Duration: 00:02:32.00, start: 0.000000, bitrate: 28800 kb/s
    Stream #0:0: Video: dvvideo, yuv420p, 720x576, 28800 kb/s, SAR 16:15
DAR 4:3
, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Output #0, mov, to 'output.mov':
  Metadata:
    timecode        : 00:00:00:00
    encoder         : Lavf53.30.100
    Stream #0:0: Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR
16:15
 DAR 4:3], q=2-31, 28800 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2
channels, 153
6 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1855 fps=  0 q=-1.0 size=  274624kB time=00:01:14.16
bitrate=30336.0kbits
frame= 3754 fps=3754 q=-1.0 size=  556054kB time=00:02:30.16
bitrate=30335.6kbit
frame= 3800 fps=3751 q=-1.0 Lsize=  562906kB time=00:02:32.00
bitrate=30337.7kbi
ts/s
video:534375kB audio:28500kB global headers:0kB muxing overhead 0.005491%

-----> END OF COMMAND 2

basically, i truly understand that the -sameq is not relevant here, but i
still wanted to copy the command i used as it is.

Thanks for your support.

2012/1/27 Carl Eugen Hoyos <cehoyos at ag.or.at>

> Roee Kashi <galacap <at> gmail.com> writes:
>
> > ffmpeg -y -i aud_file.mp3 -s 528x384 -vtag YV12 -i raw_vid.yuv -target
> > pal-dv outdv.mov
>
> Your report is missing the output from the important commands (instead you
> provide the output of the less important commands)...
>
> I am not 100% sure what -target pal-dv does, so I cannot comment if it
> does what
> you want.
>
> ...
>
> > ffmpeg -i outdv.mov -vcodec copy -acodec copy -sameq -strict -o
> outdv2.mov
>
> But assuming strict is what makes the difference here (I suspect you don't
> know
> what -sameq does and in any case, it has no effect for -vcodec copy), did
> you
> try adding it to the first command?
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list