Screencasting & Video streaming - Unix Related Arts & Image Manipulation Software
z3bra
I've been recently searching for a way to stream my desktop on the web, with good quality and as few latency as possible. It turns out that video encoding sounds like black magic to me...

I'm using ffserver + ffmpeg + alsa. Pretty simple setup. But I'm struggling to get less than 10 seconds latency, egen with libx264's zerolatency setting. I've read posts like this: http://stackoverflow.com/questions/12020...1#12085571, that helped, but not thst much as I don't understand some terms.

What are your experiences with video encoding and streaming? Would you have some hints about hiw to improve latencies, or user-friendliness of the tools involved?
BANGARANG, MOTHERFUCKER
josuah
This worked very nice while you shew <code>sick(1)</code>. Only latency, but I do not know video codecs, so I doubt I can help with this.

Maybe one could use vlc to play it, without even requiring command line interaction (File > Open Network Stream, or CTRL + N) so it is user friendly enough this way?

I do not know if it works with your feed, though...
z3bra
Good to know! Thanks for the input. Due to the latency, I'll have to send the audio through the stream. I have no idea which codec would be best for it. I kind of figured some good enough presets for the video (x264 + zerolatency + 512K bitrate), but on the audio sofe, I'm totally lost... If anyone has an idea, please tell me!

For VLC, it can totally play the stream! Best is to disable caching to get the lowest latency possible. I personallucioles use "mplayer -nocache" for that. I know that "ffplay" also does a good job at playing those streams.
z3bra
For reference, here are my encoding settings:
Code:
Format flv
VideoCodec libx264
VideoFrameRate 25
VideoSize 1440x900
VideoBitRate 900
AVOptionVideo tune zerolatency
AVOptionVideo flags +global_header
PreRoll 0
NoAudio

Still trying to figure out the best option for audio...
josuah
ffmpeg is such a nice tool! It compile very well (much time, though) without requiring libraries (or some that were already on my OS.

With good documentation, and

And ffplay is a tool built along with ffmpeg, but I dan't know it well enough yet. It still can be used to play in the linux framebuffer ('in tty'), so thanks to you, we can even watch live streaming in the TTY week.
w0ne
I have always used Open Brodcast Software
venam
(20-07-2016, 02:14 AM)w0ne Wrote: I have always used Open Brodcast Software
This one: https://obsproject.com/ ?
w0ne
Yea that one, and it's also cross-platform :D
z3bra
Sounds pretty neat! Does it also handle the server part?
josuah
http://hisham.hm/htop/ is using video streaming for its background (actually a gif. Someone else did it, though).

At the bottom of the page:

Quote:Thanks to Alexander Waldeck for the idea of having htop itself as the page background! His page actually presents a live htop session -- mine is just an animated gif with a few frames stolen from his page. :-)

It does not looks like a real video stream, more like hacks to get TTY displayed 'live'.




Members  |  Stats  |  Night Mode