<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Do you mean like this ?</span></div><div><br><span></span></div><div><span><Stream test1.rtsp><br>File /home/emelo/algo2.mp4<br>Format rtp<br>Loop<br></Stream></span></div><div><br><span></span></div><div><span>I get this:</span></div><div><br><span></span></div><div><span>/home/emelo/Temp/ffserver-file_to_rtsp.conf:11: Incorrect keyword: 'Loop'<br>Incorrect config file - exiting.<br></span></div><div><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De:</span></b> Meftah Tayeb <tayeb.dotnet@gmail.com><br> <b><span style="font-weight: bold;">Para:</span></b> FFserver user
 questions and RTFMs <ffserver-user@ffmpeg.org> <br> <b><span style="font-weight: bold;">Enviado:</span></b> Domingo, 15 de julio, 2012 10:41 A.M.<br> <b><span style="font-weight: bold;">Asunto:</span></b> Re: [FFserver-user] Help with MP4 file streaming<br> </font> </div> <br>try add loop to your stream definition<br>----- Original Message ----- From: "roko" <<a ymailto="mailto:roko98@yahoo.com" href="mailto:roko98@yahoo.com">roko98@yahoo.com</a>><br>To: <<a ymailto="mailto:ffserver-user@ffmpeg.org" href="mailto:ffserver-user@ffmpeg.org">ffserver-user@ffmpeg.org</a>><br>Sent: Sunday, July 15, 2012 7:53 PM<br>Subject: [FFserver-user] Help with MP4 file streaming<br><br><br>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:<br><br><br>Port 8090<br>RTSPPort 5540<br>BindAddress 0.0.0.0<br>MaxHTTPConnections 100<br>MaxClients 100<br>MaxBandwidth 10000<br><br><Stream test1.rtsp><br>File /home/emelo/algo2.mp4<br>Format rtp<br></Stream><br><br><Stream stat.html><br>Format status<br><br># Only allow local people to get the status<br>ACL allow localhost<br>ACL allow 192.168.0.0 192.168.255.255<br></Stream><br><br># Redirect index.html to the appropriate site<br><br><Redirect index.html><br>URL <a href="http://www.ffmpeg.org/" target="_blank">http://www.ffmpeg.org/</a><br></Redirect><br><br>And have this output:<br><br>emelo@alfa:~/workspace/survey> ffserver -f ~/Temp/ffserver-file_to_rtsp.conf<br>ffserver version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers<br>built on Jun 10 2012 22:43:48 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585]<br>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<br>libavutil 51. 54.100 / 51. 54.100<br>libavcodec 54. 23.100 / 54. 23.100<br>libavformat 54. 6.100 / 54. 6.100<br>libavdevice 54. 0.100 / 54. 0.100<br>libavfilter 2. 77.100 / 2. 77.100<br>libswscale 2. 1.100 / 2. 1.100<br>libswresample 0. 15.100 / 0. 15.100<br>libpostproc
 52. 0.100 / 52. 0.100<br>Sun Jul 15 11:44:09 2012 Opening file '/home/emelo/algo2.mp4'<br>Sun Jul 15 11:44:09 2012 FFserver started.<br>Sun Jul 15 11:44:16 2012 127.0.0.1 - - [DESCRIBE] "rtsp://localhost:5540/test1.rtsp RTSP/1.0" 200 501<br>Sun Jul 15 11:44:16 2012 127.0.0.1:36284 - - "PLAY test1.rtsp/streamid=0 RTP/UDP"<br>Sun Jul 15 11:45:13 2012 127.0.0.1 - - [] " RTP/UDP" 200 591838<br>Sun Jul 15 11:45:14 2012 127.0.0.1 - - [TEARDOWN] "rtsp://localhost:5540/test1.rtsp/ RTSP/1.0" 200 760<br><br><br>When the file ends, the player gets EOF:<br><br>emelo@alfa:~/workspace/survey> mplayer rtsp://localhost:5540/test1.rtsp<br>MPlayer dev-SVN-r35007-4.5-openSUSE Linux 11.4 (x86_64)-Packman (C) 2000-2012 MPlayer Team<br>mplayer: could not connect to socket<br>mplayer: No such file or directory<br>Failed to open LIRC support. You will not be able to use your remote control.<br><br>Playing rtsp://localhost:5540/test1.rtsp.<br>Resolving localhost for
 AF_INET6...<br>Connecting to server localhost[::1]: 5540...<br><br>connect error: Connection refused<br>Resolving localhost for AF_INET...<br>Connecting to server localhost[127.0.0.1]: 5540...<br><br>rtsp_session: unsupported RTSP server. Server type is 'unknown'.<br>STREAM_LIVE555, URL: rtsp://localhost:5540/test1.rtsp<br>Stream not seekable!<br>file format detected.<br>Initiated "video/H264" RTP subsession on port 36284<br>demux_rtp: Guessed the video frame rate as 8 frames-per-second.<br>(If this is wrong, use the "-fps <frame-rate>" option instead.)<br>VIDEO: [H264] 0x0 0bpp 8.000 fps 0.0 kbps ( 0.0 kbyte/s)<br>Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory<br>[vdpau] Error when calling vdp_device_create_x11: 1<br>==========================================================================<br>Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family<br>libavcodec version
 54.29.100 (internal)<br>Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)<br>==========================================================================<br>Audio: no sound<br>Starting playback...<br>Unsupported PixelFormat 61<br>Unsupported PixelFormat 53<br>Unsupported PixelFormat 81<br>Movie-Aspect is undefined - no prescaling applied.<br>VO: [xv] 320x240 => 320x240 Planar YV12<br>V: 56.6 342/342 1% 0% 0.0% 0 0<br><br><br>Exiting... (End of file)<br><br>Any help with the settings I'm missing would be greatly appreciated. Thx.<br><br><br>__________ Information from ESET NOD32 Antivirus, version of virus signature database 7293 (20120712) __________<br><br>The message was checked by ESET NOD32 Antivirus.<br><br><a href="http://www.eset.com/" target="_blank">http://www.eset.com</a><br><br><br><br><br>--------------------------------------------------------------------------------<br><br><br>>
 _______________________________________________<br>> ffserver-user mailing list<br>> <a ymailto="mailto:ffserver-user@ffmpeg.org" href="mailto:ffserver-user@ffmpeg.org">ffserver-user@ffmpeg.org</a><br>> <a href="http://ffmpeg.org/mailman/listinfo/ffserver-user" target="_blank">http://ffmpeg.org/mailman/listinfo/ffserver-user</a><br>> <br>> <br>> <br>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 7293 (20120712) __________<br>> <br>> The message was checked by ESET NOD32 Antivirus.<br>> <br>> <a href="http://www.eset.com/" target="_blank">http://www.eset.com</a><br>> <br>> <br><br><br>__________ Information from ESET NOD32 Antivirus, version of virus signature database 7300 (20120715) __________<br><br>The message was checked by ESET NOD32 Antivirus.<br><br><a href="http://www.eset.com/"
 target="_blank">http://www.eset.com</a><br><br><br><br>_______________________________________________<br>ffserver-user mailing list<br><a ymailto="mailto:ffserver-user@ffmpeg.org" href="mailto:ffserver-user@ffmpeg.org">ffserver-user@ffmpeg.org</a><br><a href="http://ffmpeg.org/mailman/listinfo/ffserver-user" target="_blank">http://ffmpeg.org/mailman/listinfo/ffserver-user</a><br><br><br> </div> </div>  </div></body></html>