[FFmpeg-user] not able to stream aac in mpegts
Yogesh Tyagi
yogesh.bit2006 at gmail.com
Mon Oct 22 19:20:40 CEST 2012
Hi,
My ffserver.conf is as follows:
Port 8091
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 100
MaxBandwidth 1000000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 150M
ACL allow 127.0.0.1
</Feed>
<Stream test.ts>
Feed feed1.ffm
Format mpegts
AudioCodec aac
AudioBitRate 128k
AudioChannels 2
AudioSampleRate 48000
AVOptionAudio flags +global_header
VideoCodec libx264
VideoBitRate 400k
VideoFrameRate 15
VideoSize 720x480
AVOptionVideo coder 0
AVOptionVideo bf 0
AVOptionVideo flags2 +mixed_refs+fastpskip
AVOptionVideo flags +loop
AVOptionVideo cmp +chroma
AVOptionVideo partitions +parti8x8+parti4x4+partp8x8+partb8x8
AVOptionVideo me_method hex
AVOptionVideo subq 7
AVOptionVideo me_range 16
AVOptionVideo g 250
AVOptionVideo keyint_min 10
AVOptionVideo sc_threshold 40
AVOptionVideo i_qfactor 0.71
AVOptionVideo b_strategy 1
AVOptionVideo qcomp 0.6
AVOptionVideo qmin 10
AVOptionVideo qmax 51
AVOptionVideo qdiff 4
AVOptionVideo refs 3
AVOptionVideo directpred 1
AVOptionVideo trellis 1
AVOptionVideo flags2 +mixed_refs+fastpskip
AVOptionVideo wpredp 0
AVOptionVideo flags +global_header
AVOptionVideo bsf h264_mp4toannexb
VideoGopSize 12
Preroll 15
StartSendOnKey
</Stream>
<Stream stat.html>
Format status
ACL allow 127.0.0.1
ACL allow 192.168.1.27
</Stream>
<Redirect index.html>
URL stat.html
</Redirect>
FFServer gives error message "aac bitstream not in adts format and
extradata missing" when I feed the ffserver with following command:
ffmpeg -i temp.mpg -vcodec libx264 -b:v 800k -acodec aac -strict
experimental -ac 2 -flags -global_header
http://10.112.47.12:8091/feed1.ffm
Am I missing something in the ffserver.conf or in the ffmpeg command
or does ffserver not support streaming aac in mpegts.
Regards,
Yogesh
More information about the ffmpeg-user
mailing list