Reply To: tip: A quick way to convert video container of a file

Forum › Forums › General › Tips and Tricks › tip: A quick way to convert video container of a file › Reply To: tip: A quick way to convert video container of a file

#23205
fatmac
Member

    You could make yourself a little script to do the conversion for you, only needing the file name (less extension) as the parameter ($1) – might make it easier for you in the future. 🙂

    
    # Just use the filename less extension as parameter
    ffmpeg -i $1.mp4 -vcodec copy -acodec copy $1.mkv

    Then you just call it mp4-2-mpv, (or anything else you like), & run it as so,

    mp4-2-mpv filename

    Linux (& BSD) since 1999
    Ultra Small Form Factor & thin client computers