[FFserver-user] Help with MP4 file streaming

Meftah Tayeb tayeb.dotnet at gmail.com
Sun Jul 15 20:57:36 CEST 2012


i will check
man, any modefation?
tel this people to fuck off... big spamers. please, not you, but the other 
fucking spamers.
please ban.
----- Original Message ----- 
From: "roko" <roko98 at yahoo.com>
To: "FFserver user questions and RTFMs" <ffserver-user at ffmpeg.org>
Sent: Sunday, July 15, 2012 9:26 PM
Subject: Re: [FFserver-user] Help with MP4 file streaming


Do you mean like this ?

<Stream test1.rtsp>
File /home/emelo/algo2.mp4
Format rtp
Loop
</Stream>

I get this:

/home/emelo/Temp/ffserver-file_to_rtsp.conf:11: Incorrect keyword: 'Loop'
Incorrect config file - exiting.



________________________________
 De: Meftah Tayeb <tayeb.dotnet at gmail.com>
Para: FFserver user questions and RTFMs <ffserver-user at ffmpeg.org>
Enviado: Domingo, 15 de julio, 2012 10:41 A.M.
Asunto: Re: [FFserver-user] Help with MP4 file streaming

try add loop to your stream definition
----- Original Message ----- From: "roko" <roko98 at yahoo.com>
To: <ffserver-user at ffmpeg.org>
Sent: Sunday, July 15, 2012 7:53 PM
Subject: [FFserver-user] Help with MP4 file streaming


Please forgive my English. I want ffserver to stream continuously a mp4 file 
forever, using rtsp, for an internal testing. That means, when the original 
file ends, I want to ffserver start from the beginning, so the remote player 
don’t see any interruption. So far, I have this file:


Port 8090
RTSPPort 5540
BindAddress 0.0.0.0
MaxHTTPConnections 100
MaxClients 100
MaxBandwidth 10000

<Stream test1.rtsp>
File /home/emelo/algo2.mp4
Format rtp
</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>

And have this output:

emelo at alfa:~/workspace/survey> ffserver -f ~/Temp/ffserver-file_to_rtsp.conf
ffserver version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 10 2012 22:43:48 with gcc 4.5.1 20101208 [gcc-4_5-branch 
revision 167585]
configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 
 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 
 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables 
 -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 
 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libmp3lame 
 --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 
 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb 
 --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype  
--enable-avresample
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Sun Jul 15 11:44:09 2012 Opening file '/home/emelo/algo2.mp4'
Sun Jul 15 11:44:09 2012 FFserver started.
Sun Jul 15 11:44:16 2012 127.0.0.1 - - [DESCRIBE] 
"rtsp://localhost:5540/test1.rtsp RTSP/1.0" 200 501
Sun Jul 15 11:44:16 2012 127.0.0.1:36284 - - "PLAY test1.rtsp/streamid=0 
RTP/UDP"
Sun Jul 15 11:45:13 2012 127.0.0.1 - - [] " RTP/UDP" 200 591838
Sun Jul 15 11:45:14 2012 127.0.0.1 - - [TEARDOWN] 
"rtsp://localhost:5540/test1.rtsp/ RTSP/1.0" 200 760


When the file ends, the player gets EOF:

emelo at alfa:~/workspace/survey> mplayer rtsp://localhost:5540/test1.rtsp
MPlayer dev-SVN-r35007-4.5-openSUSE Linux 11.4 (x86_64)-Packman (C) 
2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote 
control.

Playing rtsp://localhost:5540/test1.rtsp.
Resolving localhost for AF_INET6...
Connecting to server localhost[::1]: 5540...

connect error: Connection refused
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]: 5540...

rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://localhost:5540/test1.rtsp
Stream not seekable!
file format detected.
Initiated "video/H264" RTP subsession on port 36284
demux_rtp: Guessed the video frame rate as 8 frames-per-second.
(If this is wrong, use the "-fps <frame-rate>" option instead.)
VIDEO: [H264] 0x0 0bpp 8.000 fps 0.0 kbps ( 0.0 kbyte/s)
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object 
file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.29.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
V: 56.6 342/342 1% 0% 0.0% 0 0


Exiting... (End of file)

Any help with the settings I'm missing would be greatly appreciated. Thx.


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 7293 (20120712) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




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


> _______________________________________________
> ffserver-user mailing list
> ffserver-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffserver-user
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 7293 (20120712) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 7300 (20120715) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



_______________________________________________
ffserver-user mailing list
ffserver-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffserver-user


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 7301 (20120715) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




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


> _______________________________________________
> ffserver-user mailing list
> ffserver-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffserver-user
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 7301 (20120715) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
> 


__________ Information from ESET NOD32 Antivirus, version of virus signature database 7301 (20120715) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





More information about the ffserver-user mailing list