ffmpegloss

ffmpeg convert without loss quality


I need convert all videos to my video player (in website) when file type is other than flv/mp4/webm.

When I use: ffmpeg -i filename.mkv -sameq -ar 22050 filename.mp4 :

[h264 @ 0x645ee0] error while decoding MB 22 1, bytestream (8786)

My point is, what I should do, when I need convert file type: .mkv and other(not supported by jwplayer) to flv/mp4 without quality loss.


Solution

  • Instead of -sameq (removed by FFMpeg), use -qscale 0 : the file size will increase but it will preserve the quality.