Skip to content

Instantly share code, notes, and snippets.

@brotich
Forked from lemenkov/gist:2947110
Created September 28, 2020 06:15
Show Gist options
  • Save brotich/8b99ed8b55c81fb5adf847682c19cb08 to your computer and use it in GitHub Desktop.
Save brotich/8b99ed8b55c81fb5adf847682c19cb08 to your computer and use it in GitHub Desktop.
How to convert from any video format to mkv with ffmpeg/libav w/o recompressing
# "-fflags +genpts" - add this to regenerate packet timestamps (in case of error "Can't write packet with unknown timestamp")
./ffmpeg -fflags +genpts -i "/media/nfs/Nostromo/video/Japan Sinks (Nihon Chinbotsu) 1973 - WMV/NihonChinbotsu_1973.wmv" -acodec copy -vcodec copy ~/Desktop/NihonChinbotsu_1973.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment