Splitting a Video Into Parts: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=Cut Away End Part= | |||
Trim after 30 minutes: | |||
ffmpeg -i 1.mpeg -t 1800 -acodec copy -vcodec copy 30minvideo.mpeg | ffmpeg -i 1.mpeg -t 1800 -acodec copy -vcodec copy 30minvideo.mpeg | ||
=Cut Away Start= | |||
Trim before 30 minutes: | |||
ffmpeg -i 1.mpeg -ss 1800 -acodec copy -vcodec copy pulverizer2.mpeg | ffmpeg -i 1.mpeg -ss 1800 -acodec copy -vcodec copy pulverizer2.mpeg | ||
Line 11: | Line 17: | ||
*Stack exchange shows the timing parameters - [https://unix.stackexchange.com/questions/1670/how-can-i-use-ffmpeg-to-split-mpeg-video-into-10-minute-chunks]]. -ss is start second, -t is seconds of duration. | *Stack exchange shows the timing parameters - [https://unix.stackexchange.com/questions/1670/how-can-i-use-ffmpeg-to-split-mpeg-video-into-10-minute-chunks]]. -ss is start second, -t is seconds of duration. | ||
*'''To do lossless cutting:''' Lossless only does muxing and demuxing - not transcoding. [https://stackoverflow.com/questions/15629490/how-to-cut-part-of-mp4-video-using-ffmpeg-without-losing-quality] | *'''To do lossless cutting:''' Lossless only does muxing and demuxing - not transcoding. [https://stackoverflow.com/questions/15629490/how-to-cut-part-of-mp4-video-using-ffmpeg-without-losing-quality] | ||
ffmpeg -i 1.mpeg -t 1800 -acodec copy -vcodec copy 30minvideo.mpeg |
Latest revision as of 16:15, 19 July 2021
Cut Away End Part
Trim after 30 minutes:
ffmpeg -i 1.mpeg -t 1800 -acodec copy -vcodec copy 30minvideo.mpeg
Cut Away Start
Trim before 30 minutes:
ffmpeg -i 1.mpeg -ss 1800 -acodec copy -vcodec copy pulverizer2.mpeg
(star second is 1800, and goes to end.
Links
- Stack exchange shows the timing parameters - [1]]. -ss is start second, -t is seconds of duration.
- To do lossless cutting: Lossless only does muxing and demuxing - not transcoding. [2]
ffmpeg -i 1.mpeg -t 1800 -acodec copy -vcodec copy 30minvideo.mpeg