FFmpeg: how to concat 2 videos? (1 with no audio tracks, 1 with 2 audio tracks)?

0

ffmpeg -i NoAudio.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts

ffmpeg -i 2Audio.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts

ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4

My output.mp4 ends up with only 1 Audio. What am I missing?

SomeoneInNeedOfHelp

Posted 2018-12-21T04:23:25.990

Reputation: 1

1You'll need to add dummy audio to the first file. – Gyan – 2018-12-21T05:20:42.323

how to add dummy audio to the first file? – SomeoneInNeedOfHelp – 2018-12-22T05:42:53.500

No answers