I am looking for a file converting program to trim and convert videos into .webm format. I am currently using Ubuntu 14.04.1 LTS.
3 Answers
Try the ffmpeg program:
ffmpeg -i input.mp4 -ss 00:00:03 -t 00:00:08 output.webm
This should get 8 seconds (-t 00:00:08) of input.mp4 (starting 3 seconds into the video -ss 00:00:03) and put them to output.webm as result, i.e. the cut-out is form second 3 to second 11 (don't nail me down if the 3 or the 11 is included then ... )
- 2,438
You can use ffmpeg program. See Is FFmpeg missing from the official repositories in 14.04? and FFmpeg guide for the instructions on how to install this program.
After the installation you can convert an .avi video, for eg, by:
ffmpeg -i foo.avi foo.webm
With only this raw conversion the quality might not be the best you will get. You'll have to use 'exotic' audio/video/transcoding options while converting. One suggested way is, for eg:
avconv -i foo.mp4 -acodec libvorbis -aq 5 -ac 2 -qmax 25 -threads 2 foo.webm
where:
-acodec libvorbisis audio codec for WebM-aqis audio qualityacis the number of audio channels-qmaxquantization/compression level for videothreadshow many CPUs should be used while transcoding
Parts from this answer comes from this answer at MTS video files - how to merge and convert multiple files
When it is about muxing/remuxing/transcoding the very best GUI Tool for ffmpeg/avconv/mencoder seems to be the Mobile Media Converter by Miksoft (https://www.miksoft.net/mobileMediaConverter.php) of which I am going to illustrate as follows:
MMC will also allow you to rip from DVD and Download from YouTube.
Please see this answer at How can I maximum compress video files? for a detailed explanation about compression.
Good luck!
- 19,772
