[SOLVED] Handbrake: MP4 to MKV loss of audio

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
scottyo
Level 1
Level 1
Posts: 12
Joined: Fri Dec 22, 2017 8:12 pm

[SOLVED] Handbrake: MP4 to MKV loss of audio

Post by scottyo » 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.
Last edited by scottyo on Thu Feb 22, 2018 6:34 am, edited 1 time in total.

User avatar
Schultz
Level 6
Level 6
Posts: 1281
Joined: Thu Feb 25, 2016 8:57 pm

Re: Handbrake: MP4 to MKV loss of audio

Post by Schultz » 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.

User avatar
phd21
Level 16
Level 16
Posts: 6776
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Handbrake: MP4 to MKV loss of audio

Post by phd21 » Sat Feb 10, 2018 3:27 pm

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 KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Hoser Rob
Level 12
Level 12
Posts: 4101
Joined: Sat Dec 15, 2012 8:57 am

Re: Handbrake: MP4 to MKV loss of audio

Post by Hoser Rob » Sun Feb 11, 2018 10:00 am

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.

User avatar
Flemur
Level 16
Level 16
Posts: 6062
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Handbrake: MP4 to MKV loss of audio

Post by Flemur » Sun Feb 11, 2018 10:14 am

- 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?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
Schultz
Level 6
Level 6
Posts: 1281
Joined: Thu Feb 25, 2016 8:57 pm

Re: Handbrake: MP4 to MKV loss of audio

Post by Schultz » Sun Feb 11, 2018 12:37 pm

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 12
Level 12
Posts: 4101
Joined: Sat Dec 15, 2012 8:57 am

Re: Handbrake: MP4 to MKV loss of audio

Post by Hoser Rob » Sun Feb 11, 2018 1:05 pm

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?

kentw
Level 1
Level 1
Posts: 18
Joined: Sun May 23, 2010 7:53 am

Re: Handbrake: MP4 to MKV loss of audio

Post by kentw » Sat Feb 17, 2018 1:08 pm

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
Level 1
Level 1
Posts: 12
Joined: Fri Dec 22, 2017 8:12 pm

[SOLVED] Handbrake: MP4 to MKV loss of audio

Post by scottyo » Thu Feb 22, 2018 6:32 am

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 6
Level 6
Posts: 1281
Joined: Thu Feb 25, 2016 8:57 pm

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

Post by Schultz » Fri Feb 23, 2018 3:38 pm

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?

Post Reply

Return to “Software & Applications”