(3 is the number of digits in the counter) # ‘output%03d.mp4’ → name the output files like output001.mp4 etc. # -segment_time 02:00 → create segments of this duration (2 minutes in the example) # -f segment → the output file will be multiple segments # -codec copy → do not recompress the video # -map 0 → use the first input file for all outputs # -i ‘something.mp4’ → the name of the input file Here is the command to create a chucks of video files: #ffmpeg -i source_video_file.mp4 -c copy -map 0 -segment_time 02:00 -f segment output%03d.mp4 Using FFmpeg we can easily create chunks of files for a given video file for the given interval. We gonna run few commands in the terminal for this task, you can use any programming language to do the same to automate things.įFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. In this tutorial, we gonna download YouTube live stream video in chunks for the given interval.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |