[SOLVED] Handbrake: MP4 to MKV loss of audio

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
scottyo

[SOLVED] Handbrake: MP4 to MKV loss of audio

Post by scottyo »

I am struggling here. I am trying to convert an MP4 File to MKV and each time I do it with Handbrake, I lose the audio. Any pointers? Would very much appreciate it. Thank you.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Schultz
Level 9
Level 9
Posts: 2958
Joined: Thu Feb 25, 2016 8:57 pm

Re: Handbrake: MP4 to MKV loss of audio

Post by Schultz »

This doesn't really answer your question, but you can use ffmpeg to switch to the mkv container without having to reencoding both the audio and video, thus not losing any quality.
phd21
Level 20
Level 20
Posts: 10104
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Handbrake: MP4 to MKV loss of audio

Post by phd21 »

Hi scottyo,

AFAIK, you should have no problem converting MP4 to MKV using Handbrake, but it would help to have more information, which edition and version of Linux Mint, like which Handbrake "preset" did you use, and what Handbrake version are you using? How about a screenshot of Handbrake?

And as was just suggested, if you just want to convert MP4 to MKV, there are simple applications like WinFF, Curlew, Transmagedon, FF Multi Converter, Avidemux, etc...


Hope this helps ...
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: Handbrake: MP4 to MKV loss of audio

Post by Hoser Rob »

Schultz wrote: Sat Feb 10, 2018 3:19 pm This doesn't really answer your question, but you can use ffmpeg to switch to the mkv container without having to reencoding both the audio and video, thus not losing any quality.
I basically agree with this ... but if you're triyng to compress the video you could just set the encoder to simply copy the video stream. AFAIK Handbrake has this option. You don't save much space by compressing the audio.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Handbrake: MP4 to MKV loss of audio

Post by Flemur »

- Have you tried just changing the file's extension? (I've changed it the opposite way [m4v->mp4] with handbrake's output files). Probably won't work, but easy to try...

- avidemux can change the container without re-encoding anything. I know ffmpeg/avconv can do the same thing if you don't mind fiddling.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
Schultz
Level 9
Level 9
Posts: 2958
Joined: Thu Feb 25, 2016 8:57 pm

Re: Handbrake: MP4 to MKV loss of audio

Post by Schultz »

Flemur wrote:
- Have you tried just changing the file's extension? (I've changed it the opposite way [m4v->mp4] with handbrake's output files).
Changing the filename of an m4v to mp4 is not a problem, because with either way it's still the mp4 container. But simply changing the mp4 to mkv in a file name does not change the container, the contents will still be in a mp4 container. If the OP isn't doing any type of editing, the best thing he can do is copy the video/audio into the mvk container, either with ffmpeg or with Handbrake if Handbrake allows both video/audio to be copied without reencoding (or any app that has the pass through feature).

BTW, there is a setting in Handbrake to make the files have the mp4 extension. It is in File >> Preferences, general tab. Untick the box "Use iPod/iTunes friendly (.m4v) file extension for MP4."
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: Handbrake: MP4 to MKV loss of audio

Post by Hoser Rob »

If you're going to be doing any conversion ... you didn't say but I think you're probably wanting to shrink the file ... you need Mediainfo. The package name is mediainfo-gui, install it via software manager or synaptic. Open the file with mediainfo, switch to text mode, and copy/paste the text here.

It may be a codec problem wiith Handbrake. Does the original file play on the same machine with audio?
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
kentw

Re: Handbrake: MP4 to MKV loss of audio

Post by kentw »

scottyo wrote: Sun Jan 21, 2018 7:40 pm I am struggling here. I am trying to convert an MP4 File to MKV and each time I do it with Handbrake, I lose the audio. Any pointers? Would very much appreciate it. Thank you.
Hi there ! i am using Handbrake just recent days and i had the similar "loss of Audio" when "Start Encoding" was finished , yesterday and earlier today it functioned well to Encode from a DVD to MKV with audio also - the only change i saw was : the tab "Audio List" was empty , i tried to click Reload Defaults without any reaction ( that functioned earlier ) . so i manually added codecs in "Audio List" with happy result . / \
scottyo

[SOLVED] Handbrake: MP4 to MKV loss of audio

Post by scottyo »

I believe I have discovered the issue. It appears the the xPLayer does not have sound. But when I use the VLC player it does. Not sure why that is, but i have sound now.
User avatar
Schultz
Level 9
Level 9
Posts: 2958
Joined: Thu Feb 25, 2016 8:57 pm

Re: [SOLVED] Handbrake: MP4 to MKV loss of audio

Post by Schultz »

scottyo wrote:
It appears the the xPLayer does not have sound.
Did you click on the speaker icon in Xplayer to make sure the volume is not at zero?
Locked

Return to “Software & Applications”