20+ FFmpeg Commands For Beginners

19 Responses

  1. IJK says:

    The -sameq option is absent in recent versions of ffmpeg.

  2. Vladimir says:

    Hi any advice for newbie how to stop playing current track and start playing other one with ffmpeg in ruby (on web)

  3. Nuttapong Sarkana says:

    wow thank you sh much.

  4. Anthony says:

    This is a great breakdown of simple FFmpeg cmds, I’ll be referring others to this page in the future.

  5. Dave says:

    Awesome article. Great job. Going right into favorites!

  6. bruce says:

    Hello, i find a problem. When i execute a command ./ffmpeg -i input.ts -t 10 output.ts, it returns a error “Conversion failed!”. Pls check this.

  7. Robert St.Amour says:

    Any pointers on how to record Linux audio , so far I’ve been able to record line-in, but using, eg, -i hw:0, or hw:0,0 returns resource busy.

    I assume my asound.conf needs an entry but I haven’t figured out what the names in that file refer to, or what to pass to ffmpeg as an input arg.

  8. Danilo says:

    hello thanks for this, i’m share it’s very convenient to also check the duration of a video file with this command:

    $ ffmpeg -i myvideo 2>&1 | grep Duration | cut -d ‘ ‘ -f 4 | sed s/,//

  9. EbonCandle says:

    For Converting video files to audio files:
    when i run –> ffmpeg -i input.mp4 -vn -ar 44100 -ac 2 -ab 320 -f mp3 output.mp3
    it says–>
    “Bitrate 320 is extremely low, maybe you mean 320k
    The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s”

    then i replaced ‘320’ by ‘320k’ , it showed no errors.
    please update this ^ u ^

    • sk says:

      That’s not an error. It is just a notification. If you only enter 320, it simply takes bits/s as argument. If you enter 320k, it takes kbits/s as argument. It is bitrate of the output file.

  10. HAL says:

    EbonCandle:

    You can not convert video to audio yet, for that you need a HAL-9000 computer that can read the lips movement to synthesize speech. If the images contain text, you can use ffmpeg to extract the frames to be processed by an OCR and a speech synthesis program.

    However you can extract audio from a video with audio file.
    ffmpeg -i input.mp4 -vn -c:a copy output.mp3

    -vn suppress the video track and Reply

    -c:a copy, just copies the audio track without conversion.

    the format is taken from the .mp3 extension.

    You don’t need to convert the audio if both, source and target formats, support the video encoding.

  11. HAL says:

    SK: You may have noticed that I accidentally pasted a “Reply” text in the above text.
    That is due to the nasty big “click pad”, that one accidentally touches during typing moving the cursor anywhere or pasting or dragging text if the touch is interpreted as middle click or drag gesture.

    Do you know any way to inhibit that nasty behavior of click pads?

    In the past synclient could be configured with commands, but the new linux distributions use other “driver” to handle the click pad which I don’t know how to configure.

  12. PL says:

    Perfect for me, the beginner. Glad that I found this. Many features I have been looking for. Didn’t know it could be this easy.

    Thank you!

  13. jasmine says:

    thank you so much,
    but please help me to achieve my desired results.
    i want to convert a .vob and .m2ts videos to mkv profile [email protected] in high quality like original videos, so what would be the command??

  14. Matias says:

    Thank you so much for this guide. I came to it after getting frustrated with a couple of FFMPEG GUI wrapper.
    There are many outdated wrappers that use deprecated arguments or just don´t accept latest versions of ffmpeg.
    This article made me self-confident to just use FFMPEG from the command line.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.