Warning: session_start(): open(/tmp/sess_clbgj8mfleevmsatqecm27jil6, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
Autoplay Videos openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans  .- Knowledge Base  . 

Autoplay Videos

   1  

Amarok Script

Score 73%
Autoplay Videos
zoom


Link:  http://
Downloads:  735
Submitted:  Jan 2 2008
Updated:  Jan 2 2008

Description:

This script automatically starts a video player when a video file is played in Amarok.

Details:
Videos are detected by the file extension. For streamed videos, Amarok is paused to avoid double bandwidth use. For local videos, Amarok is also paused, but playback is restarted after 5 seconds with volume set to zero. This way the play is simulated in Amarok to allow scoring (and, for taggable video formats like asf, mkv or mp4, scrobbling...yes, you can add music videos to your collection). Unfortunately it is still not possible to control the video from Amarok, but hey, Amarok is not a video player :)
When another file is played, the external player will be killed and the volume restored.

By default the script uses mplayer (You have to edit the script to choose another player). To achieve the impression that the video is played in the context browser, you can use kwin's special window settings (enable "No Border" and "Keep Above"... "Remember position" doesn't seem to work...but you can enter a line like "geometry=WxH+x+y" in ~/.mplayer/config).

Also this script only works with files supported by the engine used in Amarok (ironically)...But with xine this should be almost anything.

_____ LATEST CHANGES _____
! the volume got wrongly reset when changed during playback
+ added README




LicenseGPL
Send to a friend
Subscribe
Other  Content  from camico
Report inappropriate content



-

 Nice but late

 
 by eeproms on: Jan 3 2008
 
Score 50%

Considering Amarok 2.0 is around the corner and should have video support thanks to phonon this will be a short lived hack.


Sometimes in this age of high technology the best tool is a rock.
Reply to this

-

 Re: Nice but late

 
 by camico on: Jan 18 2008
 
Score 50%

sure it is only a quick hack...but quoting a recent statement of the amarok founder: "No, 2.0 won't have video support. A later version might integrate rudimentary support for playing music videos and such, but this is not yet decided."


Reply to this

-

 I like it...

 
 by Contrast on: Jan 25 2008
 
Score 50%

Nice idea. I'm wondering how feasible/practical it'd be to add functionality to this so that it would look in a user-defined directory for a video for every song played. The video files would obviously have to be properly named - something like "%artist - %title" - for this to work.


Reply to this

-

 Re: I like it...

 
 by camico on: Jan 27 2008
 
Score 50%

you mean like a kind of visualization plugin? so whenever there is a video, pause the audio and take the video instead? yeah, why not, wouldn't be that difficult to do. maybe i'll include it some time. if anyone wants to help, please go ahead.


Reply to this

-

 Kinda bummed

 
 by the7erm on: Jan 27 2008
 
Score 50%

I just got done working a script that was almost exactly like this, but you had a better way of approaching it. Good job. I took mine down because I know a better product when I see it.

I really should have checked the site before I started working on mine ...


always tip the pizza guy he knows where you live.
Reply to this

-

 Re: Kinda bummed

 
 by camico on: Jan 28 2008
 
Score 50%

oh thanks (and sorry ;)
what was your approach then?


Reply to this

-

 Re: Re: Kinda bummed

 
 by the7erm on: Jan 28 2008
 
Score 50%

Pretty much the same as yours, but I didn't check to see if the track had changed, or set the volume ... Mine stopped the playing track, and then started playing.

Yours was a better approach.

You might want to consider processing the mplayer thread output and look for === paused === then pause amarok ... just an idea.

I'd do it but I don't know ruby, but looking at your script I like the language.

Thread{} looks like a really useful function.


always tip the pizza guy he knows where you live.
Reply to this

-

 Doesn't work

 
 by prol on: Mar 18 2008
 
Score 50%

It doesnt work for me. Amarok doesnt load video files into the playlist.Pls help


Reply to this

-

 Re: Doesn't work

 
 by camico on: Mar 19 2008
 
Score 50%

you are right, m4v files can't be loaded, but that is a limitation in amarok or the xine-engine...the only solution i can think of currently is to rename the file, for example to .mp4 or .mpg


Reply to this

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team