Fix Audio out of sync with video on veetle and Ubuntu 11.04
UPDATE:
Hi Folks,
Veetle just released a beta version of the new veetle for linux. No more need to change the settings. It works like a charm for me. Give a try and Let me know! That is a copy of the veetle developers post:
Hey Linux users – help us pre-test a new release for Linux! We put the old release on a diet, and it’s down to about 8MB in size, includes better support for PulseAudio (you should no longer need to uninstall pulse to get audio synced up properly in linux) and works out of the box on my 64-bit Ubuntu. It will still show up as version 0.9.17 (we’ve got some added fixes we’d like to push out before applying the coveted 0.9.18 moniker) but you can get it in either of your favorite formats from:
http://veetle.com/download.php/veetle-0 … install.sh
http://veetle.com/download.php/veetle-0.9.17plus.tgz
If you do install it, let us know how it’s working out for you! I’m calling this one “0.9.17+”.
[Caveat: This is an experimental release! Not for the weak of heart! Don't install it unless you feel comfortable rolling up your sleeves and tinkering with your Linux box - or at the very least, wait until others confirm that it doesn't horribly break the website...]
Link: http://s1.veetle.com/forums/viewtopic.php?f=7&t=2312#p8845
OLD WAY:
it is caused by the vlc included with the veetle in the .veetle_vlc folder (thanks forevertheuni). Somewhat it leads to an audio delay in lucid systems, probably due to an output driver problem (I have encountered similar delay problems while this vlc was playing audio files when alsa, or pulse was selected as output driver). But oss driver worked for me.
Anyway, let’s begin fixing it!
1) Firstly browse to the .veetle_vlc folder located in your home folder using nautilus (or your favourite file browser).
2) Rename the “vlc” file into something else. I have renamed it as “vlcori” which is the short for vlc original but you are free to give it any name at all.
3) Create a new document called vlc by right-clicking on the nautilus window, selecting “Create Document” and clicking “Empty File”
4) Now double click the vlc file you have created. The file be opened with gedit (or your default file editor).
5) Type (or copy-paste) the following code inside the file:
#! /bin/sh
exec ~/.veetle_vlc/vlcori --aout oss "$@"
6) If you renamed your original vlc file as something different than vlcori, make sure you have changed the code above according to the name you gave.
7) Save the file, close gedit,
Right click the vlc file you have created, click “Properties”, then “Permissions” tab, make sure “Allow executing file as program” is selected, if not click the checkbox beside it, and finally click “Apply”
9) Close nautilus, enjoy veetle.
UPDATE:
On Ubuntu Maverick for some reason, on my tests, this solution doesn’t work. An alternative way to fix it, in case the first doesn’t work is:
On step five, instead
#! /bin/sh
exec ~/.veetle_vlc/vlcori --aout oss "$@"
Replace it for:
#! /bin/sh
exec ~/.veetle_vlc/vlcori --alsadev 0 "$@"
Hi,
I’ve spent a few hours looking for the veetle_vlc folder without results. I know, I am a little new to the system. But I don’t know where I can look for it. Any help?
Thanks a lot.
Hi,
The .veetle_vlc folder is locater in your home folder: /home//.veetle_vlc
It’s hidden by default in nautilus. To show all the hidden files/folders hit ctrl+h on your nautilus(file browser)
Wow! Thanks!
You changed my life… The World Cup is about to start and you know….
Gracias.
Hi,
Sorry, this doesn’t work with an external USB-to-SPDIF soundcard (Aureon 5.1 MKII) hooked on to a digital receiver.
What to do?
Cheers
Frank
Thanks for this. The above method worked great on two of my three computers running Ubuntu 10.04. However, for the third one (Acer Revo 1600 using hdmi output) I needed to use:
exec ~/.veetle_vlc/vlcori –audio-desync=-6000 “$@”
Using the –aout oss produced no sound at all. The -6000 is the number of milliseconds to delay the audio so you might need to change this number to get it exactly in sync.
HELP! This works for a couple hours then it goes back to normal. The only way I found is to log out and log back in. Is there another way?!
Make sure you’re not using any other application that requires sound output at the same time. I know it sucks, but every time I’m watching any video on veetle I need to mute everything else
Hi, Luciano
I found a problem, I resolved. In my Ubuntu and many others that I
installed for my friends, to run your script … I had
Veetle install and then modify it before installing Skype. It seems that Skype
a problem on a sound driver that also uses Veetle. For example,
you can not have Skype conference Veetle and see why the sound comes in
delay. Close Skype, restart the PC and Veetle works well.
Stefano
Because the script sets vettle to use OSS, not only skype, but any other application that needs the speakers while veetle is running won’t work. A good try, instead use OSS would be to specify the Alsa, it worked fine for me.
#! /bin/sh
exec ~/.veetle_vlc/vlcori --alsadev 0 "$@"
Thanks for the 10.10 Maverick Meerkat update!
Thank you very much
Huge huge thanks for the tip! Finally back to enjoying the great veetle streams
Thank you very much! This saved me rebooting to windows to watch Veetle in Ubuntu 10.04 64-bit(using Google Chrome 32 bit version).
I am using the following:
#!/bin/sh
exec ~/.veetle_vlc/vlc_32 –aout alsa –alsadev front “$@”
front is the alsa device name of the Logitech USB Speakers connected through USB.
Thank you once again!
This worked flawless on 10.04, but even your new fix didn’t solve my problem on 10.10.
I hope we find a good fix, and thanks!
Great advise. On ubuntu 10.04 everything was working great. For some reason I have updated my netbook to 10.10 and old solution don’t work, new one for 10.10 makes my browser stop. Help i do love vettle.
all best
Stefan
Awesome! That worked. Simple steps. Thanks a lot dude.
Hello, nice blog! Just thought I would say thanks as I read your site with keen interest. As I am trying to educate myself on this topic and your article was helpul.I have saved your site to my favourites and I look forward to reading more from you.
This works fantastically! Thanks!
thats works great for me, 10.04.
how did you find it?
thanks, i can waste my time again…
Hey, thanks it works perfectly.
Thanx!
I’ve been looking for a solution to this problem for quite some time.
In 10.10 if your browser freezes try removing the file ‘libveetle-broadcast-plugin.so’ from the directory ‘home/.mozilla/plugins’
If you have the freezing browser issue try deleting libveetle-broadcast-plugin.so from your HOME/.mozilla/plugins folder
in ubuntu 10.10 the second solution worked ok for me .Thank you very much
Thanks a lot for this. I try to watch football tonight via Veetle, but with the audio out of sync it wasn’t a pleasure to do. With your guide that was easy fo follow, the problem is now solved. Thank you for that
This worked for me
#! /bin/sh
exec ~/.veetle_vlc/vlcori –aout sdl “$@”
Thanks, dude!
Worked like a charm!
Brilliance. It did not work until using the
#! /bin/sh
exec ~/.veetle_vlc/vlcori –alsadev 0 “$@”
great work guys. keep it up
Works great! Cheers
Thanks, you helped me a lot!
Thank you, I went from being aprox 3-5 seconds behind in audio to acceptable 0.4-0.5
thanks for the help. your solution worked for me.
now audio is in sync with video in ubuntu 10.10
For just general information for any user who does not prefer to use the GUI tools, I followed the article and did the Meerkat fix just by using the command line.
First, I opened a terminal by doing
Applications->Accessories->Terminal.
Next, I typed in the following commands (or by copying the entire set and pasting the entire set into the terminal should also work).
# start
cd ~/.veetle_vlc
mv vlc vlc.ORIG
> EmptyFile
echo ‘#!/bin/sh’ > EmptyFile
echo ‘exec ~/.veetle_vlc/vlc.ORIG –alsadev 0 “$@”‘ >> EmptyFile
mv EmptyFile vlc
chmod u+x vlc
# end
DONT FOLLOW THESE INSTRUCTIONS BECAUSE THEY WONT WORK ON UBUNTU 10.10 I FINALLY GOT IT!
OK! I FINALLY GOT IT WORKING ON UBUNTU 10.10 PERFECTLY IN SYNC! OPEN TERMINAL AND TYPE THIS : sudo apt-get autoremove pulseaudio THATS IT!
SPREAD THE LOVE…
Hi,
Thanks for the solution. The only thing i did to make it work is i executed the file as a program.
Thank you so much !
Works perfectly !
THANKS !
thINKS fOR the information, got it now.^#^
use
exec padsp ~/.veetle_vlc/vlcori –aout oss “$@”
and you can route with pulse
thank you!
It works perfectly with my 11.04 version.
I;m on Ubuntu 11.04
That seems to have installed without problem over 0.9.17.
Now the audio sync problem is fixed. Great thanks.
Well it’s almost perfect. The audio is like 0.1 sec behind the video.
works perfect and im a noob at linux just switched from xp 2 weeks
i downloaded the install.sh version and had it open as a program then opened it using terminal a few seconds later refreshed veetle and JOB DONE QUALITY VIEWING
Awesome, thanks so much! Works perfectly on Linux Mint 9.
Installed fine but I have an almost 10 second out of synch sound – before installing I was able to see some video @ veetle with good sync