0

I have a bunch of files I've "shrunk" with Handbrake using a custom preset I've built after reading what each of the advanced options of the x264 encoder, at least those listed under "Advanced" tab, does.

When I encoded these files, originally MP4 I don't have anymore, for some reason I don't remember I chose the M4V over MKV.

Then today I was uploading one of the files and got an error that M4V wasn't supported. Thinking I could do a "lossless" conversion with FFMPEG I ran:

ffmpeg -i "path/to/file.m4v" -c:v copy -c:a copy "path/to/file.mkv"

And all files were converted without problems, at least none FFMPEG could relate with:

ffmpeg.exe -v error -i "path/to/file.mkv"

But then again I'm no video expert, not even close to that.

Do I have any sort of loss doing that? I would like to know so I could delete the M4V that as I read it more proprietary in favour of the open-source and more acceptable MKV

2 Answers 2

3

Your command

ffmpeg -i "path/to/file.m4v" -c:v copy -c:a copy "path/to/file.mkv"

does do a lossless copy since no recompression occurs.

You have to note all warning or error messages during the conversion. The command below will only throw an error if the file properties can't be detected, like stream info.

ffmpeg.exe -v error -i "path/to/file.mkv"

Run

ffmpeg.exe -i "path/to/file.mkv" -map 0 -f null -

to see if the entire file decodes fine.

2
  • I didn't know about this command. Does it complement the one I was using or it does the properties checking as well? Anyway, I ran it and no errors have been reported so I assume I'm safe to delete the M4Vs, right? Dec 3, 2017 at 10:03
  • The last command will check both the properties as well as a decode check. If it runs without errors, the mkv is good.
    – Gyan
    Dec 3, 2017 at 10:12
0

Use MKVToolNix: Drag and drop your video into the Multiplexer Input and click on "Start multiplexing". No quality loss, even all metadata is preserved (in my experience).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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