Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Video playlists

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2430

PostPosted: Fri Aug 17, 2012 8:14 pm    Post subject: Video playlists Reply with quote

I thought I'd asked before, but apparently I haven't... Here it goes then:

For an upcoming event I need to show a number of video's. These will be on the harddrive of a Debian machine, so far as iso files. Unfortunately they require manual input to get them started as dvd's. I already figured I'd need a playlist to play them in sequence, and the playlist should start pretty much automagically after booting up. The latter can be done with a simple script (like: "wait 30 sec's, execute playlist") but I'm a bit stuck on the manual input.

Any suggestions? Transcode (dvd::rip) still doesn't work...
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8450
Location: Warrington, UK

PostPosted: Fri Aug 17, 2012 9:02 pm    Post subject: Reply with quote

Code:
for file in list of files; do
  mplayer -dvd-device $file dvd://1
done


will play title 1 of each ISO.

Alternatively, you can extract the titles you want with

Code:
mplayer -dumpstream -dumpfile mymovie.mpg -dvd-device mymovie.iso dvd://$titlenum

_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2430

PostPosted: Wed Aug 22, 2012 3:00 am    Post subject: Reply with quote

Thanks (again) Nelz. I figured there must be an easier way to get round it and there is... First, transcode the dvd's to .ogm then list them all in an m3u file. SMplayer handles it all, I assume Totem does too. I've tried it with some .vob files and it transitions between files (almost) invisible. Almost there, just the transcoding to do... The first took almost 12 hours Shocked Evil or Very Mad Maybe just use the .vob files then... Rolling Eyes Wink
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8450
Location: Warrington, UK

PostPosted: Wed Aug 22, 2012 9:29 am    Post subject: Reply with quote

Or use mplayer -dumpstream to rip the MPEG stream fro the DVD without transcoding, which goes as fast as your DVD drive can read the disc.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2430

PostPosted: Wed Aug 22, 2012 10:34 am    Post subject: Reply with quote

Good tip, thx!
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2430

PostPosted: Wed Sep 19, 2012 1:44 am    Post subject: Reply with quote

Quick update: In the end I decided to convert the .VOB files I ripped from the dvd's into an mp4 (actually m4v) file using Handbrake. After that, I found a bash command to list all these m4v files in a single text file, which I modified to include their full paths:
Code:
find ~/ -type f -iname "*.m4v" >> playlist.m3u

(link)

Next, instruct SMplayer (the player of choice in my case, you might make a different one based on your preferences) to play the files from the playlist and at the same time, have it run full-screen and from a script:
Code:
#!/bin/bash

smplayer -fullscreen playlist.m3u &
Save as smplayer.sh in the home dir of the user running the video (I created an extra user for this). Finally, to start the playlist at boot time, add the smplayer.sh script (make it executable!) to the startup sequence for that user. I've done it the "easy" way, via the method described here: link

To be complete, I modified the login manager so it now automagically boots to the extra user I created for this purpose. It then starts SMplayer using the playlist specified. You can kill that with Alt-F4 instantly, so one can perform normal tasks on the machine Smile

HTH!
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast