Hello.

This is my first post to the list. I've done some research about what I'm
trying to accomplish but, can't really find the correct answer to my
problem:

I'm trying to configure a ffserver to stream feeds and files locally but,
first I'm trying to get it to work with files. I have hundreds of videos on
a server I would like to watch on my tv and smartphones at different
quality and rates since bandwidth could be an issue.

How can I have clients use specific amount of bandwidth for each stream,
for example I would like to make clients not to use more than 1024Kbit/s.
If I have four clients watching a stream that would be each 1024, 4 x 1024
= 4096 TOTAL. Does this type of "shaping" needs to be configured the os
side or simply by assigning a max bit rate:

Here's what I try doing in my ffserver.conf:

<Stream video.sdp>
>        Format rtp
>        File "/root/videos/video1.mp4"
>        AudioBitRate 96
>        AudioSampleRate 44100
>        VideoBitRate 1024
>        VideoFrameRate 30
>        VideoCodec libx264
>
>        VideoCodec libx264
>        VideoSize 720x480
>        AVOptionVideo crf 23
>        AVOptionVideo flags +global_header
>        Preroll 15
> </Stream>


The video's specs are as follow:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/video1.mp4':
>   Metadata:
>     major_brand     : mp42
>     minor_version   : 0
>     compatible_brands: isommp42
>     creation_time   : 2013-11-26 23:10:14
>   Duration: 01:27:39.02, start: 0.000000, bitrate: 3035 kb/s
>     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
> 1280x720, 2840 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc (default)
>     Metadata:
>       handler_name    : VideoHandler
>     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
> stereo, fltp, 192 kb/s (default)
>     Metadata:
>       creation_time   : 2013-11-26 23:15:21
>       handler_name    : IsoMedia File Produced by Google, 5-11-2011


The ffserver.conf does not work, I checked the server bw consumption or
traffic with iptraf and is over 6M. Am I doing something wrong? Please
guide me to where I can find more info to correct my problem.

Thanks in advanced for your time and guidance.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to