[FFserver-user] does ffserver support streaming aac in mpegts

Yogesh Tyagi yogesh.bit2006 at gmail.com
Sun Oct 28 18:40:28 CET 2012


I am feeding ffserver with followind command:
ffmpeg -i temp.mpg  -vcodec libx264 -b:v 800k -acodec aac -strict
experimental -flags -global_header

I am using ffplay for streaming with following command:

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".

Am I missing something in the ffserver.conf or does ffserver not
support streaming aac in mpegts.

My ffserver.conf is given below?

Port 8091
MaxHTTPConnections 2000
MaxClients 100
MaxBandwidth 1000000
CustomLog -

<Feed feed1.ffm>
 File /tmp/feed1.ffm
 FileMaxSize 150M
 ACL allow

<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

<Stream stat.html>
 Format status
 ACL allow

<Redirect index.html>
 URL stat.html


More information about the ffserver-user mailing list