for following specification<div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> VideoBitRate 800k</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">  Â  VideoFrameRate 100</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">  Â  VideoSize 640x480</span> </div><div><br></div><div>150 MB is also less. </div><div>Size should also depend on the video duration.</div>
<div><br></div><div><br><br><div class="gmail_quote">On Fri, Sep 7, 2012 at 11:17 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">On Fri, Sep 7, 2012 at 9:01 AM, Robert Steckroth<br>
<div><div class="h5"><<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>> 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 feed<br>
>>>>> through an instance of ffmpeg multiple times(if I do this the size 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) plays<br>
>>>>> the file from start that was fed through ffmpeg.sometimes it does not.<br>
>>>><br>
>>>><br>
>>>> You need to differentiate between a 'feed' and a 'stream'. Â Feeds are inputs<br>
>>>> to the server. Â Each feed can be converted into multiple 'stream' formats<br>
>>>> that can be output. Â All of which are stored in a single ffm file. Â A feed<br>
>>>> is 'fed' to ffserver by an instance of ffmpeg. Â Each 'video', which I take<br>
>>>> to mean a separate feed is stored in a separate .ffm file. Â All as specified<br>
>>>> in your .conf file.<br>
>>>><br>
>>>> Each 'video' requires a separate ffmpeg to 'feed' it to ffserver, and 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 in the<br>
>>>>> feed?<br>
>>>><br>
>>>><br>
>>>> yes, do an ffmpeg -i whatever.ffm and it will list the goodies 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 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 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 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 3739648<br>
>> Thu Sep Â 6 20:55:09 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200 2683391<br>
>> Thu Sep Â 6 20:55:09 2012 192.168.1.27 - - [GET] "/test.ts HTTP/1.0" 200 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 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 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 4579<br>
>> Thu Sep Â 6 20:55:52 2012 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 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>
</div></div>I also checked by increasing it to 150 MB.<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>✉:<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>