Home > Linux > Fix Audio out of sync with video on veetle and Ubuntu 11.04

Fix Audio out of sync with video on veetle and Ubuntu 11.04

Posted on May 6, 2010 | 58 Comments

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,

8) 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 "$@"

Comments:43

  1. Zebastian Reply
    10/06/06

    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.

  2. 10/06/06

    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)

  3. Zebastian Reply
    10/06/10

    Wow! Thanks!
    You changed my life… The World Cup is about to start and you know….
    Gracias.

  4. Frank Reply
    10/06/28

    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

  5. dingo Reply
    10/06/29

    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.

  6. Raza Reply
    10/08/08

    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?!

  7. 10/08/09

    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

  8. 10/08/20

    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

  9. 10/08/20

    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 "$@"

  10. Stonewall Reply
    10/09/09

    Thanks for the 10.10 Maverick Meerkat update!

  11. Kimaira51 Reply
    10/09/12

    Thank you very much

  12. Marty Reply
    10/09/15

    Huge huge thanks for the tip! Finally back to enjoying the great veetle streams :)

  13. Jets Reply
    10/10/10

    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!

  14. Zach Reply
    10/10/13

    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!

  15. 10/10/21

    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

  16. Veetle Reply
    10/10/27

    Awesome! That worked. Simple steps. Thanks a lot dude.

  17. 10/11/07

    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.

  18. dan Reply
    10/11/14

    This works fantastically! Thanks!

  19. yesples Reply
    10/12/09

    thats works great for me, 10.04.
    how did you find it?
    thanks, i can waste my time again…

  20. blu62 Reply
    10/12/28

    Hey, thanks it works perfectly.

  21. chunkylover23 Reply
    11/01/09

    Thanx!

    I’ve been looking for a solution to this problem for quite some time.

  22. Mike Reply
    11/01/11

    In 10.10 if your browser freezes try removing the file ‘libveetle-broadcast-plugin.so’ from the directory ‘home/.mozilla/plugins’

  23. Mike Reply
    11/01/15

    If you have the freezing browser issue try deleting libveetle-broadcast-plugin.so from your HOME/.mozilla/plugins folder

  24. Toni Halcon Reply
    11/01/15

    in ubuntu 10.10 the second solution worked ok for me .Thank you very much

  25. 11/01/26

    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 :)

  26. 11/02/05

    This worked for me
    #! /bin/sh
    exec ~/.veetle_vlc/vlcori –aout sdl “$@”

  27. anonymous Reply
    11/02/09

    Thanks, dude!

    Worked like a charm!

  28. 11/02/15

    Brilliance. It did not work until using the
    #! /bin/sh
    exec ~/.veetle_vlc/vlcori –alsadev 0 “$@”

    great work guys. keep it up

  29. mugs Reply
    11/02/17

    Works great! Cheers

  30. bananero Reply
    11/02/20

    Thanks, you helped me a lot!

  31. Chris Kant Reply
    11/02/23

    Thank you, I went from being aprox 3-5 seconds behind in audio to acceptable 0.4-0.5

  32. owlkohaulic Reply
    11/02/25

    thanks for the help. your solution worked for me.
    now audio is in sync with video in ubuntu 10.10

  33. Andre Mikulec Reply
    11/03/14

    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

  34. Gabe Reply
    11/05/04

    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…

  35. 11/05/16

    Hi,
    Thanks for the solution. The only thing i did to make it work is i executed the file as a program.

  36. Antoine Reply
    11/06/02

    Thank you so much !
    Works perfectly !

    THANKS !

  37. 11/07/11

    thINKS fOR the information, got it now.^#^

  38. eightdollarber Reply
    11/08/07

    use
    exec padsp ~/.veetle_vlc/vlcori –aout oss “$@”
    and you can route with pulse

  39. mezza Reply
    11/09/04

    thank you!
    It works perfectly with my 11.04 version.

  40. Paul Reply
    12/01/21

    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.

  41. ziganzags Reply
    12/01/25

    works perfect and im a noob at linux just switched from xp 2 weeks :-D
    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 :-D

  42. Maiguel Reply
    12/02/29

    Awesome, thanks so much! Works perfectly on Linux Mint 9.

  43. Rizoral Reply
    12/03/12

    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 :(

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Pingbacks:15

trackback from CHARLIE December 18, 2010

████████►BUY CIALIS◀████████…

▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲…

trackback from TODD December 21, 2010

buy pure acai berry

Buyno prescription…

trackback from JEFFREY December 22, 2010

cephalexin dosage for dogs

Buygeneric drugs…

trackback from RICARDO December 28, 2010

.

Buynow…

trackback from SERGIO December 30, 2010

Buygeneric drugs…

trackback from CHRISTIAN December 30, 2010

Buyno prescription…

trackback from JEROME December 31, 2010

Buygeneric meds…

trackback from SIDNEY December 31, 2010

.

Buygeneric drugs…

trackback from RAYMOND January 1, 2011

..

Buynow it…

trackback from CECIL January 2, 2011

.

Buydrugs without prescription…

trackback from LUKE January 3, 2011

.

Buynow it…

trackback from TYLER January 21, 2011

..

Buyit now…

trackback from KIRK January 21, 2011

Buyit now…

trackback from DENNIS January 21, 2011

.

Buygeneric drugs…

trackback from JESSE January 21, 2011

.

Buyno prescription…