Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-15 Thread Michael Bradshaw
On Fri, Oct 12, 2012 at 4:53 PM, Carl Eugen Hoyos wrote: > Michael Bradshaw writes: > >> I can provide the sample if necessary. > > If this is reproducible with current git head (and I do > not doubt this) and you have a sample, then it should be > possible for you to open a ticket. Reported as

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-12 Thread Carl Eugen Hoyos
Michael Bradshaw writes: > I can provide the sample if necessary. If this is reproducible with current git head (and I do not doubt this) and you have a sample, then it should be possible for you to open a ticket. Thank you, Carl Eugen ___ Libav-us

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-12 Thread Michael Bradshaw
On Thu, Oct 11, 2012 at 5:19 PM, Michael Bradshaw wrote: >[...] > Actually, I just tried ffmpeg -i ~/MP4-Apple264-AACPlus.mp4 -acodec > copy -vcodec copy ~/out.mp4 and it generated a .mp4 with the same > issue (that is, ffprobe -show_streams reports the audio stream as > having 1 channel, whereas

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-11 Thread Michael Bradshaw
On Thu, Oct 11, 2012 at 5:15 PM, Carl Eugen Hoyos wrote: > Michael Bradshaw writes: > >> QuickTime reports it as mono. So does Windows Media Player. It plays >> ok in ffplay and QuickTime though (didn't try Windows Media Player). >> >> Seeing as remuxing the audio stream to plain .aac seems to ha

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-11 Thread Carl Eugen Hoyos
Michael Bradshaw writes: > QuickTime reports it as mono. So does Windows Media Player. It plays > ok in ffplay and QuickTime though (didn't try Windows Media Player). > > Seeing as remuxing the audio stream to plain .aac seems to have fixed > the issue, I'm thinking the container might be bad. D

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-11 Thread Michael Bradshaw
On Thu, Oct 11, 2012 at 4:49 PM, Carl Eugen Hoyos wrote: > Michael Bradshaw writes: > >> > While I cannot really answer the question, I wonder >> > what you expect when the number of channels really change: >> > At least for AC-3 and AAC, this is not only allowed, >> > but happens regularly (for

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-11 Thread Carl Eugen Hoyos
Michael Bradshaw writes: > > While I cannot really answer the question, I wonder > > what you expect when the number of channels really change: > > At least for AC-3 and AAC, this is not only allowed, > > but happens regularly (for example on DVB). > > Really? That's useful to know. I suppose I

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-11 Thread Michael Bradshaw
On Thu, Oct 11, 2012 at 4:06 PM, Carl Eugen Hoyos wrote: > Michael Bradshaw writes: > >> I've just been hunting down a bug in one of our programs, and I >> tracked it down to the number of channels reported by ffmpeg. When I >> first open the AVFormatContext and do avformat_find_stream_info(), I

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-11 Thread Carl Eugen Hoyos
Michael Bradshaw writes: > I've just been hunting down a bug in one of our programs, and I > tracked it down to the number of channels reported by ffmpeg. When I > first open the AVFormatContext and do avformat_find_stream_info(), I > can see that my audio stream's AVCodecContext has a reported >

[Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-11 Thread Michael Bradshaw
I've just been hunting down a bug in one of our programs, and I tracked it down to the number of channels reported by ffmpeg. When I first open the AVFormatContext and do avformat_find_stream_info(), I can see that my audio stream's AVCodecContext has a reported channel_layout of 3 (stereo) and cha