Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to stream from a file using ffserver ,ffmpeg and mplayer

Reply
Thread Tools Display Modes

How to stream from a file using ffserver ,ffmpeg and mplayer

 
 
DaVinci
Guest
Posts: n/a

 
      07-26-2007, 04:49 AM
What I do is :
1. ffserver -f ffserver.conf&
2. ffmepg -r 30 -s 320x240 -an -i ~/test/dvd.avi http://localhost:8090/feed1.ffm
3. mplayer http://localhost:8090/test.asf
but the ffmpeg exit after a few seconds
==========================
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Stream #0.0: Audio: adpcm_ima_wav, 22050 Hz, mono, 88 kb/s
Stream #0.1, 30.00 fps(c): Video: mpeg4, yuv420p, 320x240, q=3-31,
1024 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
[mpeg4 @ 0x83347e8]rc buffer underflow
[mpeg4 @ 0x83347e8]Error at MB: 1022ime=1.9 bitrate=1185.9kbits/s
[mpeg4 @ 0x83347e8]concealing 251 DC, 251 AC, 251 MV errors
[mpeg4 @ 0x83347e8]Error at MB: 1022ime=1.9 bitrate=1185.9kbits/s
[mpeg4 @ 0x83347e8]concealing 251 DC, 251 AC, 251 MV errors
frame= 240 q=20.3 Lsize= 1044kB time=1.9 bitrate=4619.8kbits/s
video:137kB audio:20kB global headers:0kB muxing overhead 566.294376%
===============================
the problem is that the mplayer client show:
==========
....
Cache size set to 1355 KBytes
Cache fill: 0.04% (563 bytes) =====>here ,some cache had filled .!!!.
ASF file format detected.
ASF: No video stream found.
ASF: No audio stream found -> no sound.
No stream found.
=======
..
here is the the ffserver.conf
========
Port 8090
BindAddress 0.0.0.0
MaxClients 10
MaxBandwidth 4096
CustomLog -
NoDaemon

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

<Stream test.asf>
Feed feed1.ffm
Format asf
AudioSampleRate 22050
AudioChannels 1
AudioCodec adpcm_ima_wav
VideoCodec mpeg4
VideoFrameRate 30
VideoSize 320x240
VideoBitRate 1024
VideoGopSize 15 #30
AudioBitRate 88 #64
StartSendOnKey
</Stream>

<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
URL http://ffmpeg.sourceforge.net/
=======

Thanks very much.
B.R.
DaVinci

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mms:// through PROXY -- MPlayer sheer Linux Networking 1 05-02-2006 03:37 PM
Data Stream to IP Stream John Edgar Broadband 2 04-30-2005 09:11 AM
Virgin ADSL - IP Stream or Data Stream ??? DeeBee Broadband 19 03-06-2005 11:28 AM
SDP stream data zkes1000 Wireless Networks 2 01-25-2005 09:57 AM
socket stream captain biceps Linux Networking 2 08-19-2004 10:24 PM



1 2 3 4 5 6 7 8 9 10 11