| View previous topic :: View next topic |
| Author |
Message |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2353
|
Posted: Fri Aug 17, 2012 8:14 pm Post subject: Video playlists |
|
|
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 |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 7993 Location: Warrington, UK
|
Posted: Fri Aug 17, 2012 9:02 pm Post subject: |
|
|
| 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 |
_________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2353
|
Posted: Wed Aug 22, 2012 3:00 am Post subject: |
|
|
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 Maybe just use the .vob files then...  |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 7993 Location: Warrington, UK
|
Posted: Wed Aug 22, 2012 9:29 am Post subject: |
|
|
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. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2353
|
Posted: Wed Aug 22, 2012 10:34 am Post subject: |
|
|
| Good tip, thx! |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2353
|
Posted: Wed Sep 19, 2012 1:44 am Post subject: |
|
|
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
HTH! |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|