Splitting a Video Into Parts: Difference between revisions
Jump to navigation
Jump to search
(Created page with "ffmpeg -i 1.mpeg -t 1800 -acodec copy -vcodec copy 30minvideo.mpeg See https://www.ffmpeg.org/ffmpeg.html =Links= *Stack exchange shows the timing parameters - [https://unix...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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 | ||
See https://www.ffmpeg.org/ffmpeg.html | =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. | |||
*See https://www.ffmpeg.org/ffmpeg.html | |||
=Links= | =Links= | ||
*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