Trying to merge and map 1 video file with 4 audio files
We've have 1 video file, 4 audio files, all same length. The video file is DNxHD36 The audio tracks are all .wav The goal is to merge all 5 files in sync Based on https://ffmpeg.org/ffmpeg.html#Advanced-options I tried the following: ffmpeg \ -i 'Video.mxf' \ -i 'Audio1.wav' \ -i 'Audio2.wav' \ -i 'Audio3.wav' \ -i 'Audio4.wav' \ -c:v copy \ -c:a pcm_s24le \ -map 0:v:0 \ -map_channel 1.0.0 OUTPUT_CH0 \ -map_channel 2.0.0 OUTPUT_CH1 \ -map_channel 3.0.0 OUTPUT_CH2 \ -map_channel 4.0.0 OUTPUT_CH3 \ '/Volumes/ANF_VFX/prjx531-Xfers/ANF_103_230908_Soft Lock_MixStage_test.mxf' Getting error [NULL @ 0x7f814601a200] Unable to find a suitable output format for 'OUTPUT_CH0' OUTPUT_CH0: Invalid argument Also tried removing the extra 0 in the -map_channel lines, e.g. -map_channel 1.0 OUTPUT_CH0 instead of -map_channel 1.0.0 OUTPUT_CH0 Got error Syntax error, mapchan usage: [file.stream.channel|-1][:syncfile:syncstream]
How to merge and map 1 video file with 4 audio files? We've have 1 video file, 4 audio files, all same length. The video file is DNxHD36 The audio tracks are all .wav The goal is to merge all 5 files in sync Based on https://ffmpeg.org/ffmpeg.html#Advanced-options I tried the following: ffmpeg \ -i 'Video.mxf' \ -i 'Audio1.wav' \ -i 'Audio2.wav' \ -i 'Audio3.wav' \ -i 'Audio4.wav' \ -c:v copy \ -c:a pcm_s24le \ -map 0:v:0 \ -map_channel 1.0.0 OUTPUT_CH0 \ -map_channel 2.0.0 OUTPUT_CH1 \ -map_channel 3.0.0 OUTPUT_CH2 \ -map_channel 4.0.0 OUTPUT_CH3 \ '/Volumes/ANF_VFX/prjx531-Xfers/ANF_103_230908_Soft Lock_MixStage_test.mxf' Getting error [NULL @ 0x7f814601a200] Unable to find a suitable output format for 'OUTPUT_CH0' OUTPUT_CH0: Invalid argument Also tried removing the extra 0 in the -map_channel lines, e.g. -map_channel 1.0 OUTPUT_CH0 instead of -map_channel 1.0.0 OUTPUT_CH0 Got error Syntax error, mapchan usage: [file.stream.channel|-1][:syncfile:syncstream]
сб, 30 сент. 2023 г., 19:08 Media Mouth <communque@gmail.com>:
How to merge and map 1 video file with 4 audio files?
We've have 1 video file, 4 audio files, all same length. The video file is DNxHD36 The audio tracks are all .wav
The goal is to merge all 5 files in sync
Based on https://ffmpeg.org/ffmpeg.html#Advanced-options I tried the following:
ffmpeg \ -i 'Video.mxf' \ -i 'Audio1.wav' \ -i 'Audio2.wav' \ -i 'Audio3.wav' \ -i 'Audio4.wav' \ -c:v copy \ -c:a pcm_s24le \ -map 0:v:0 \ -map_channel 1.0.0 OUTPUT_CH0 \ -map_channel 2.0.0 OUTPUT_CH1 \ -map_channel 3.0.0 OUTPUT_CH2 \ -map_channel 4.0.0 OUTPUT_CH3 \ '/Volumes/ANF_VFX/prjx531-Xfers/ANF_103_230908_Soft Lock_MixStage_test.mxf'
Getting error [NULL @ 0x7f814601a200] Unable to find a suitable output format for 'OUTPUT_CH0' OUTPUT_CH0: Invalid argument
may be remove all OUTPUT_CHx lines so output will be clearly into one mxf file?
Also tried removing the extra 0 in the -map_channel lines, e.g. -map_channel 1.0 OUTPUT_CH0 instead of -map_channel 1.0.0 OUTPUT_CH0
Got error Syntax error, mapchan usage: [file.stream.channel|-1][:syncfile:syncstream]
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On Sep 30, 2023, at 09:31, Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
may be remove all OUTPUT_CHx lines so output will be clearly into one mxf file?
Thanks Andrew, will try! What made you think removing the "remove all OUTPUT_CHx " was the right move? What I'm hoping for, big picture, is to understand in detail routing source to dest. The documentation seems clear enough, but the errors I got suggest I didn't quite figure it out yet. Thx
сб, 30 сент. 2023 г., 20:58 MediaMouth <communque@gmail.com>:
On Sep 30, 2023, at 09:31, Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
may be remove all OUTPUT_CHx lines so output will be clearly into one mxf file?
Thanks Andrew, will try!
What made you think removing the "remove all OUTPUT_CHx " was the right move?
I thought so only from my limited expirience with ffmpeg cli, it looked like ffmpeg was trying to output to those OUTPUT_CHx as files and failed because it was not obvious (usually from extension) what kind of container it must be. I think there is option for channel rerouting in containers from man ffmpeg -layouts Show channel names and standard channel layouts.
What I'm hoping for, big picture, is to understand in detail routing source to dest. The documentation seems clear enough, but the errors I got suggest I didn't quite figure it out yet.
Thx
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
participants (3)
-
Andrew Randrianasulu -
Media Mouth -
MediaMouth