Multiple side-to-side video streams in one file without transcoding

后端 未结 2 1128
北海茫月
北海茫月 2021-01-07 01:39

I am investigating a possibility to store video streams which are coming from few sources already coded in h264 without video transcoding as the device I would like to use f

2条回答
  •  猫巷女王i
    2021-01-07 02:28

    Just specify multiple inputs.

    ffmpeg -i [input 1] -i [input 2] ... -map 0 -map 1 ... -codec copy -f matroska [output]
    

    As for the "side-to-side" part, it's up to the player to determine the presentation. If you don't control the player and you need a specific layout or presentation, then you must "burn" all these video streams into a new one and encode it as a new single stream.

提交回复
热议问题