id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
1872,aac bitstream not in adts format and extradata missing,yogesh.tyagi,,"ffserver generated error ""aac bitstream not in adts format and extradata missing"" when I tried to stream mpegts with aac audio.

I am feeding ffserver with following command:
ffmpeg -i temp.mpg  -vcodec libx264 -b:v 800k -acodec aac -strict
experimental -flags -global_header http://10.112.47.12:8091/feed1.ffm

I am using following command to play the stream:

ffplay http://10.112.47.12:8091/test.ts

When I give above command I just see the first frame and then video
freezes. FFServer produces  error message ""aac bitstream not in adts
format and extradata missing"".


My ffserver.conf is given below?

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
</Stream>

<Redirect index.html>
 URL stat.html
</Redirect>

complete uncut command line output of ffserver:

./ffserver_g

ffmpeg version N-45215-g949acef Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 10 2012 15:45:20 with gcc 4.6.3 (GCC) 20120306 (Red Hat 4.6.3-2)
    configuration: --prefix=/usr --libdir=/usr/lib --enable-shared
    libavutil      51. 74.100 / 51. 74.100
    libavcodec     54. 65.100 / 54. 65.100
    libavformat    54. 31.100 / 54. 31.100
    libavdevice    54.  3.100 / 54.  3.100
    libavfilter     3. 19.102 /  3. 19.102
    libswscale      2.  1.101 /  2.  1.101
    libswresample   0. 16.100 /  0. 16.100
Tue Oct 30 16:43:25 2012
Tue Oct 30 16:43:25 2012
Tue Oct 30 16:43:25 2012
Tue Oct 30 16:43:25 2012
Tue Oct 30 16:43:25 2012 FFserver started.
Tue Oct 30 16:43:28 2012
Tue Oct 30 16:43:28 2012
Tue Oct 30 16:43:28 2012
Tue Oct 30 16:43:28 2012
Tue Oct 30 16:43:28 2012 muxrate VBR, pcr every 1 pkts, sdt every 200,
pat/pmt every 40 pkts
Tue Oct 30 16:43:31 2012
Tue Oct 30 16:43:31 2012
Tue Oct 30 16:43:31 2012 127.0.0.1 - - [GET] ""/feed1.ffm HTTP/1.1"" 200 4149
Tue Oct 30 16:43:31 2012
Tue Oct 30 16:43:31 2012 aac bitstream not in adts format and extradata missing
Tue Oct 30 16:43:31 2012 Error writing frame to output
Tue Oct 30 16:43:31 2012 10.112.47.18 - - [GET] ""/test.ts HTTP/1.1"" 200 8715
Tue Oct 30 16:43:47 2012 127.0.0.1 - - [POST] ""/feed1.ffm HTTP/1.1"" 200 2162688",defect,new,normal,FFserver,git-master,,,,,,0,0
