Page 1 of 1

Flac transcoding crashing

Posted: Sat Jun 23, 2012 3:10 pm
by Icanseestars
I've been trying out the Flac transcoding but haven't had any luck so far, seems to crash every time I try. I've changed builds of ffmpeg, different Blu-ray's and it makes no difference (audio track selected was TrueHD).

Running Windows 7 64-bit, used latest ffmpeg from zeranoe, it just crashes, asks to send error report then MakeMKV cancels the job.

I've attached the log if that can help.

Re: Flac transcoding crashing

Posted: Fri Aug 17, 2012 12:46 pm
by mike admin
As of 1.7.7 MakeMKV comes with its own ffmpeg executable. Just clear the ffmpeg location in preferences and it'll revert to using builtin mmffmpeg.

Re: Flac transcoding crashing

Posted: Mon Aug 20, 2012 7:36 pm
by holunder2
I have cleared the FFMPEG location in the settings but with 1.7.7 each time I try to convert to FLAC I get: "Unable to execute external program 'ffmpeg' as its path is not set in preferences". :/
MakeMKV 1.7.7 on 64-Bit Linux. BTW: What is the location of the mmffmpeg binary? Is it in the MakeMKV binary?

Re: Flac transcoding crashing

Posted: Wed Sep 12, 2012 5:35 am
by mike admin
Linux is a special case - mmffmpeg comes pre-compiled only on Windows and Mac, for Linux you have to compile one yourself from source.

Re: Flac transcoding crashing

Posted: Sun Sep 23, 2012 1:27 pm
by holunder2
@mike admin:
Will your 24 bit patch get into upstream in time? Have you sent the patch so the ffmpeg developers?
So long, a pre-compiled binary of mmffmpeg would be very handy on Linux too, because I have compiled and installed it and I'm still getting only 16 bit FLACs... Maybe I miss something, I don't know. :/

Re: Flac transcoding crashing

Posted: Sun Sep 23, 2012 5:11 pm
by Romansh
holunder2 wrote:@mike admin:
Will your 24 bit patch get into upstream in time? Have you sent the patch so the ffmpeg developers?
So long, a pre-compiled binary of mmffmpeg would be very handy on Linux too, because I have compiled and installed it and I'm still getting only 16 bit FLACs... Maybe I miss something, I don't know. :/
Justin (Ruggles) has a patch for 24-bit FLAC which looks a tad cleaner that the MakeMKV one. It's mostly ready and just needs cleanup, but it's not terribly high on his priority list.

In any case, since you can build from source, may I suggested applying the MakeMKV patch?

http://www.makemkv.com/download/ffmpeg/

Re: Flac transcoding crashing

Posted: Sun Sep 23, 2012 5:56 pm
by holunder2
Hey,
the result that I still got 16 bit FLAC was as I had installed the mmffmpeg over my system's ffmpeg and I suspect this was the problem. So I made a fine Arch package and installed it into /opt and wrote

Code: Select all

LD_LIBRARY_PATH=/opt/mmffmpeg/lib /opt/mmffmpeg/bin/ffmpeg
into the FFMPEG location field in MakeMKV. When I run this in a terminal it works. But in MakeMKV the program freezes at conversion and even

Code: Select all

/usr/lib/ld-2.16.so --library-path /opt/mmffmpeg/lib /opt/mmffmpeg/bin/ffmpeg
doesn't work. Then I tried to put this into a wrapper:

Code: Select all

#!/bin/sh
[command 1 / command 2]
made it executable and set the FMPEG location to /home/username/.MakeMKV/mmffmpegwrapper.sh but MakeMKV still freezes at conversation.
I didn't applied the mmffmpeg patch from http://www.makemkv.com/download/ffmpeg/ because it is already integrated in the main archive. I think so. ;)

So, now I can't use mmffmpeg although it is installed. :/

EDIT: Oh, a friend told me, I need to set $@ at the end of the line, so

Code: Select all

#!/bin/sh
LD_LIBRARY_PATH=/opt/mmffmpeg/lib /opt/mmffmpeg/bin/ffmpeg $@
works!! :) The wrapper is necessary, but it works now and I get 24 bit FLACs, yeah! :)

Re: Flac transcoding crashing

Posted: Mon Oct 01, 2012 6:30 pm
by holunder2
Hey, I have sent the patch to ffmpeg devs, regardless of @Romansh's hint on another patch. They ask for the name of the author, please respond: http://ffmpeg.org/trac/ffmpeg/ticket/210

Re: Flac transcoding crashing

Posted: Sat Oct 13, 2012 7:39 am
by mike admin
This patch is Public domain. No copyright is claimed. Feel free to give a link to this page.

Re: Flac transcoding crashing

Posted: Sat Oct 27, 2012 7:29 am
by mike admin
holunder2 wrote:works!! :) The wrapper is necessary, but it works now and I get 24 bit FLACs, yeah! :)
When building ffmpeg, pass "--disable-shared --enable-static" to configure and you won't be needing any wrapper. The ffmpeg executable will be self-contained with no dependencies on any (non-system) libraries.

Re: Flac transcoding crashing

Posted: Sun Oct 28, 2012 5:33 am
by Romansh
Romansh wrote:
holunder2 wrote:@mike admin:
Will your 24 bit patch get into upstream in time? Have you sent the patch so the ffmpeg developers?
So long, a pre-compiled binary of mmffmpeg would be very handy on Linux too, because I have compiled and installed it and I'm still getting only 16 bit FLACs... Maybe I miss something, I don't know. :/
Justin (Ruggles) has a patch for 24-bit FLAC which looks a tad cleaner that the MakeMKV one. It's mostly ready and just needs cleanup, but it's not terribly high on his priority list.
http://patches.libav.org/patch/29771/

Re: Flac transcoding crashing

Posted: Tue Nov 06, 2012 12:19 am
by Romansh

Re: Flac transcoding crashing

Posted: Tue Nov 06, 2012 12:55 am
by holunder2
@Romansh: Wow, great! Thank you very much for you work! ?

Re: Flac transcoding crashing

Posted: Tue Nov 06, 2012 4:08 pm
by Romansh
holunder2 wrote:@Romansh: Wow, great! Thank you very much for you work! ?
I'm not Justin though ;-) :P