1

I have some rather large mp4s produced by my phone. They aren't very long, so they're probably not very compressed. What's an example of using a command line Linux tool to transcode one of these to either h.264 or vp8 or vp9, and how can I play with the quality/compression trade-off?

I know it can be done with vlc. I get lost in the documentation though, and I haven't found clear examples in my web searches.

| improve this question | | | | |
2

For example with avconv

avconv -i inputfile.avi -c:v libx264 outputfile.mp4  # to change video coding

avconv -i InFile.avi  -ss 00:12:34 -t 00:02:45.6 -c:v copy -c:a mp3  Out.avi  

With the 1st you change only the video encoding, with the second you change only the audio encoding (and you extract a piece of 2m45.6s starting from 12m34s...).

You need to have installed the encoders library that you want to use.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.