check for ffserver configuration file<div>following worked well for me </div><div><a href="https://sites.google.com/site/amarkumarnandan/Home/conte/Linux/ffmpeg/ffserver">https://sites.google.com/site/amarkumarnandan/Home/conte/Linux/ffmpeg/ffserver</a> </div>
<div><br></div><div>Thanks.<br><br><div class="gmail_quote">On Wed, Sep 12, 2012 at 1:00 AM, Yogesh Tyagi <span dir="ltr"><<a href="mailto:yogesh.bit2006@gmail.com" target="_blank">yogesh.bit2006@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Sep 7, 2012 at 12:05 PM, Yogesh Tyagi <<a href="mailto:yogesh.bit2006@gmail.com">yogesh.bit2006@gmail.com</a>> wrote:<br>

> On Fri, Sep 7, 2012 at 11:45 AM, nandan amar <<a href="mailto:nandan.amar@gmail.com">nandan.amar@gmail.com</a>> wrote:<br>
>> for following specification<br>
>><br>
>>  VideoBitRate 800k<br>
>>     VideoFrameRate 100<br>
>>     VideoSize 640x480<br>
>><br>
>> 150 MB is also less.<br>
>> Size should also depend on the video duration.<br>
>><br>
>><br>
>><br>
>> On Fri, Sep 7, 2012 at 11:17 AM, Yogesh Tyagi <<a href="mailto:yogesh.bit2006@gmail.com">yogesh.bit2006@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> On Fri, Sep 7, 2012 at 9:01 AM, Robert Steckroth<br>
>>> <<a href="mailto:robertsteckroth@gmail.com">robertsteckroth@gmail.com</a>> wrote:<br>
>>> > FileMaxSize 15M <-- 15 Megabytes is very small.<br>
>>> ><br>
>>> > On Thu, Sep 6, 2012 at 10:35 PM, Yogesh Tyagi <<a href="mailto:yogesh.bit2006@gmail.com">yogesh.bit2006@gmail.com</a>><br>
>>> > wrote:<br>
>>> >> On Fri, Sep 7, 2012 at 4:17 AM, Robert Steckroth<br>
>>> >> <<a href="mailto:robertsteckroth@gmail.com">robertsteckroth@gmail.com</a>> wrote:<br>
>>> >>> Also, I believe there is a file size limit in the conf which will need<br>
>>> >>> to be set high. Than you will need to rotate<br>
>>> >>> the recorded file. If you do not copy and empty the file, it will<br>
>>> >>> become corrupted. Keep in mind, if you<br>
>>> >>> simply empty the file e.g. cat > temp.ts, than you need to restart the<br>
>>> >>> ffserver to insert the proper<br>
>>> >>> headers.<br>
>>> >>><br>
>>> >>><br>
>>> >>> On Thu, Sep 6, 2012 at 4:54 PM, Anthony Brown <<a href="mailto:av@bsbc.nb.ca">av@bsbc.nb.ca</a>> wrote:<br>
>>> >>>> On 12-09-06 04:12 PM, Yogesh Tyagi wrote:<br>
>>> >>>><br>
>>> >>>>> so one feed can have one video or multiple videos?can I fed same<br>
>>> >>>>> feed<br>
>>> >>>>> through an instance of ffmpeg multiple times(if I do this the size<br>
>>> >>>>> of<br>
>>> >>>>> feed keeps <a href="http://increasing.is" target="_blank">increasing.is</a> the feed storing duplicate videos)? In this<br>
>>> >>>>> case what will happen to the data previously fed to the feed?<br>
>>> >>>>> The problem I am facing is that sometimes my client(say ffplay)<br>
>>> >>>>> plays<br>
>>> >>>>> the file from start that was fed through ffmpeg.sometimes it does<br>
>>> >>>>> not.<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>> You need to differentiate between a 'feed' and a 'stream'.  Feeds are<br>
>>> >>>> inputs<br>
>>> >>>> to the server.  Each feed can be converted into multiple 'stream'<br>
>>> >>>> formats<br>
>>> >>>> that can be output.  All of which are stored in a single ffm file.  A<br>
>>> >>>> feed<br>
>>> >>>> is 'fed' to ffserver by an instance of ffmpeg.  Each 'video', which I<br>
>>> >>>> take<br>
>>> >>>> to mean a separate feed is stored in a separate .ffm file.  All as<br>
>>> >>>> specified<br>
>>> >>>> in your .conf file.<br>
>>> >>>><br>
>>> >>>> Each 'video' requires a separate ffmpeg to 'feed' it to ffserver, and<br>
>>> >>>> a<br>
>>> >>>> separate ffm file to store it.<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>>> If i repeat the operation of feeding the feed through ffmpeg and<br>
>>> >>>>> accessing the file through a client then ffserver starts giving me<br>
>>> >>>>> following error:<br>
>>> >>>>><br>
>>> >>>>> Application provided invalid, non monotonically increasing dts to<br>
>>> >>>>> muxer in stream 0(or 1)<br>
>>> >>>>> Error writing frame to output<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>> Not sure what that means.<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>>> Is there any way through which I can find out what has been stored<br>
>>> >>>>> in the<br>
>>> >>>>> feed?<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>> yes, do an ffmpeg -i whatever.ffm and it will list the goodies<br>
>>> >>>> inside.<br>
>>> >>>> Alternatively, connect to the ffserver status page<br>
>>> >>>> (<a href="http://whatever.your.server.address.is:8090/stat.html" target="_blank">http://whatever.your.server.address.is:8090/stat.html</a>) and see what<br>
>>> >>>> is<br>
>>> >>>> there.<br>
>>> >>>><br>
>>> >>>> It would be easier to help if we knew what it was you were trying to<br>
>>> >>>> accomplish and exactly what you have tried (contents of<br>
>>> >>>> ffserver.conf,<br>
>>> >>>> ffmpeg command line and output, client output etc.)<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>> A<br>
>>> >>>> --<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>> Anthony Brown<br>
>>> >>>> Audiovisual coordinator<br>
>>> >>>> Brunswick Street Baptist Church<br>
>>> >>>> Telephone: (506)-458-8348 (leave message)<br>
>>> >>>> Email:     <a href="mailto:av@bsbc.nb.ca">av@bsbc.nb.ca</a><br>
>>> >>>><br>
>>> >>>> _______________________________________________<br>
>>> >>>> ffserver-user mailing list<br>
>>> >>>> <a 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>
>>> >>><br>
>>> >>> --<br>
>>> >>> Bust0ut, Surgemcgee: Systems Engineer ---<br>
>>> >>> <a href="http://surgemcgee.com" target="_blank">surgemcgee.com</a><br>
>>> >>> BudTVNetwork.com<br>
>>> >>> RadioWeedShow.com<br>
>>> >>> "Bringing entertainment to Unix"<br>
>>> >>> _______________________________________________<br>
>>> >>> ffserver-user mailing list<br>
>>> >>> <a 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>
>>> >> my  ffserver.conf file is as follows:<br>
>>> >><br>
>>> >> Port 8091<br>
>>> >> BindAddress 0.0.0.0<br>
>>> >> MaxHTTPConnections 2000<br>
>>> >> MaxClients 100<br>
>>> >> MaxBandwidth 1000000<br>
>>> >> CustomLog -<br>
>>> >> NoDaemon<br>
>>> >><br>
>>> >> <Feed feed1.ffm><br>
>>> >>  File /tmp/feed1.ffm<br>
>>> >>  FileMaxSize 15M<br>
>>> >>  ACL allow 127.0.0.1<br>
>>> >> </Feed><br>
>>> >><br>
>>> >> <Stream test.ts><br>
>>> >><br>
>>> >>     Feed feed1.ffm<br>
>>> >>     Format mpegts<br>
>>> >><br>
>>> >>     AudioCodec mp2<br>
>>> >>     AudioBitRate 128k<br>
>>> >>     AudioChannels 2<br>
>>> >>     AudioSampleRate 48000<br>
>>> >>     AVOptionAudio flags +global_header<br>
>>> >><br>
>>> >>     VideoCodec libx264<br>
>>> >>     VideoBitRate 800k<br>
>>> >>     VideoFrameRate 100<br>
>>> >>     VideoSize 640x480<br>
>>> >>     AVOptionVideo coder 0<br>
>>> >>     AVOptionVideo bf 0<br>
>>> >>     AVOptionVideo flags2 +mixed_refs+fastpskip<br>
>>> >>     AVOptionVideo flags +loop<br>
>>> >>     AVOptionVideo cmp +chroma<br>
>>> >>     AVOptionVideo partitions +parti8x8+parti4x4+partp8x8+partb8x8<br>
>>> >>     AVOptionVideo me_method hex<br>
>>> >>     AVOptionVideo subq 7<br>
>>> >>     AVOptionVideo me_range 16<br>
>>> >>     AVOptionVideo g 250<br>
>>> >>     AVOptionVideo keyint_min 10<br>
>>> >>     AVOptionVideo sc_threshold 40<br>
>>> >>     AVOptionVideo i_qfactor 0.71<br>
>>> >>     AVOptionVideo b_strategy 1<br>
>>> >>     AVOptionVideo qcomp 0.6<br>
>>> >>     AVOptionVideo qmin 10<br>
>>> >>     AVOptionVideo qmax 51<br>
>>> >>     AVOptionVideo qdiff 4<br>
>>> >>     AVOptionVideo refs 3<br>
>>> >>     AVOptionVideo directpred 1<br>
>>> >>     AVOptionVideo trellis 1<br>
>>> >>     AVOptionVideo flags2 +mixed_refs+fastpskip<br>
>>> >>     AVOptionVideo wpredp 0<br>
>>> >>     AVOptionVideo flags +global_header<br>
>>> >>     AVOptionVideo bsf h264_mp4toannexb<br>
>>> >><br>
>>> >>     VideoGopSize 12<br>
>>> >><br>
>>> >>     Preroll 15<br>
>>> >>     StartSendOnKey<br>
>>> >> </Stream><br>
>>> >><br>
>>> >> <Stream stat.html><br>
>>> >>  Format status<br>
>>> >>  ACL allow 127.0.0.1<br>
>>> >>  ACL allow 192.168.1.27<br>
>>> >> </Stream><br>
>>> >><br>
>>> >> <Redirect index.html><br>
>>> >>  URL stat.html<br>
>>> >> </Redirect><br>
>>> >><br>
>>> >><br>
>>> >> when I play test.ts from a client do I need  'fed' the feed to<br>
>>> >> ffserver by an instance of ffmpeg simultaneously or can i fed the feed<br>
>>> >> now and play the file temp.ts later.<br>
>>> >> I have tried this exercise. sometimes the client plays the file<br>
>>> >> test.ts,sometimes it does not.<br>
>>> >><br>
>>> >> One more question I want to ask is suppose I started feeding the feed<br>
>>> >> now and I start the client some time later.will the client be able to<br>
>>> >> play the file test.ts from start?<br>
>>> >><br>
>>> >> If I fed the feed to ffserver by an instance of ffmpeg muliple times<br>
>>> >> and try to play test.ts from client I start getting following errors:<br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >> Following is the command line output:<br>
>>> >><br>
>>> >> # ffserver -f /etc/ffserver.conf &<br>
>>> >> [1] 30433<br>
>>> >> yogesh@yogesh-desktop:~/Desktop$ ffserver version 0.9, Copyright (c)<br>
>>> >> 2000-2011 the FFmpeg developers<br>
>>> >>   built on Aug 23 2012 13:35:01 with gcc 4.4.5<br>
>>> >>   configuration: --enable-libx264 --enable-gpl<br>
>>> >>   libavutil    51. 32. 0 / 51. 32. 0<br>
>>> >>   libavcodec   53. 42. 0 / 53. 42. 0<br>
>>> >>   libavformat  53. 24. 0 / 53. 24. 0<br>
>>> >>   libavdevice  53.  4. 0 / 53.  4. 0<br>
>>> >>   libavfilter   2. 53. 0 /  2. 53. 0<br>
>>> >>   libswscale    2.  1. 0 /  2.  1. 0<br>
>>> >>   libpostproc  51.  2. 0 / 51.  2. 0<br>
>>> >> Thu Sep  6 20:54:40 2012 FFserver started.<br>
>>> >> Thu Sep  6 20:54:50 2012 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200<br>
>>> >> 4149<br>
>>> >> Thu Sep  6 20:54:53 2012 muxrate VBR, pcr every 2 pkts, sdt every 200,<br>
>>> >> pat/pmt every 40 pkts<br>
>>> >> Thu Sep  6 20:54:57 2012 muxrate VBR, pcr every 2 pkts, sdt every 200,<br>
>>> >> pat/pmt every 40 pkts<br>
>>> >> Thu Sep  6 20:55:09 2012 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200<br>
>>> >> 3739648<br>
>>> >> Thu Sep  6 20:55:09 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200<br>
>>> >> 2683391<br>
>>> >> Thu Sep  6 20:55:09 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200<br>
>>> >> 3385007<br>
>>> >> Thu Sep  6 20:55:25 2012 muxrate VBR, pcr every 2 pkts, sdt every 200,<br>
>>> >> pat/pmt every 40 pkts<br>
>>> >> Thu Sep  6 20:55:28 2012 muxrate VBR, pcr every 2 pkts, sdt every 200,<br>
>>> >> pat/pmt every 40 pkts<br>
>>> >> Thu Sep  6 20:55:32 2012 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200<br>
>>> >> 4149<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 0<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 3003<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 6006<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 9009<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 0<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 3003<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 6006<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 9009<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 12012<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 15015<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200<br>
>>> >> 4579<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 12012<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 Application provided invalid, non<br>
>>> >> monotonically increasing dts to muxer in stream 1: 2732730 >= 15015<br>
>>> >> Thu Sep  6 20:55:33 2012 Error writing frame to output<br>
>>> >> Thu Sep  6 20:55:33 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200<br>
>>> >> 4579<br>
>>> >> Thu Sep  6 20:55:52 2012 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200<br>
>>> >> 3739648<br>
>>> >><br>
>>> >><br>
>>> >> I am feeding by following command:<br>
>>> >><br>
>>> >> ffmpeg -i Sally_720x480p_2997fps_8Mbps_MP1L2_48_224.ts -vcodec libx264<br>
>>> >> -acodec mp2  -flags -global_header <a href="http://127.0.0.1:8091/feed1.ffm" target="_blank">http://127.0.0.1:8091/feed1.ffm</a><br>
>>> >><br>
>>> >> Regards,<br>
>>> >> yogesh<br>
>>> >> _______________________________________________<br>
>>> >> ffserver-user mailing list<br>
>>> >> <a 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>
>>> > --<br>
>>> > Bust0ut, Surgemcgee: Systems Engineer ---<br>
>>> > <a href="http://surgemcgee.com" target="_blank">surgemcgee.com</a><br>
>>> > BudTVNetwork.com<br>
>>> > RadioWeedShow.com<br>
>>> > "Bringing entertainment to Unix"<br>
>>> > _______________________________________________<br>
>>> > ffserver-user mailing list<br>
>>> > <a 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>
>>> I also checked by increasing it to 150 MB.<br>
>>><br>
>>> Regards,<br>
>>> yogesh<br>
>>> _______________________________________________<br>
>>> ffserver-user mailing list<br>
>>> <a 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>
>><br>
>> --<br>
>><br>
>> Amar Kumar Nandan<br>
>> Karnataka, India, 560100<br>
>> ✉:<a href="mailto:nandan.amar@gmail.com">nandan.amar@gmail.com</a><br>
>> <a href="http://aknandan.co.nr" target="_blank">http://aknandan.co.nr</a><br>
>><br>
>> _______________________________________________<br>
>> ffserver-user mailing list<br>
>> <a 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>
> Video duration is just 1 or 2 minutes.I changed VideoFrameRate to 15.<br>
<br>
</div></div>media player is playing this streamed file too fast.What could be the<br>
possible reason for this?<br>
<div class="HOEnZb"><div class="h5"><br>
Regards,<br>
yogesh<br>
_______________________________________________<br>
ffserver-user mailing list<br>
<a 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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div>Amar Kumar Nandan<br>Karnataka, India, 560100<br>☎:+91-9019054471<br>✉:<a href="mailto:nandan.amar@gmail.com" target="_blank">nandan.amar@gmail.com</a><br>
<a href="http://aknandan.co.nr" target="_blank">http://aknandan.co.nr</a><br>
</div>