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

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 29 Oct 2014 21:54:50 -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
------------------------------------+----------------------------

Old description:

> I tried converting some MP4 videos to audio-only ogg vorbis or MPEG w/
> AC-3 (same as MP3?).  Every file I tried resulted in a small file (only a
> few kb) quickly created.
>
> Raw audio in a WAV container worked; however, despite "no video" in the
> video encoding section, the WAV files, when opened in MediaPlayer, show
> the original video somehow.  (I didn't even know WAV could do that.)
>
> The MP4s in question play fine in MediaPlayer, which also plays other
> OGGs just fine.
>
> hrev45413 gcc4hybrid.  AC '97 Audio, Dolby 5.1 (6-channel)

New description:

 I tried converting some MP4 videos to audio-only ogg vorbis or MPEG w/
 AC-3 (same as MP3?).  Every file I tried resulted in a small file (only a
 few kb) quickly created.

 Raw audio in a WAV container worked; however, despite "no video" in the
 video encoding section, the WAV files, when opened in MediaPlayer, show
 the original video somehow.  (I didn't even know WAV could do that.)

 The MP4s in question play fine in MediaPlayer, which also plays other OGGs
 just fine.

 hrev45413 gcc4hybrid.  AC '97 Audio, Dolby 5.1 (6-channel)

--

Comment (by pulkomandy):

 Sample rates should not be a problem, however making it work with 32-bit
 audio doesn't seem possible on ffmpeg side. What we need to do here is
 review our ffmpeg plugin so it properly exports the constraints for each
 encoder. Right now it pretends to accept any kind of input, but actually
 doesn't.

 Then, it should be possible to configure the dcoders to output matching
 formats, or insert a format conversion step in the process. But without
 the ffmpeg plugin advertising its actual capabilities and limitations,
 this is not really possible.

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

Other related posts: