[FFmpeg-devel] [PATCH 3/5] audioconvert: implement av_bprint_channel_layout().

Clément Bœsch ubitux at gmail.com
Tue Jun 5 22:04:20 CEST 2012


On Tue, Jun 05, 2012 at 02:09:34PM +0200, Nicolas George wrote:
> L'octidi 18 prairial, an CCXX, Clément Bœsch a écrit :
> > Unless you can wait until tonight when I'll have some time to do some
> > testing, go ahead. Feature very much appreciated :)
> 
> No problem to wait one more day.
> 

OK I did some random tests but it didn't work as smooth as I expected...

First I tried to generate a random sample with:

    ./ffmpeg -f lavfi -i "aevalsrc=sin(330*PI*2*t)[a];
                          aevalsrc=sin(440*PI*2*t)[b];
                          [a][b]amerge" -t 5 out.wav

But it crashed. Actually, it also crashes on master/HEAD.

So I created two samples with sth like:

    ./ffmpeg -f lavfi -i aevalsrc='sin(330*PI*2*t)' -t 5 ch0.wav
             -f lavfi -i aevalsrc='sin(440*PI*2*t)' -t 5 ch1.wav

And then this:

    ./ffmpeg -i ch0.wav -i ch1.wav -filter_complex
        '[0:0][1:0]amerge[out0];
         [0:0][1:0]amerge[out1]' -map '[out0]'
                                 -map '[out1]' -y out.ogg

This actually crashes after your patchset (master/HEAD + the 5 patches of
this thread), but works with master/HEAD.

With the previous out.ogg (generated from master/HEAD), in your amerge
branch I tried this:

    ./ffmpeg -i out.ogg -filter_complex
        '[0:0][0:1][1:0][1:1]amerge=inputs=4' -f null -

But it crashed again...

> For your use case, I guess you will need also some kind of ignore_layout
> option to get amerge to always work with the channels in the order of the
> inputs, won't you?
> 

The only use case I'm interested is: take a video, and merge all the
streams into one. This is assuming all the streams are mono, OR stereo
pairs.

> > PS: do you have a public git with a branch where it would be easier to get
> > the latest version of the patchset easily?
> 
> Not yet. I'll need to devise something like that at some time.
> 

It's nice to follow a bit what are the other dev doing (to avoid
duplicated work, test branches/patchset easily, etc.).

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120605/1790fc7b/attachment.asc>


More information about the ffmpeg-devel mailing list