[FFmpeg-user] Issue : Stream FLV with ffserver and decodes it with ffplay

Sylvain sylvain at lahiette.com
Sat Jun 8 23:11:27 CEST 2013


Hi all,

I am currently streaming FLV streams (container & codec) to some web 
player, and it works. But when i try to get the stream locally with 
ffplay, it never exit from the function "avformat_find_stream_info"

The ffserver.conf :

Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
#NoDaemon

<Feed feed1.ffm>
	File /tmp/feed1.ffm
	FileMaxSize 200K
	ACL allow 127.0.0.1
</Feed>
<Stream live.flv>
	Format flv
	Feed feed1.ffm

	VideoCodec flv
	VideoFrameRate 12
	VideoBitRate 512
	VideoSize 320x240
	AVOptionVideo flags +global_header
	NoAudio
</Stream>

ffserver -f ffserver.conf

Feeding the stream with ffmpeg -i <test_video_file> 
http://localhost:8090/feed1.ffm

And then decoding with a ffplay -loglevel debug 
http://localhost:8090/live.flv produces the following output:

[flv @ 0x7f73740008c0] Format flv probed with size=2048 and score=100
[flv @ 0x7f73740008c0] File position before avformat_find_stream_info() 
is 13

If i stop providing the feed, then avformat_find_stream_info() exits, 
and the received portion of stream is decoded (like a download in fact), 
with this kind of output :

[flv @ 0x7f20540008c0] File position after avformat_find_stream_info() 
is 66337
Input #0, flv, from 'http://localhost:8090/live.flv':
   Metadata:
     encoder         : Lavf54.29.104
   Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
     Stream #0:0, 25, 1/1000: Video: flv1, yuv420p, 320x240, 1/1000, 512 
kb/s, 6 tbr, 1k tbn, 1k tbc
Frame changed from size:0x0 to size:320x240
[buffer @ 0x7f204c02bee0] Setting entry with key 'video_size' to value 
'320x240'
[buffer @ 0x7f204c02bee0] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x7f204c02bee0] Setting entry with key 'time_base' to value 
'1/1000'
[buffer @ 0x7f204c02bee0] Setting entry with key 'pixel_aspect' to value 
'0/1'
[ffplay_buffer @ 0x7f204c02be40] w:320 h:240 pixfmt:yuv420p tb:1/1000 
fr:0/1 sar:0/1 sws_param:
[ffplay_crop @ 0x7f204c02cdc0] w:320 h:240 sar:0/1 -> w:320 h:240 sar:0/1

Is it normal or is there any settings that i am missing ?

In addition, note that the fps is not reported properly (1/1000 ?).

Thanks !





More information about the ffmpeg-user mailing list