On Wed, 26 Aug 2020 20:03:57 -0700 Samuel Sieb <sam...@sieb.net> wrote:

> On 8/26/20 7:43 PM, Ranjan Maitra wrote:
> > I am writing to ask if there is a way to remove a small portion of a mp4 
> > file. Basically, the file is my lecture (has both audio and video
> > recorded using simplescreenrecorder) and I want to remove a portion of the 
> > mp4 (from the 14:30 to the 15:50 time-points) of an mp4. The mp4
> > itself is currently 17:50 minutes long.
> >
> > Is there a way to do this, using a command line tool (preferred) or 
> > something else?  I like command line tools because they are faster.
>
> "ffmpeg" is the typical tool for things like that.  Check the docs for
> how to select segments of the video.

Thanks, this is what I was able to do, thanks to SO:

https://askubuntu.com/questions/977162/how-to-remove-a-few-seconds-from-mp4-file-using-ffmpeg

ffmpeg -i ch3-2.mp4 -ss 00:00:00 -t 00:14:30 -acodec copy -vcodec copy test1.mp4
ffmpeg -i ch3-2.mp4 -ss 00:15:50 -t 00:17:50 -acodec copy -vcodec copy test2.mp4

then created a file: input.txt with the two lines:
file 'test1.mp4'
file 'test2.mp4'

ffmpeg -f concat -i input.txt -map 0 -c copy output.mp4

Seems to work locally. I have submitted it to Canvas (our LMS) who will now 
convert and release the video (or garbled rubbish if not).

Ranjan
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to