-
FFMpeg to keep multiple audio channels
Hello.
What I am attempting to do is to transcode an H264 MP4 video file with 2 audio tracks to a DV DVCPro50 file with the same distinct audio tracks using FFMPEG. The FFMPEG is created fine as a dv file but the audio tracks are converted into a single 2 channel track. Every type of mapping configuration has produced the same results of a single audio track. How can I keep the 2 distinct audio tracks in tact after transcoding? Here is the FFProbe information on the original video which shows the 2 audio streams 0.1 and 0.2:
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
encoder : HandBrake 0.9.5 2011010300
Duration: 00:02:04.33, start: 0.000000, bitrate: 6197 kb/s
Stream #0.0(und): Video: h264, yuv420p, 720×480 [PAR 32:27 DA
/s, PAR 1706:1215 DAR 853:405, 29.97 fps, 29.97 tbr, 90k tbn, 18
Stream #0.1(eng): Audio: aac, 48000 Hz, mono, s16, 2 kb/s
Stream #0.2(eng): Audio: aac, 48000 Hz, mono, s16, 159 kb/sHere is one of my attempts. This produces a dv file with a single 2 channel track.
ffmpeg -i “BaseballOriginal.mp4” -target ntsc-dv -acodec pcm_s16le -map 0:0 -map 0:1 -map 0:2 -pix_fmt yuv422p -y “C:\videos\Latakoo\KSAT\BaseballOriginal-1-2.dv” -newaudio
I can create an Mpeg file fine using the acodec -mp2 and -f vob, and it produces the correct 2 distinct audio tracks, but I need a DV file. Is my mapping wrong, or can it even be done for DV? Thanks.