E
E
Eugene2017-04-01 01:24:28
YouTube
Eugene, 2017-04-01 01:24:28

FFMpeg how to merge video + audio and save in parts (part)?

Good day, I have a problem, I'm looking for a solution ..
The bottom line is, I want to play a 1080p video from YouTube on a TV screen via OMXPLAYER in Raspberry Pi. 2 files in 1 and run, but the process of downloading 2 files does not always go quickly and I would like to break the files into pieces, for example, for 2-3 minutes, and then run them in parts.
Now there is a download in 1 file

ffmpeg -i "LINK TO VIDEO" -i "LINK TO AUDIO" -c:v copy -c:a copy output.mp4

Tried it this way
ffmpeg -i "LINK TO VIDEO" -i "LINK TO AUDIO" -c:v copy -c:a copy -map 0 -f segment -segment_time 5 -segment_format mp4 "capture-%03d.mp4"

But at the same time, there is no sound, as if only the video file is divided into parts without mixing with audio, please tell me how to save the pieces while combining them (gluing) or another way to solve this problem

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question