FORUMS: list search recent posts

Trouble encoding, plus combining audio and video into one file, plus mixdown surround to stereo....

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Bill Russell
Trouble encoding, plus combining audio and video into one file, plus mixdown surround to stereo....
on Jul 17, 2015 at 11:28:41 pm

The video part works if I remove the audio part. But I've tried a million different ways and it keeps telling me I'm trying to set the video bitrate of my output file. Arrrgh!

I have two input files:
video.mxf
audio_5.1-surround.mxf.

I want to combine the two into
movie_x264_12000k_aac_284k.mov

....mixing the 5.1 audio to stereo along the way.

There is where I left off:

ffmpeg -y -i video.mxf -c:v libx264 -preset medium -b:v 12000k -pass 1 -an -f mov /dev/null && \
ffmpeg -i video.mxf -c:v libx264 -preset medium -b:v 284k -pass 2 \
-i audio_5.1-surround.mxf -ac 2 -c:a libfdk_aac -b:a 284k movie_x264_1200k_aac_284.mov

"THE LOST SKELETON OF CADAVRA" -

And more...


Return to posts index

Lou Logan
Re: Trouble encoding, plus combining audio and video into one file, plus mixdown surround to stereo....
on Jul 28, 2015 at 5:44:35 pm

You need to include the complete console output from your command.


Return to posts index

Bill Russell
Re: Trouble encoding, plus combining audio and video into one file, plus mixdown surround to stereo....
on Aug 22, 2015 at 7:06:38 am

Thanks, okay, here's what I got:

$ more /usr/local/bin/dcp2x264av
#!/bin/bash
echo specify: \[video file\] \[audio file\] \[output.mp4\] \[video kpbs\] \[audio kbsp\]

/usr/bin/ffmpeg -y -i "$1" -c:v libx264 -preset medium -b:v "$4"k -pass 1 -an -f mp4 "$3"
/usr/bin/ffmpeg -i "$1" -c:v libx264 -preset medium -b:v "$4"k -pass 2 -i "$2" -c:a libfaac -b:a "$5"k "$3"



$ dcp2x264av BiffleAndShoos_TLR_F-133_EN-XX_US_51_2K_BS_20150715_WP_2D_OV/BiffleAndShoos_TLR_F_133_EN_XX_US_51_2K_BS_20150715_WP_2D_OV_video.mxf BiffleAndShoos_TLR_F-133_EN-XX_US_51_2K_BS_20150715_WP_2D_OV/BiffleAndShoos_TLR_F_133_EN_XX_US_51_2K_BS_20150715_WP_2D_OV_audio.mxf 12000 320
specify: [video file] [audio file] [output.mp4] [video kpbs] [audio kbsp]
Press [Enter] key to continue...
ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
[mxf @ 0x7fdb6101ae00] "OPAtom" with 2 ECs - assuming OP1a
Input #0, mxf, from 'BiffleAndShoos_TLR_F-133_EN-XX_US_51_2K_BS_20150715_WP_2D_OV/BiffleAndShoos_TLR_F_133_EN_XX_US_51_2K_BS_20150715_WP_2D_OV_video.mxf':
Metadata:
uid : f3da3a86-8402-401c-ae01-dd9efa996e34
generation_uid : 5ff14f98-6c5e-4117-9c0d-f71b95cd66e4
company_name : libdcp
product_name : libdcp
product_version : 0.101.0
product_uid : 43059a1d-0432-4101-b83f-736815acf31d
modification_date: 2015-07-17 13:35:23
application_platform: linux
material_package_umid: 0x060A2B340101010501010F20130000004E6BC27F38BB4B4A96A52558A2482068
material_package_name: AS-DCP Material Package
timecode : 00:00:00:00
Duration: 00:02:21.67, start: 0.000000, bitrate: 79478 kb/s
Stream #0:0: Video: jpeg2000 (JPEG 2000 digital cinema 2K), xyz12le, 1998x1080, SAR 1:1 DAR 37:20, 24 tbr, 24 tbn, 24 tbc
Metadata:
file_package_umid: 0x060A2B340101010501010F20130000003A57C8F9995F4491B4D63294FCC1CB4E
file_package_name: File Package: SMPTE 429-4 frame wrapping of JPEG 2000 codestreams
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x7fdb6103b000] using SAR=1/1
[libx264 @ 0x7fdb6103b000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7fdb6103b000] profile High 4:4:4 Predictive, level 4.2, 4:4:4 8-bit
[libx264 @ 0x7fdb6103b000] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=6 threads=12 lookahead_threads=4 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=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=320 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '12000':
Metadata:
uid : f3da3a86-8402-401c-ae01-dd9efa996e34
generation_uid : 5ff14f98-6c5e-4117-9c0d-f71b95cd66e4
company_name : libdcp
product_name : libdcp
product_version : 0.101.0
product_uid : 43059a1d-0432-4101-b83f-736815acf31d
modification_date: 2015-07-17 13:35:23
application_platform: linux
material_package_umid: 0x060A2B340101010501010F20130000004E6BC27F38BB4B4A96A52558A2482068
material_package_name: AS-DCP Material Package
timecode : 00:00:00:00
encoder : Lavf56.36.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1998x1080 [SAR 1:1 DAR 37:20], q=-1--1, pass 1, 320 kb/s, 24 fps, 12288 tbn, 24 tbc
Metadata:
file_package_umid: 0x060A2B340101010501010F20130000003A57C8F9995F4491B4D63294FCC1CB4E
file_package_name: File Package: SMPTE 429-4 frame wrapping of JPEG 2000 codestreams
encoder : Lavc56.41.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (jpeg2000 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 3400 fps=9.9 q=-1.0 Lsize= 5403kB time=00:02:21.58 bitrate= 312.6kbits/s
video:5365kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.707617%
[libx264 @ 0x7fdb6103b000] frame I:46 Avg QP:27.51 size: 20310
[libx264 @ 0x7fdb6103b000] frame P:1615 Avg QP:34.31 size: 2435
[libx264 @ 0x7fdb6103b000] frame B:1739 Avg QP:31.21 size: 361
[libx264 @ 0x7fdb6103b000] consecutive B-frames: 14.9% 48.4% 7.5% 29.3%
[libx264 @ 0x7fdb6103b000] mb I I16..4: 88.0% 0.0% 12.0%
[libx264 @ 0x7fdb6103b000] mb P I16..4: 4.8% 0.0% 0.0% P16..4: 5.8% 0.0% 0.0% 0.0% 0.0% skip:89.4%
[libx264 @ 0x7fdb6103b000] mb B I16..4: 0.3% 0.0% 0.0% B16..8: 1.2% 0.0% 0.0% direct: 0.1% skip:98.4% L0:41.4% L1:57.0% BI: 1.6%
[libx264 @ 0x7fdb6103b000] final ratefactor: 33.88
[libx264 @ 0x7fdb6103b000] coded y,u,v intra: 4.7% 0.1% 0.1% inter: 0.3% 0.0% 0.0%
[libx264 @ 0x7fdb6103b000] i16 v,h,dc,p: 55% 22% 13% 10%
[libx264 @ 0x7fdb6103b000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 17% 22% 8% 6% 6% 5% 6% 4%
[libx264 @ 0x7fdb6103b000] Weighted P-Frames: Y:10.2% UV:1.1%
[libx264 @ 0x7fdb6103b000] kb/s:310.22
ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
[mxf @ 0x7fc4ec01ae00] "OPAtom" with 2 ECs - assuming OP1a
Input #0, mxf, from 'BiffleAndShoos_TLR_F-133_EN-XX_US_51_2K_BS_20150715_WP_2D_OV/BiffleAndShoos_TLR_F_133_EN_XX_US_51_2K_BS_20150715_WP_2D_OV_video.mxf':
Metadata:
uid : f3da3a86-8402-401c-ae01-dd9efa996e34
generation_uid : 5ff14f98-6c5e-4117-9c0d-f71b95cd66e4
company_name : libdcp
product_name : libdcp
product_version : 0.101.0
product_uid : 43059a1d-0432-4101-b83f-736815acf31d
modification_date: 2015-07-17 13:35:23
application_platform: linux
material_package_umid: 0x060A2B340101010501010F20130000004E6BC27F38BB4B4A96A52558A2482068
material_package_name: AS-DCP Material Package
timecode : 00:00:00:00
Duration: 00:02:21.67, start: 0.000000, bitrate: 79478 kb/s
Stream #0:0: Video: jpeg2000 (JPEG 2000 digital cinema 2K), xyz12le, 1998x1080, SAR 1:1 DAR 37:20, 24 tbr, 24 tbn, 24 tbc
Metadata:
file_package_umid: 0x060A2B340101010501010F20130000003A57C8F9995F4491B4D63294FCC1CB4E
file_package_name: File Package: SMPTE 429-4 frame wrapping of JPEG 2000 codestreams
Option b:v (video bitrate (please use -b:v)) cannot be applied to input file BiffleAndShoos_TLR_F-133_EN-XX_US_51_2K_BS_20150715_WP_2D_OV/BiffleAndShoos_TLR_F_133_EN_XX_US_51_2K_BS_20150715_WP_2D_OV_audio.mxf -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file BiffleAndShoos_TLR_F-133_EN-XX_US_51_2K_BS_20150715_WP_2D_OV/BiffleAndShoos_TLR_F_133_EN_XX_US_51_2K_BS_20150715_WP_2D_OV_audio.mxf.
Error opening input files: Invalid argument
$

"THE LOST SKELETON OF CADAVRA" -

And more...


Return to posts index

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