[FFmpeg-user] How to use ffserver to provide a valid source for Window Media Services 2008

曾若瑜 januszry at gmail.com
Thu Jul 17 08:56:10 CEST 2014


Hi,

I'm using ffserver (ffmpeg 2.2.2) with this config

----------------------------------------------

<Stream qtstar.asf>

Feed feed1.ffm

Format asf

NoVideo

AudioCodec wmav2

AudioChannels 2

AudioBitRate 128

AudioSampleRate 44100

StartSendOnKey

AVOptionAudio flags +global_header

</Stream>

----------------------------------------------

Then I ran ffmpeg

ffmpeg -loglevel debug -i <some_live_source> http://localhost:8090/feed1.ffm

Everything seems OK with stats:


-----------------------------------------------

Successfully opened the file.


Parsing a group of options: output file http://localhost:8090/feed1.ffm.


Successfully parsed a group of options.


Opening an output file: http://localhost:8090/feed1.ffm.


[http @ 0x20522a0] request: GET /feed1.ffm HTTP/1.1


User-Agent: Lavf/55.26.100


Accept: */*


Range: bytes=0-


Connection: close


Host: localhost:8090








[http @ 0x20522a0] header='HTTP/1.0 200 OK'


[http @ 0x20522a0] http_code=200


[http @ 0x20522a0] header='Pragma: no-cache'


[http @ 0x20522a0] header='Content-Type: application/x-octet-stream'


[http @ 0x20522a0] header=''


[ffm @ 0x2052860] Format ffm probed with size=2048 and score=101


[AVIOContext @ 0x2052400] Statistics: 4096 bytes read, 0 seeks


[http @ 0x2052340] request: POST /feed1.ffm HTTP/1.1


Transfer-Encoding: chunked


User-Agent: Lavf/55.26.100


Accept: */*


Connection: close


Host: localhost:8090








Successfully opened the file.


detected 1 logical cores


*[graph 0 input from stream 0:0 @ 0x2052c20] *Setting 'time_base' to value
'1/44100'

*[graph 0 input from stream 0:0 @ 0x2052c20] *Setting 'sample_rate' to
value '44100'

*[graph 0 input from stream 0:0 @ 0x2052c20] *Setting 'sample_fmt' to value
'fltp'

*[graph 0 input from stream 0:0 @ 0x2052c20] *Setting 'channel_layout' to
value '0x3'

*[graph 0 input from stream 0:0 @ 0x2052c20] *tb:1/44100 samplefmt:fltp
samplerate:44100 chlayout:0x3

*[audio format for output stream 0:0 @ 0x205aee0] *Setting 'sample_fmts' to
value 'fltp'

*[audio format for output stream 0:0 @ 0x205aee0] *Setting 'sample_rates'
to value '44100'

*[audio format for output stream 0:0 @ 0x205aee0] *Setting
'channel_layouts' to value '0x3'

*[AVFilterGraph @ 0x200fcc0] *query_formats: 4 queried, 9 merged, 0 already
done, 0 delayed

Output #0, ffm, to 'http://localhost:8090/feed1.ffm':


  Metadata:


    creation_time   : now


    encoder         : Lavf55.26.100


    Stream #0:0, 0, 1/1000000: Audio: wmav2, 44100 Hz, stereo, fltp, 128
kb/s

    Metadata:


      ENCODEDBY       : edcast


Stream mapping:


  Stream #0:0 -> #0:0 (vorbis -> wmav2)


Press [q] to stop, [?] for help


size=     408kB time=00:00:25.24 bitrate= 132.4kbits/s

----------------------------------------------

Now I met two problems here:

* The ASF stream is NOT a valid source for Windows Media Services
Error Description: The server is not a compatible streaming media server.
Error Code: 0xc00d2ee8

* When I try to play it with ffplay, outputs contains warnings like these:

-----------------------

  Duration: N/A, start: 1125448.934000, bitrate: 128 kb/s

    Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels,
fltp, 128 kb/s

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring*

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0

[wmav2 @ 0x7fc8b5024000] *Exponent out of range: -65*B sq=    0B f=0/0

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring*

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0

[wmav2 @ 0x7fc8b5024000] *Exponent out of range: 97*KB sq=    0B f=0/0

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring*

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring* 0B f=0/0

    Last message repeated 1 times

[wmav2 @ 0x7fc8b5024000] *Exponent out of range: 96*KB sq=    0B f=0/0

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring*

[wmav2 @ 0x7fc8b5024000] *Exponent out of range: 102*B sq=    0B f=0/0

[wmav2 @ 0x7fc8b5024000] *overflow in spectral RLE, ignoring*

1125449.11 M-A:  0.000 fd=   0 aq=    5KB vq=    0KB sq=    0B f=0/0

-----------------------


Does this mean I can only generate a valid source for WMS 2008 with Windows
Media Encoder?


More information about the ffmpeg-user mailing list