Tag Archives: ffmpeg

How to cut first x seconds of a video using ffmpeg

ffmpeg -i source_video.mp4 -t 50 -c copy output_video.mp4 This cuts the first 50 seconds of the video named source_video.mp4 and outputs them without any re-encoding to output_video.mp4 Source: https://ubuntuforums.org/showthread.php?t=2027333 Advertisements

Posted in Linux | Tagged , , , | Leave a comment

Batch-resize videos on Ubuntu Linux with ffmpeg

So, the case is as follows: I have about 15 videos files that were recorded at 4K and are very large in size. I wanted to keep everything as is, but just reduce the resolution to HD (720p). ffmpeg would … Continue reading

Posted in Linux, Uncategorized | Tagged | Leave a comment

How to cut videos from the command line in Ubuntu 12.10 and later (Mint 14 and later)

avconv -i DP4U12.ogv -vcodec copy -acodec copy -ss 00:00:00 -t 00:04:20 DP4U12_complete.ogv The above command preserves the same format of the input file, where: DP4U12.ogv is the input file DP4U12_complete.ogv is the output file The command cuts the video from … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Convert CD-quality WAV to 8bit mono WAV using ffmpeg

Today I needed to record something in a WAV file that shouldn’t exceed 100 KB, when I used the standard “Sound Recorder” in Ubuntu, it recorded using the default CD-quality recording (resulting in a 280 KB file, so I used … Continue reading

| Tagged , , | Leave a comment