Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-29-2020, 09:54 PM
|
#1
|
Member
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106
Rep:
|
Blu-ray and DVD rip
Disclaimer: I own the DVD's and Blu-rays in question.
I got the DVD rip down using variations of this mplayer script. When it does fail from time to time, depending on how heavy handed the digital restrictions management is, vobcopy is my go-to.
My workflow is:
Code:
chown -R user: /dev/sr0
This avoids repeated sudo commands
Gets contents of DVD
Code:
#!/bin/bash
echo "What Series is this?"
read series
echo "Series: $series"
echo "Which disc # is this?"
read disknum
echo "This is disk #$disknum"
episode=1
for track in 1 3 5
do
mplayer dvdnav://$track -dvd-device /dev/sr0 -dumpstream -dumpfile `pwd`"/"$series"_D"$disknum"E"$episode.mpg
episode=$((episode+1))
#var=$((var+1))
done
Selects and rips episode.
If that fails:
Code:
vobcopy -nX /dev/sr0
X being the track number
So I recently got a Blu-ray drive connected to my Raspberry Pi 2, running Fedora. My proof of concept idea is to use the Makemkv libraries copied from a working Makemkv install on my laptop to the Pi. From here symlink them to the correct location for mplayer to allow decryption on the fly.
https://www.makemkv.com/forum/viewtopic.php?t=7009
Quote:
Firstly, make sure that the open-source libaacs is not installed - there can be only one libaacs in the system. On debian-based distribution execute the following command to remove stock libaacs
Code:
sudo apt-get remove libaacs0
Then, open terminal, navigate to directory where libmmbd is installed, and make a symlink to libaacs and libbdplus. The following commands are for default installation
Code:
cd /usr/lib sudo ln -s libmmbd.so.0 libaacs.so.0 sudo ln -s libmmbd.so.0 libbdplus.so.0
You're done. From now on VLC will automatically use MakeMKV for blu-ray decryption.
|
The purpose would be to have a headless Raspberry Pi in order to play the Blu-ray (in this case, The Life of Pi) on mplayer and dump the output to an mpg container. Later this would be off-loaded to my Pi4 to re-encode to work on the network for Kodi.
-Thanks for your input.
|
|
|
01-30-2020, 02:39 PM
|
#2
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Is there a question?
FWIW, all this seems a little antiquated & complicated
Sorry, you asked for input.
I'd just search my package manager for 'rip dvd'
Possibly use something mpv/ffmpeg-based.
A lightweight media server for your pi, is that what you want?
Playing DVDs and streaming them into the network?
I'm sure VLC can do that, too.
|
|
|
01-30-2020, 06:47 PM
|
#3
|
Member
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106
Original Poster
Rep:
|
Re: Is there a question?
In the last part of my post, I mentioned trying to have Makemkv work on raspberry pi, not just an x86 or AMD.
The reason I specifically said 'proof of concept', is because I didn't know if either it was worth the effort to try,
or if anyone else had this idea, with the exception of one poster on the Makemkv forums in 2013.
https://www.makemkv.com/forum/viewtopic.php?t=6632
What I do have:
Pi 2 to rip media
Pi 3 for Kodi
Pi 4 to re-encode videos and serve video on a samba share
Also, part of the post was a reference for myself or others with similar ideas.
Antiquated may be a true description, but it is stable for me, and is more quiet than running a desktop to do the task at hand.
|
|
|
02-03-2020, 12:53 AM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
So you have 3 pis, 1. is only for ripping, 2. is for serving the ripped stuff through Kodi (streaming I guess this should be called), and 3. is for re-encoding the ripped stuff and serving it through samba?
What distros are running on the pis?
Quote:
Originally Posted by ricemark20
Antiquated may be a true description, but it is stable for me, and is more quiet than running a desktop to do the task at hand.
|
Do you mean you prefer automated command line solutions that run on a headless machine?
Not sure how you can automate the ripping, though. You have to be there to put the DVDs in the drive etc.
Instead of dumping the raw stream with mplayer (and "in case thatfails...") I would use a dedicated software; I use dvdbackup.
For transcoding an ffmpeg oneliner (or script) is most likely the way to go in 2020.
The streaming is taken care of through Kodi, yes?
Anyhow, your hackish solutions (symlinking libraries) beg the question: what distro are you running on those pis. I'm no expert, but I know support & development is good, so it seems you're doing something wrong.
Quote:
Originally Posted by ricemark20
Also, part of the post was a reference for myself or others with similar ideas.
|
Maybe a blog would be more appropriate; you can have one right here on LQ.
Again: it's your business how you do this, but you asked for input.
|
|
|
02-03-2020, 09:36 AM
|
#5
|
Member
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106
Original Poster
Rep:
|
Blu-ray and DVD rip
Point taken on the hackiness of using the blu-ray libraries, and also about the blog on LQ. I am looking at Hugo also as a static blogging platform.
Oh, as for the one liner, I do use ffmpeg for encoding the rip.
Code:
#!/bin/bash mkdir encoded
for f in *.mpg;
do
ffmpeg -i $f -b:a 128k -b:v 2000k -vcodec mpeg4 "encoded"/"`basename -s .mpg $f`.mkv"
done
So at least I got that right. ;-)
|
|
|
02-04-2020, 11:46 AM
|
#6
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
^ Lacks quotes around "$f".
|
|
|
02-11-2020, 08:24 PM
|
#7
|
Member
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106
Original Poster
Rep:
|
Thank you ondoho. Finally got moving on getting ripping and encoding done on the same Raspberry Pi 4 running slackware.
The second Pi is still running Kodi on Raspbian, due to problem compiling it on slackware.
The only reason the Pi's were used for different functions was that the ethernet was in a different room than the entertainment center,
and I had heard it was best to keep a file server on ethernet only.
I may consider using Docker or try compiling Kodi again. For now this is solved.
|
|
|
08-22-2020, 05:54 AM
|
#8
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Rep: 
|
Hi, Interesting thread, similar to what I was encountering and I used lsdvd and HandBrakeCLI check out my latest thread https://www.linuxquestions.org/quest...it-4175680798/
|
|
|
All times are GMT -5. The time now is 11:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|