HI Javier,

Sorry for the slow turnaround on this submissions.  I have now merged it
and checked it into svn/trunk.  I am still seeing problems with the audio
on most of the videos I have - these all have floating point planar audio.

Since SDL1.x doesn't support floating point audio buffers I've added
support to the osgmovie example for compiling against SDL2.x.
Unfortunately this only allows us to play the audio, the actual quality is
very distorted.  I haven't yet been able to track down why.  On a movie I
have with S16 audio everything works nice and clearly though.  I have
checked the addition of SDL2 support into svn/trunk.

Could you please test out OSG svn/trunk and let me know how you get on,

Thanks,
Robert.

Robert.

On 31 January 2014 at 17:46, Javier Taibo <[email protected]> wrote:
>
>   Hi Robert,
>
>   I have found that since version 1.1, FFMPEG changed the way audio
> streams are retrieved, from packed to planar format. SDL interprets packed
> audio, as is used in the osgmovie example. To make the audio work when the
> OSGffmpeg plug-in is compiled against recent FFMPEG versions,
> FFmpegDecoderAudio must check for planar formats and in these cases request
> the samples as packed. This way all works as before. It can be checked with
> osgmovie example application.
>
>   $ osgmovie --audio movie.avi.ffmpeg
>   FFmpegImageStream::open audio failed, audio stream will be disabled:
> unknown audio format
>
>   With the attached FFmpegDecoderAudio.cpp, audio sounds correctly.
>
>   I am also attaching a modified version of FindFFmpeg.cmake that allows
> to set as FFMPEG_DIR the ffmpeg compiled in the source directory structure.
> It should not break anything as it only adds some additional search paths.
>
>
>   Regards,
>
> --
> Javier Taibo
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to