[haiku-bugs] Re: [Haiku] #9616: MediaConverter doesn't convert to OGG or MP3 and converts to WAV with video

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Tue, 21 Oct 2014 09:28:16 -0000

#9616: MediaConverter doesn't convert to OGG or MP3 and converts to WAV with 
video
------------------------------------+----------------------------
   Reporter:  Kev                   |      Owner:  nobody
       Type:  enhancement           |     Status:  new
   Priority:  normal                |  Milestone:  R1/alpha5
  Component:  Audio & Video/Codecs  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:  10722
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by pulkomandy):

 I didn't investigate the ffmpeg problem deeply, maybe it's possible to
 debug it. Here is what I know about it:
 * Because of our constraint to use gcc2, we are using an old version of
 ffmpeg. Currently we use version 0.10.14. ffmpeg current releases are at
 2.something. They still have maintenance releases for the 0.10 branch,
 however (and also for the 0.9 branch. Older ones have no updates since
 2013).
 * Newer version (0.11 and later) won't compile at all with gcc2.
 * Even 0.10 is known to not go along well with gcc2. We got it to compile
 with some patching, but it warns on the console that it has been
 miscompiled because the compiler didn't align stack variables. Even with
 this known issue, decoding seems to work fine.
 * But I'm not sure the stack alignment issue is actually related to the
 problem. We compile ffmpeg without SSE2 and that should make it safe. It's
 easy to check this by testing MediaConvert on a gcc4 system and seeing if
 it also crashes there (after reenabling the vorbis encoder).

 I think the best way forward is:
 * First, we need to get MediaConvert to work reliably with FLAC. The
 problems I've hit in my testing were on the decoding side of things. It
 seems MediaConvert manages to decode most of the file, but fails at the
 last "frame" of audio, which is shorter than others because it hits the
 end of the file.
 * Once we have this working, we can see if it helps with some of the other
 formats.
 * If it doesn't, having a vorbis encoder using libvorbis directly is worth
 a try.

 Do you know if using ffmpeg to encode to ogg/vorbis from the command line
 works? If it does, the problem is not related to gcc2 or the way we build
 ffmpeg, but to using it in a wrong way in our encoder plugin. Ant it
 should be possible to fix that.

--
Ticket URL: <https://dev.haiku-os.org/ticket/9616#comment:9>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: