[FFmpeg-devel] samplerates in flvenc ?

Craig Whitmore lennon
Mon Apr 28 21:34:35 CEST 2008


On Mon, 2008-04-28 at 07:20 -0700, Mike Melanson wrote:
> Craig Whitmore wrote:
> > On Sun, 2008-04-27 at 06:48 -0700, Mike Melanson wrote:
> >> Craig Whitmore wrote:
> >>> and flv.h
> >>> FLV_SAMPLERATE_22050HZ = 2 << FLV_AUDIO_SAMPLERATE_OFFSET,
> >>> FLV_SAMPLERATE_44100HZ = 3 << FLV_AUDIO_SAMPLERATE_OFFSET,
> >>> FLV_SAMPLERATE_48000HZ = 3 << FLV_AUDIO_SAMPLERATE_OFFSET,
> >> Does this make any sense to you? Looks like those last 2 enum values are 
> >> exactly the same to me.
> >>
> > 
> > They are, but it works. tested on linux/windows/mac flash.
> 
> Just let me make sure I have this straight:
> 
> * you started with a file that has 48kHz audio

The source is a MPEG2 multicast stream with 48K audio (coming from a TV
Broadcaster)

> * you used VLC to store the audio into a FLV

Yes

> * you are certain that VLC passed the 48 kHz audio, unmolested, directly
> into the FLV

looking at the debug yes.

> * you are certain that VLC didn't merely do a really competent job of
> converting 48kHz audio -> 44.1kHz audio
> 
if I play the transcoded file via VLC on the other end (instead of the
flash player) it plays correctly as well 

> Is that all correct?
> 
yes






More information about the ffmpeg-devel mailing list