Streaming audio only from soundcard input

About encoding, codec settings, muxers and filter usage
wedgim
New Cone
New Cone
Posts: 2
Joined: 26 Dec 2010 11:27

Streaming audio only from soundcard input

Postby wedgim » 26 Dec 2010 12:47

Hello,
please try to overlook any grammatical mistakes i make, still learning english :)

As the subject says, i want to stream audio only from the input or output of my soundcard. to be more precise: i'm trying to stream the output from my e-piano (plugged in my soundcard input) in some kind via vlc. i recently changed from windows 7 to ubuntu 10.10 and i still have my little differences getting how some things work. i tried to run the whole idea with icecast2 before, but setting it up properly is quite a pain in the arse (which means i failed), so i was hoping vlc could be the more easy way to stream my audio.

My current vlc version is 1.1.4. Here is what i tried already:
1. i chose the "streaming" entry from the media menu
2. capture device -> capture mode?

well this is where i am at a loss. the capture mode "video for linux 2" is default and looks like the best option. other options are: "video for linux", "pvr", "dvb" and "desktop". there is no audio only mode, so i use "video for linux 2" and just leave the video device name empty hoping this could work. for audio device name i fill in the alsa device name "hw:0". i am not used to the way linux device management and naming works, but i think i found out this is the way how alsa stuff is being adressed. too bad there is no dropdownmenu.

3. i click stream, the stream config window pops up
4. source

the windows wants me to check the source first, which is preconfigured as "v4l2://" and of the "v4l2" type. i cannot edit this source at all and have absolutely no idea what "v4l2" is, so i click next hoping it will work.

5. destination

i choose "http" as type and click "add", leave port 8080 as it is and leave the path-field with the default "/"

5.1 transcoding options

i have no idea if i even need transcoding, but i guess its necessary to use a transcoded (compressed?) stream, because my upstream bandwith for internet is not enough for any uncompressed stuff. in the dropdownmenu "profile" i choose "audio - mp3", any player should be able do play this on the other end of the cable. next.

6. options

there is an option which says "stream all elementary streams", i dont know if i have to check it so i leave it blank.

7. stream

i click stream. sometimes a window complains about some mpeg1/2/3 codecs missing though i am transcoding with mp3. sometimes it complains about some video stuff, but i am NOT streaming video?! sometimes it does stream, but when i connect from another pc over network nothing happens


i dont know if vlc is the right approach for my piano streaming. if some of you can tell me what else would definitely work, please give me tips. i am aware there is something called google which can help me find answers, but i dont really find someting, it is outdated or not for linux purposes. if there is something definitely working for windows please tell me, i also have access to another windows pc.

anyway, thank you

Rémi Denis-Courmont
Developer
Developer
Posts: 15328
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Streaming audio only from soundcard input

Postby Rémi Denis-Courmont » 27 Dec 2010 10:46

Go to Playlist -> Devices -> Audio capture, then right click on the correct audio input, and select Stream.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

wedgim
New Cone
New Cone
Posts: 2
Joined: 26 Dec 2010 11:27

Re: Streaming audio only from soundcard input

Postby wedgim » 27 Dec 2010 19:47

Thank you. Got the audio stream working on windows now, after making almost every possible mistake with the source and transcoding stuff.
Tried webcam streaming on this ubuntu machine to see if i got the principles right, but i cant get livestream working. recording a file with vlc and streaming it afterwards works.
Anyway, consider my problem solved. Streaming my e-piano output to web or network works with windows 7 at the moment. I didnt't see the devices part in the playlist (ubuntu), the windows dropdown selection is a little different :D


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: Bing [Bot] and 12 guests