Ubuntu 9.10 - no sound when streaming

*nix specific usage questions
viulian
New Cone
New Cone
Posts: 7
Joined: 30 Jan 2010 18:45

Ubuntu 9.10 - no sound when streaming

Postby viulian » 17 May 2010 21:15

Hello,

I have an issue with the audio when streaming TV tuner from Ubuntu 9.10.

A description on what happens on the system:
a) tvtime works ok.
b) vlc 1.0.2 standalone works partially: I have to give the width and height parameters for v4l2, otherwise the image size is not detected properly and I only get the distorted lower left corner of the TV channel. Also, audio is not closed when I close VLC (the sound system still plays the line-in values from the tuner). Plus, the video is not in sync with the audio.
c) when streaming with vlc from command line, I'm using this script:

Code: Select all

new vlc42 broadcast enabled setup vlc42 input "v4l2://" setup vlc42 option :v4l2-width=480 setup vlc42 option :v4l2-height=384 setup vlc42 option :v4l2-tuner-frequency=203250 setup vlc42 option http-reconnect setup vlc42 output #transcode{venc=x264,vcodec=h264,fps=25,vb=800,scale=1,acodec=mp3,ab=96,channels=1,samplerate=44100}:std{access=http,mux=ts,dst=0.0.0.0:1234}
The problem is that on the laptop where I play the stream (using VLC 1.0.5 / Windows), when I connect to port 1234 - I do get perfect video, but no sound. Since the server is in the other room, i hear the sound starting on it. TV sound plays on the server :) Also, I don't see any audio information in the media details screen on the player - in the Audio menu, everything is disabled. So it looks like VLC on the server doesn't put anything in the audio part.

I've also tried to play with adev, audio-method, etc, no luck. Don't know what values I should be using, but for adev I tried /dev/audio1, /dev/dsp1, etc.
It's Ubuntu 9.10 - no debian-multimedia in apt sources list, using default pulseaudio driver (no alsa installed), user is member of the audio and video groups.

Any idea why ?

Thank you,

viulian
New Cone
New Cone
Posts: 7
Joined: 30 Jan 2010 18:45

Re: Ubuntu 9.10 - no sound when streaming

Postby viulian » 18 May 2010 00:48

I've got it running eventually ...

I thought initially is because VLC may be older ... so I proceeded to download 1.0.6 and compile it.
VLC build script is not correct for example:

Code: Select all

--enable-x264 H264 encoding support with libx264 (default enabled)
but if you don't have the libraries for x264 correctly installed you don't get any error, the x264 is just disabled silently (but you belive that it is enabled).
Also, VLC doesn't complain if it doesn't find a library at runtime - creating more confusion.

Eventually, while hunting the ffmpeg (I thought that x264 is enabled by default but it did not work), then input-slave alsa, libmad0 , etc, I got it working just by installing the missing libraries.
VLC 1.0.2 also works if you have the libraries installed.

On a fresh Ubuntu 9.10 I had to install:
libmad0-dev
alsa-utils
libasound2-dev
(plus some more that I needed to compile VLC 1.0.6 - but I don't think they are needed for 1.0.2).

I also needed to download and compile the x264 library from VLC, because Ubuntu's default one: libavcodec / libavformat gave compile errors for 1.0.6.

Still, I will run VLC 1.0.2 as 1.0.6 breaks the bottom half of the image - but 1.0.2 looks good. I just hope that the telnet interface supports changing the tuner frequency on the fly ...


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests