[FFmpeg-user] Full to studio levels
Rio Kierkels
riokierkels at gmail.com
Tue Dec 24 09:28:14 CET 2013
Oh sure, sorry about that. This is the command I used last:
----------------------
ffmpeg -y -nostdin -i "/Path/To/Source/video.%4d.dpx" -i
"/Path/To/Source/audio.wav" -map 0:0 -c:0:0 mpeg2video -b:0:0 50M
-filter:0:0
"scale=in_range=full:out_range=tv:w=1920:h=1080:in_color_matrix=bt601:out_color_matrix=bt709,setdar=1.77777777778"
-flags +ildct+ilme -top 1 -map 1:a:0 -map_channel 1.0.0:0.1 -map 1:a:0
-map_channel 1.0.1:0.2 -map 1:a:0 -map_channel -1:0.3 -map 1:a:0
-map_channel -1:0.4 -c:1:0 pcm_s24le -b:1:0 240000 "/Path/To/out.mxf"
----------------------
And Here is the output
----------------------
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Dec 23 2013 14:19:36 with gcc 4.4.6 (GCC) 20120305 (Red Hat
4.4.6-4)
configuration: --prefix=/Portal/ffmpeg/build/ --enable-gpl
--enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver
--enable-libx264 --enable-libvpx --enable-libopenjpeg --enable-libtheora
--enable-libvo-aacenc --enable-libvorbis --enable-libmp3lame
--extra-cflags=-I/Portal/ffmpeg/build/include
--extra-ldflags=-L/Portal/ffmpeg/build/lib
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from '/Path/To/Source/video.%4d.dpx':
Duration: 00:00:04.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: dpx, gbrp10le, 1920x1080 [SAR 1:1 DAR 16:9], 25
tbr, 25 tbn, 25 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from '/Path/To/Source/audio.wav':
Duration: 00:00:03.95, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
-map_channel is forwarded to lavfi similarly to -af pan=0x4:c0=c0.
[pan @ 0x2514460] This syntax is deprecated. Use '|' to separate the list
items.
[pan @ 0x2514460] Pure channel mapping detected: 0
-map_channel is forwarded to lavfi similarly to -af pan=0x4:c0=c1.
[pan @ 0x2628800] This syntax is deprecated. Use '|' to separate the list
items.
[pan @ 0x2628800] Pure channel mapping detected: 1
-map_channel is forwarded to lavfi similarly to -af pan=0x4.
[pan @ 0x263f3c0] Pure channel mapping detected: M
-map_channel is forwarded to lavfi similarly to -af pan=0x4.
[pan @ 0x264d660] Pure channel mapping detected: M
Output #0, mxf, to '/Path/To/out.mxf':
Metadata:
encoder : Lavf55.19.104
Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 50000 kb/s, 25 tbn, 25 tbc
Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Stream #0:2: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Stream #0:3: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Stream #0:4: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (dpx -> mpeg2video)
Stream #1:0 -> #0:1 (pcm_s16le -> pcm_s24le)
Stream #1:0 -> #0:2 (pcm_s16le -> pcm_s16le)
Stream #1:0 -> #0:3 (pcm_s16le -> pcm_s16le)
Stream #1:0 -> #0:4 (pcm_s16le -> pcm_s16le)
frame= 100 fps=4.9 q=2.0 Lsize= 5004kB time=00:00:03.96
bitrate=10351.8kbits/s
video:3211kB audio:1666kB subtitle:0 global headers:0kB muxing overhead
2.609146%
----------------------
I've tried variations on the above command, including different options for
in and out_range like, pc, mpeg, jpeg, tv, full and switching them around.
I've also tried not doing it through the scale filter but via the
-color_range flag on the in and output files.
And can somebody clarify why I have to put a color transform from BT.601 to
BT.709 in there to retain my primaries while my source already is BT.709?
Thanks
On 24 December 2013 07:05, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Rio Kierkels <riokierkels <at> gmail.com> writes:
>
> > I've been stuck with a level scaling problem.
>
> Please provide your failing command line together
> with the complete, uncut console output.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
--
42
More information about the ffmpeg-user
mailing list