[vlc-devel] Transcoding problem

Rafaël Carré funman at videolan.org
Mon Sep 3 17:57:32 CEST 2012

Le 03/09/2012 16:08, Hugo Beauzée-Luyssen a écrit :
> Hi,
> While trying a few production chain implying transcode + smem, I
> encountered a problem with some file formats, that I don't really
> understand.
> Basically, I'm trying to transcode to s32l , 48000hz, 2 channels.
> It works great from AAC, but fails from wav and mp3.

There's a fix for mp3 on

Let's try to see what's wrong and find a general fix that works for mp3
and wav.

> I reduced the code to a simple libvlc sample (using the one on the
> wiki) to output the result to stdout, and redirecting it to a file.
> Playing the created file in audacity allows to check if the conversion
> was successful or not.
> From what I got during those tests, it works with AAC (with samplerate
> of both 44,1 / 48kHz), but fails from wav and mp3, regardless of the
> samplerate.
> I fail to see which part could be at stake here, so any wise guess is
> more than welcome!
> You can find some samples and the sample code here :
> http://videolan.mustelidae.fr/vlmc/
> Best regards,

More information about the vlc-devel mailing list