And attach your results here for the rest of us ;-) Sent via BlackBerry from T-Mobile
-----Original Message----- From: Robert Swain <[email protected]> Date: Mon, 6 Jul 2009 20:29:15 To: <[email protected]> Subject: Re: [libav-user] Preferred method of downmixing to stereo On Mon, 6 Jul 2009 11:27:48 -0700 (PDT), tbartdev <[email protected]> wrote: > > > tbartdev wrote: > > > > There is no av_audio_resample in the current SVN sources. The only > > thing that shows when grepping for it is av_audio_resample_init, > > which I described above as not working with more than 2 channels... > > Is it possible you meant something different? > > > > hm.. quoting myself.. > After searching again I have still not found a way to solve playing > more than two channels into a stereo framework. I however found that > mplayer's libaf (to be precise, af_channels.c) seems to do everything > I want. I am however completely lost at how to put that into ffmpeg, > or how to use it in my project, as I have never used external code in > my (small) projects. I am only asking once again whether there is no > other way to do this with existing functions of ffmpeg? Or is there > some generic way of using mplayer's sources/filters with ffmpeg (the > project are rather close.. some common API or the like?) > I'd be grateful for at least a few pointers into the right direction. Channel mixing is a known hole in FFmpeg functionality. I think the idea is that the SoC project to implement the necessary audio filter API in libavfilter be completed and then we can implement the necessary filters in that. None of the MPlayer video or audio filters are ported across to FFmpeg, except libswscale for video scaling/pixel format conversion which has pretty much migrated to being an FFmpeg entity in terms of development. As for hacking the necessary functionality from libaf into your code, it all depends on the functions and arguments you need. It should be doable. Figure out which functions do what you need, take a look at the arguments and how the functions are called in mplayer/mencoder and affect your data buffers in your code such that they're in the correct format then do any other initialisation stuff, hook it up and hope for the best. Or something like that. Regards, Rob _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
