Re: OT: Command-line tool on Fedora 32 to remove a small portion of mp4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 Aug 2020 20:03:57 -0700 Samuel Sieb <samuel@xxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux