Hi,

I am trying to stream MPEG4 video. Can ffmpeg stream this format (.mp4).

*Can we use some external encoders with ffmpeg?*

On Thu, Mar 18, 2010 at 3:40 PM, Naz <li...@mrnaz.com> wrote:

>  First of all, can AVI even be streamed? I'm not sure, but I don't think it
> can. Even if you can, I would recommend using a saner format.
>
> Secondly, your ffmpeg config is incomplete. When streaming with ffserver
> you only need as many params as are required for the input. All output
> params are done in the conf file.
>
> So you only need:
>
> *ffmpeg -f x11grab -r 3 -i 0:0 http://localhost:8090/screencast.ffm*
> * <http://localhost:8090/screencast.ffm>*
> The rest goes in your ffserver.conf
>
> If it's a screencast, and you don't need audio, you can add NoAudio just
> below AudioSampleRate and it will override your audio settings, removing the
> audio stream, saving you the bandwidth.
>
> I am working on a good ffserver.conf for the current build of
> ffmpeg/ffserver once done I will post it here. At the moment, my
> ffserver.conf does not seem to work properly with the current build of
> ffserver.
>
> Finally, I would recommend switching to a format more suitable to
> streaming. For high res streaming over a local network I would recommend
> mpeg2ts at about 1.5mbits or if you need lower bandwidth, h.264 in flv at
> about 400kbits. These should be fine for screencasting 3fps at 1024x768.
> That being said, I'd recommend using a higher framerate. Going to say 8fps
> would give you a far more fluid screencast, and should still be fine for the
> bitrates I've recommended here.
>
>
> avinash p.v wrote:
>
> Dear All,
>
> I am a Student working on a Project in which I need to Stream my Desktop
> Live to another System over a wireless Network. I am stuck very badly, any
> help will be greatly appreciated.
>
> *I am able to grab the Screen successfully* with the following command:
> $ ./ffmpeg -f x11grab -r 24 -s 1024x720 -i :0.0 out.mpg
> OR even better quality by
> $ ffmpeg -an -f x11grab -r 25 -s 1024x768 -i ":0.0" -vcodec mpeg4 -sameq
> /tmp/bla.mp4
>
>
> Then I am trying to stream this to the ffserver with the following command
> ; and I have* hit a road block*.*
> $ ffmpeg -f x11grab  -r 3 -b 64 -g 12 -s 1024x720  -i :0.0
> http://localhost:8090/screencast.ffm*
>
> FFmpeg version SVN-r20911, Copyright (c) 2000-2009 Fabrice Bellard, et al.
>   built on Dec 24 2009 10:42:59 with gcc 4.3.3
>   configuration: --enable-gpl --enable-version3 --enable-nonfree
> --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame
> --enable-libxvid --enable-x11grab
>   libavutil     50. 7. 0 / 50. 7. 0
>   libavcodec    52.43. 0 / 52.43. 0
>   libavformat   52.44. 0 / 52.44. 0
>   libavdevice   52. 2. 0 / 52. 2. 0
>   libswscale     0. 7. 2 /  0. 7. 2
> WARNING: The bitrate parameter is set too low. It takes bits/s as argument,
> not kbits/s
> [x11grab @ 0x8c7a390]device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1024
> height: 720
> [x11grab @ 0x8c7a390]shared memory extension  found
> [x11grab @ 0x8c7a390]MAX_READ_SIZE:5000000 reached
> [x11grab @ 0x8c7a390]Estimating duration from bitrate, this may be
> inaccurate
> Input #0, x11grab, from ':0.0':
>   Duration: N/A, start: 1265699007.493820, bitrate: 70778 kb/s
>     Stream #0.0: Video: rawvideo, bgra, 1024x720, 70778 kb/s, 3 tbr, 1000k
> tbn, 3 tbc
> [mpeg4 @ 0x8c8b7c0]bitrate tolerance too small for bitrate
> Output #0, ffm, to 'http://localhost:8090/screencast.ffm':
>     Stream #0.0: Video: mpeg4, yuv420p, 1360x768, q=3-31, 64 kb/s, 1000k
> tbn, 3 tbc
> Stream mapping:
>   Stream #0.0 -> #0.0
> Error while opening encoder for output stream #0.0 - maybe incorrect
> parameters such as bit_rate, rate, width or height
> *
> My ffserver.conf file is :*
>
> Port 8090
> BindAddress 0.0.0.0
> MaxClients 1000
> MaxBandwidth 1000
> NoDaemon
>
> <Feed screencast.ffm>
> File /tmp/screencast.ffm
> FileMaxSize 10M
> ACL allow 127.0.0.1
> </Feed>
>
> <Stream screencast.avi>
> Feed screencast.ffm
> Format avi
> AudioBitRate 32
> AudioChannels 1
> AudioSampleRate 22050
> VideoBitRate 64
> VideoBufferSize 40
> VideoFrameRate 3
> VideoSize 1024x720
> VideoGopSize 12
> NoAudio
> </Stream>
>
> <Stream stat.html>
> Format status
> ACL allow localhost
> ACL allow 192.168.0.0 192.168.255.255
> </Stream>
>
> <Redirect index.html>
> URL http://www.ffmpeg.org/
> </Redirect>
>
> So, please help me by answering these qustions:
>
>    1. *Am I heading in the right direction at all. Is it achievable from
>    FFMPEG? I did'nt find much help online related to live streaming.
>    *
>    2. *If so, what are the changes i need to make either in the cofig file
>    or in the command.. or is there any other way.
>    *
>    3. *Please suggest me some documentation [tutorials] with which i could
>    work better.*
>
> Thanks & Regards
> Avinash P V
>
> ------------------------------
>
> _______________________________________________
> ffserver-user mailing 
> listffserver-u...@mplayerhq.huhttps://lists.mplayerhq.hu/mailman/listinfo/ffserver-user
>
>
>
> --
> السلام عليكم
>
> Web:  www.mrnaz.com
> Ph:   +61 400 460 662
>
>
> _______________________________________________
> ffserver-user mailing list
> ffserver-user@mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user
>
>


-- 
A.Dipteswar Patro
M-Tech,CEDT
IISc, Bangalore
Ph:+91-9008467616
_______________________________________________
ffserver-user mailing list
ffserver-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user

Reply via email to