LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using dd to create an iso file of a dvd (https://www.linuxquestions.org/questions/linux-newbie-8/using-dd-to-create-an-iso-file-of-a-dvd-4175733398/)

GPGAgent 01-31-2024 04:40 PM

Using dd to create an iso file of a dvd
 
I use dd to archive my dvd's as an iso file
This way I can use vlc to play the iso file like a dvd
A few dvd's don't play once the iso is ceated, but only after I've removed the dvd from the drive and moved on to a new didk.
While the didk is still in the drive and the iso has been created I can play the iso file, and use HandBrakeCLI to process the titles. Once the dvd is removed none of this works.

I'm guessing vlc loads the dvd decryption libraries, you can see this happening when you play the dvd or the iso (if it plays) by the blocky nature of the playback as the decryption process does it's work.

My question is what and how do I identify and load the decryption libraries so that vlc and HandBrakeCLI will work?

In the meantime I'll just use MakeMKV

lvm_ 01-31-2024 11:19 PM

You probably need libdvdcss https://www.videolan.org/developers/libdvdcss.html

arespi 02-01-2024 09:46 AM

Hi , What I do is to take the .vob files inside the VIDEO_TS folder and rename them .mpg. Then they can be played by vlc.
If you need to make them a single file just cat file1 file2 .. fileN > final_file

GPGAgent 02-01-2024 11:15 AM

Quote:

Originally Posted by arespi (Post 6480678)
Hi , What I do is to take the .vob files inside the VIDEO_TS folder and rename them .mpg. Then they can be played by vlc.
If you need to make them a single file just cat file1 file2 .. fileN > final_file

This disk doesn't allow me tp copy the vob files, I get a splicimg error, but I could use dvdbackup with the -M option
Code:

dvdbackup -i /dev/sr0 -M
But using MakeMKV is simpler.

And you don't need to rename them to .mpg files, leaving them as VOBs works just fine, even when concatenating them.

GPGAgent 02-01-2024 11:17 AM

Quote:

Originally Posted by lvm_ (Post 6480596)

It is installed, that's why VLC works and can play the DVD
Code:

ie:~$ /sbin//ldconfig  -p|grep dvdc
        libdvdcss.so.2 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libdvdcss.so.2

So why can't VLC play the iso file created by dd?

lvm_ 02-01-2024 11:39 AM

Start vlc from the command line and examine the output.

GPGAgent 02-01-2024 01:06 PM

Quote:

Originally Posted by lvm_ (Post 6480696)
Start vlc from the command line and examine the output.

Of course, and I'm guessing this is the crucial line
Code:

[00007fa8a4169cd0] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  340.108  Wed Dec 11 14:31:24 PST 2019 for hardware decoding
and this was all the preamble beforehand
Code:

lie:~$ qvlc dvd://
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
qt5ct: D-Bus system tray: no
libdvdnav: Using dvdnav version 6.0.1
libdvdnav: DVD Title: DVDVolume
libdvdnav: DVD Serial Number: c7ef85d9       
libdvdnav: DVD Title (Alternative): DVDVolume
libdvdnav: DVD disk reports itself with Region mask 0x00fd0000. Regions: 2

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000142
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000349
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00003371
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00003407
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0010ae95
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0010af2b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x0021fa18
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x0021faae
libdvdread: Elapsed time 0
libdvdread: Found 4 VTS's
libdvdread: Elapsed time 0
[00007fa898002e20] egl_x11 gl error: cannot select OpenGL API

And the libavcodec library is here:
Code:

lie:~$ /sbin//ldconfig  -p|grep libavcodec
        libavcodec.so.58 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libavcodec.so.58
        libavcodec.so.58 (libc6) => /usr/lib/i386-linux-gnu/libavcodec.so.58
        libavcodec.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libavcodec.so

So the question is how to run this when playing the iso backup file?

GPGAgent 02-01-2024 01:18 PM

Okay I've made a bit of progress, I ran qvlc on the iso file and it fails on one title, title 4, the rest play just fine
Also playing the iso file it reports an error opening BDMV/index.bdmv and BDMV/backup/index.bdmv
Code:

qvlc /media/jonke/SEAG_5TB/FILES/DVDs/TheSandbaggers/DISK03/D03.iso
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
qt5ct: D-Bus system tray: no
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list((null)) failed
libdvdnav: Using dvdnav version 6.0.1
libdvdnav: DVD Title: DVDVolume
libdvdnav: DVD Serial Number: c7ef84e2       
libdvdnav: DVD Title (Alternative): DVDVolume
libdvdnav: DVD disk reports itself with Region mask 0x00fd0000. Regions: 2

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000145
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000034b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00003373
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00003409
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x000e1a79
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x000e1b0f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x001e7424
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x001e74ba
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_04_1.VOB (0x001e74ba)!!
libdvdread: Elapsed time 67

So it's getting there but not quite


All times are GMT -5. The time now is 03:07 AM.