5

Merge Instagram Post Live Video and Audio in ffmpeg

 2 years ago
source link: http://siongui.github.io/2018/03/07/merge-ig-post-live-video-audio-in-ffmpeg/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Merge Instagram Post Live Video and Audio in ffmpeg

March 07, 2018

In my previous post, we get the feed of Instagram post live video and parse dash manifest of post live video shared to stories. We can get two urls in the dash manifest. One is video of the post live replay and the other is audio. We need to find some way to merge the two mp4 file. After some Google searches [1] [2], I got the answer. We can use ffmpeg to help us:

$ ffmpeg -i video.mp4 -i audio.mp4 -c:v copy -c:a copy merged.mp4

The speed of merge is so fast that I got the merged mp4 instantly after press enter key. Really amazing!

Tested on: Ubuntu 17.10


References:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK