LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-07-2010, 10:08 AM   #1
Ark0
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Rep: Reputation: 0
VLC + IceCast Live Video Streaming buffering problem


Hello Guys

Im trying to set up a Live Video Streaming thats gonna run 24/7 im using

VLC 1.1.4
Icecast 2.3.2
Logitech HD webcam c270
Using Theora/Vorbis transcoding so far
Bandwidth 1400kb down 400kb up (This is only for test so far)

all this on Ubuntu Maverick (10.10)

Problems im having.

Im only on testing stage, im testing this on LAN first and even on LAN im getting an excess of buffering, the video freez and loads and then resumes and its anoying and wont work like this.

Ive been trying to find the way to set up the VLC to send lower video quality or something to see if there lays the problemand i dont seem to find the rigt options, i have no clue how to set up properly i dont know if it has to be on the transcoding options or what; id like some advices on where i have to beging configuring in order to mess with the stream quality and bandwidth or something!!

ALSO i tried to use the command line to stream but its so confusing i never manage to do it properly... i would like an exaple of using the comand line since i have been reading a lot of guides how to use the comand line and they are all very confusing.


PD: Im no hardcore programer nor experienced Linux user but im looking foward to learn a lot!
 
Old 12-08-2010, 10:04 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Quote:
Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 4 million posts to search it's possible the answer has been given.
You may find this tutorial helpful.
https://wiki.archlinux.org/index.php/Webcam_Setup

Regards Glenn
 
1 members found this post helpful.
Old 12-09-2010, 08:46 AM   #3
Ark0
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thank You GlennsPref!

It was kinda helpfull, by reading that tutorial i could learn how to play the webcam from console but im still requring a proper command line to stream, the $ vlc v4l2:// --sout=#transcode{vcodec=theo,vb=48,scale=1,width=320,height=240,acodec=none}:std{access=shout,mux=ogg ,dst=source:*****@127.0.0.1:8000//videomundial} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep

it aint working and im still very confusing on configuring the VLC even on the GUI

about the search function i used i plenty and could not find a suitable answer since it appears that most of the questions are very old, non are having my issues or im just terrible at finding something similar!

Thanks again anyways and more input would be awesome!

Last edited by Ark0; 12-09-2010 at 08:54 AM.
 
Old 12-09-2010, 12:36 PM   #4
Ark0
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Allright i managed to make it work trough console! but i still cant manage to configure the frame rate when i try to set some fps on the GI it wont play anything the camera wont even open

the comand line im using is

$ vlc v4l2:// --sout "#transcode{vcodec=theo,vb=48,scale=1,width=320,height=240,acodec=none}:std{access=shout,mux=ogg,dst =sourceassword@127.0.0.1:8000//videomundial}"

Id like to know how to configure fps, buffer size and stuff in console and all

Last edited by Ark0; 12-09-2010 at 12:43 PM.
 
Old 12-09-2010, 06:51 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Some one with similar probs...

http://www.linuxquestions.org/questi...39#post4185839
 
Old 12-10-2010, 10:35 AM   #6
Ark0
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref View Post
Hello GlenPref,

Thank you for your answers!

Well when i performed the searches i saw that topic, and the problem was not quite as mine, my camera its working, im able to transmit the stream and all, my problem is that i cannot seem to understand how to configure what im sending in terms of quality and bandwidth!

I dont know how, the options to configure that stuff using VLC GUI nor command line! So far whats giving me the most troubles is configurating the fps, i dont know where to begin, i dont know if i have to configure in the camera itself (where??) or the VLC will allow me all that (WHERE??)

As i said im not an experimented Linux user, most of the things ive read i cannot comprehend entirely but ive read a lot and dealt with a lot of problems so far, ive gone from a regular windows user... to install & configure linux debian and ubuntu and been able to transmist via stream all with just google and reading forums! dont think im posting because im lazy! this is my last resort actually ive been reading a lot.

Most of the help i find is from very old versions of VLC or has nothing to do with whats giving me troubles!

Tho im not even sure if the camera and combination of programs im using are the best for Live Streaming 24/7

Last edited by Ark0; 12-10-2010 at 02:02 PM.
 
Old 12-10-2010, 07:02 PM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, try this to find the config file for vlc.

Code:
locate vlc
cut down the noise....
Code:
locate vlc | grep vlcrc
/home/glenn/.config/vlc/vlcrc

This is the file to edit.

once you have the file open in an editor like kate or gedit, search for 'fps', without the quotes.

for instance

line 1134, transcode fps
line 2227, X11/xcb
line 2271, v4l2

there's more.

you might web-search for "vlcrc (some term you want)" to find other examples to compare with.

Cheers, Glenn

Last edited by GlennsPref; 12-10-2010 at 07:03 PM. Reason: spelling
 
Old 12-29-2010, 10:08 AM   #8
Ark0
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Hello people!

alright i figure a lot of stuff, at the end its easier than i though problem is documentation its rly outdated

for the initial problem that was the execs of buffering i solved by setting the fps as i intended in the first place

in the transcode part of the command line its possible to include this without any more trouble

like #transcode{vcodec=theo,vb=48,fps=15,scale=1,width=480,height=320}

that was an example, normally if you use width and height you wouldn't need to use scale

also there are lots of options for the capture/input part, ive been trying and some work some dont on but its good to know they exist here is a site that describe some of them
http://wiki.videolan.org/Documentation:Modules/v4l2
in there there is an option :v4l2-fps= but it doesn't seem to be working for me, the vlc wont recognize so no idea there
the syntax its not very clear but it gives you a clue and im sure if you got some experience not like when i started it should be easier to figure

the line im using is

Code:
vlc v4l2:///dev/video0:v4l2-fps=10 :v4l2-adev=hw:0,0
--input-slave=alsa://hw:0,0 --sout "#transcode{vcodec=theo,vb=48,fps=5,scale=1,width=480,height=320,acodec=vorb,ab=32,channels=1,samplerate=44100}:std{access=shout,mux=ogg,dst=source:pasante@127.0.0.1:8000//videomundial}"
and to use with ssh you would need to use cvlc instead of vlc unless you wanna use gui in which i thin you would need to activate server X (i think its just to type vlc -X)

the --input-slave seems very cool but im not really sure of its functionality first because its not working for me hehe and second because i never found documentation of that, i found about it in the #videolan channel @ irc.freenode and the GUI of the vlc uses it too

also the fact that there is an option of the v4l2 that calls the audio v4l2-adev= but i think it only works when the audio its also been input by the v4l2 device or i don't know


and finally well i ran into another problem and i belive its a vlc bug

i cannot either play locally with vlc audio from the line in and video at the same time, nor offcourse stream them

i use

Code:
cvlc -v v4l2:// --input-slave=alsa://
and like that i only get Video

if i use

Code:
cvlc -v alsa:// --input-slave=v4l2://

I only get audio

Ive tried every syntax that i can imagine
vlc, :input-slave= (which doesn't work) etc

so i believe its unbelievable that this is happening, how come i cannot play bot at the same time on vlc wen vlc its a program thats used to play media.... ? :s

well if i missed anything ill post!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Live Video Streaming Software kool_kid Linux - Software 6 10-31-2010 02:46 AM
[SOLVED] Odd happenings with VLC and live radio streaming. NitroQuad Linux - Networking 2 07-30-2010 03:03 AM
Help needed in live streaming with icecast server piyush.ml20 Red Hat 1 05-03-2009 07:22 AM
Is there a software for streaming live video rockjr Linux - Software 12 12-22-2007 06:30 AM
live video streaming dukeinlondon Linux - Software 1 12-22-2004 08:12 PM


All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration