[FFserver-user] Got working webm ffserver.conf. Looking for working libx264 ffserver.conf
tps
tps at netmaster.dk
Sun Apr 8 12:19:20 CEST 2012
Dear All,
Do you have a working ffserver.conf that will live stream x264 video and
play on iPad? If so could you please post it here!
I have tried with several options and I have got ffserver to start and
allow for ffmpeg to send data to the ffserver feed. But when I try to play
the stream I get:
mplayer: Invalid seek to negative position
ffplay: http://localhost:8090/test.rtsp: Invalid data found when processing
input
When I stop ffserver and try to play the feed directly, ie. ffplay
/tmp/feed1.tmp I get a lot of:
[h264 @ 0x27c7be0] non-existing PPS 0 referenced
[h264 @ 0x27c7be0] decode_slice_header error
[h264 @ 0x27c7be0] no frame!
Here is the command to send data to the ffserver feed (I get video from a
dv camera). I also show first part of the output:
tps at T420:~/data/ffserver.conf$ dvgrab -format dv1 - | ffmpeg -f dv -i -
http://localhost:8090/feed1.ffm
ffmpeg version N-39323-gab31db0 Copyright (c) 2000-2012 the FFmpeg
developers
built on Mar 30 2012 18:05:18 with gcc 4.6.1
configuration: --enable-libx264 --enable-libfaac --enable-gpl
--enable-nonfree --enable-libmp3lame --enable-libvorbis --enable-libtheora
--enable-libvpx
libavutil 51. 44.100 / 51. 44.100
libavcodec 54. 12.100 / 54. 12.100
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 66.100 / 2. 66.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 10.100 / 0. 10.100
libpostproc 52. 0.100 / 52. 0.100
Found AV/C device with GUID 0x0080880309603c32
libiec61883 error: Failed to get channels available.
Waiting for DV...
[dv @ 0x1b903e0] Estimating duration from bitrate, this may be inaccurate
Input #0, dv, from 'pipe:':
Duration: N/A, start: 0.000000, bitrate: 28800 kb/s
Stream #0:0: Video: dvvideo, yuv420p, 720x576, 28800 kb/s, SAR 64:45
DAR 16:9, 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s
Stream #0:2: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s
. . . .
. . . .
Here is the non-working libx264 ffserver.conf:
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 100M
ACL allow 127.0.0.1
</Feed>
<Stream test.mp4>
Format rtp
Feed feed1.ffm
Preroll 25
StartSendOnKey
# video
VideoCodec libx264
VideoFrameRate 25
VideoBitRate 512K
AVOptionVideo me_range 16
AVOptionVideo qdiff 4
AVOptionVideo qmin 10
AVOptionVideo qmax 51
AVOptionVideo b_pyramid normal
AVOptionVideo flags +global_header
# audio
AudioCodec libfaac
AVOptionAudio flags +global_header
</Stream>
<Stream stat.html>
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
</Stream>
# Redirect index.html to the appropriate site
<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>
I do have a working ffserver.conf for webm and from the ffserver stat.html
I am able to click the stream link and watch live webm video. This works
for both Firefox and Chrome.
Working webm ffserver.conf:
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 1G
ACL allow 127.0.0.1
</Feed>
<Stream test.webm>
Feed feed1.ffm
Format webm
AudioCodec vorbis
AudioBitRate 64
VideoCodec libvpx
VideoSize 256x144
VideoFrameRate 25
AVOptionVideo flags +global_header
AVOptionAudio flags +global_header
PreRoll 15
StartSendOnKey
VideoBitRate 400
</Stream>
<Stream stat.html>
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>
# Redirect index.html to the appropriate site
<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>
Any help on getting a working libx264 ffserver.conf would be very much
apprecieated!
Thanks
Thomas S
More information about the ffserver-user
mailing list