Best DVD-Video to minimal sized compressed video file

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#16 by Rava » 05 Nov 2020, 22:41

ncmprhnsbl wrote:
05 Nov 2020, 21:59
that doesn't look like the correct command for mpv..
https://wiki.archlinux.org/index.php/Mpv#Play_a_DVD
mpv dvd:// or mpv dvd://[title]
You are correct and I am a moron.
Image
Where got I my faulty syntax from? A webpage describing a HOWTO and they claimed that being the foolproof way in determining if deCSS works. And moron me just followed that advice for years and it failed every time. *megaheaddesk*
:oops:
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#17 by Rava » 05 Nov 2020, 22:46

HandBrake 1.3.3 is the newest version, but the newest Slackware one I found is HandBrake-1.0.7-x86_64-3_slonly.txz

Does anyone know where to get the compiled 1.3.3, for running in Port 5.0?

I tried downloading the Debian version from the maintainer and got this;

Code: Select all

root@porteus:/home/guest/Downloads# file HandBrake-1.3.3-x86_64.flatpak 
HandBrake-1.3.3-x86_64.flatpak: data
What is flatpak? Can you smoke it? How to convert it into a xzm?

Downloaded handbrake-gui-1.3.3-10.fc33.x86_64.rpm and HandBrake-1.3.3-5.fc34.x86_64.rpm
Converted to xzm and activated both. handbrake-gui misses stuff

Code: Select all

$ ldd /usr/bin/ghb|grep not
	libgstpbutils-1.0.so.0 => not found
	libgstaudio-1.0.so.0 => not found
	libgstvideo-1.0.so.0 => not found
	libgsttag-1.0.so.0 => not found
	libx264.so.159 => not found
	libx265.so.192 => not found
	libmfx.so.1 => not found
	libnuma.so.1 => not found
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3925
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Best DVD-Video to minimal sized compressed video file

Post#18 by ncmprhnsbl » 05 Nov 2020, 23:13

Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#19 by Rava » 06 Nov 2020, 02:41

I wonder about the file sizes. The above only has handbrake* versions. In other repositories handbrake* version seems to be the CLI only version due to its size, compared to the GUI one:

Code: Select all

# du  HandBrake-1.3.3-5.fc34.x86_64.xzm handbrake-gui-1.3.3-10.fc33.x86_64.xzm
368	HandBrake-1.3.3-5.fc34.x86_64.xzm
13148	handbrake-gui-1.3.3-10.fc33.x86_64.xzm
Both are based on x86-64 rpm versions.

While the file in your link only names itself handbrake* without any GUI in its name, but the size suggests it is not just the mere CLI-only version but the GUI one:

Code: Select all

# du handbrake-1.3.2-x86_64-1alien.xzm 
29764	handbrake-1.3.2-x86_64-1alien.xzm
Which is confusing. Why not add GUI or gui to the name when it contains any kind of GUI? Especially when it seems the CLI-only version just names itself handbrake* or HandBrake*
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#20 by Rava » 06 Nov 2020, 02:55

Aside from the naming issue described above, handbrake-1.3.2-x86_64-1alien.txz is the GUI and CLI version:

Code: Select all

guest@porteus:/mnt/live/memory/images$ ls -o handbrake-1.3.2-x86_64-1alien.xzm/usr/bin/
total 96875
-rwxr-xr-x 1 root 46578760 May 11 17:50 HandBrakeCLI
-rwxr-xr-x 1 root 52620704 May 11 17:50 ghb
It also not works out of the box

Code: Select all

$ ghb
ghb: error while loading shared libraries: libgstpbutils-1.0.so.0: cannot open shared object file: No such file or directory
While it is not the most recent 1.3.3 I much appreachiate its lower need of libraries compared to handbrake-gui-1.3.3-10.fc33.x86_64 I quoted in an above post

Code: Select all

$ ldd /usr/bin/ghb |grep not
	libgstpbutils-1.0.so.0 => not found
	libgstaudio-1.0.so.0 => not found
	libgstvideo-1.0.so.0 => not found
So I try getting these libraries and have a Porteus like approach to all matters software: use the minimal dependency version while using the most up to date version. Which is just one version off from the most recent one, which is way never than the actual official Slackware packages which have all been 1.0.* versions (at least all I found when searching have been).
Last edited by Rava on 06 Nov 2020, 03:01, edited 1 time in total.
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Best DVD-Video to minimal sized compressed video file

Post#21 by donald » 06 Nov 2020, 09:22

@Rava
There is also vobcopy,if you prefer/like a small [47kB] cli tool.
vobcopy-1.2.0-x86_64-3_slonly.txz
It uses libdvdread, which is included in port 5, and libdvdcss.
Tested > works. B)

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#22 by Rava » 06 Nov 2020, 10:15

handbrake-1.3.2-x86_64-1alien.xzm

Code: Select all

guest@porteus:/mnt/live/memory/images$ l handbrake-1.3.2-x86_64-1alien.xzm/usr/bin/
total 96875
drwxr-xr-x 2 root       46 2020-05-11 17:50 .
drwxr-xr-x 5 root       50 2020-05-11 17:50 ..
-rwxr-xr-x 1 root 46578760 2020-05-11 17:50 HandBrakeCLI
-rwxr-xr-x 1 root 52620704 2020-05-11 17:50 ghb
has CLI and GUI version (=ghb)

Code: Select all

guest@porteus:/mnt/live/memory/images$ ldd /usr/bin/ghb |grep not
	libgstpbutils-1.0.so.0 => not found
	libgstaudio-1.0.so.0 => not found
	libgstvideo-1.0.so.0 => not found
guest@porteus:/mnt/live/memory/images$
needs at least less additional libraries than the above.
One missing library might still need another not-here-listed library, though.

Is there an automated approach in fixing dependencies, now that usm is no longer part of Porteus since of 5.0?
donald wrote:
06 Nov 2020, 09:22
There is also vobcopy,if you prefer/like a small [47kB] cli tool.
vobcopy-1.2.0-x86_64-3_slonly.txz
It uses libdvdread, which is included in port 5, and libdvdcss.
Tested > works. B)
There are two parts to all that: copy the VOBs which are mere MPEG-4 files.
Convert them to a smallest file size while keeping the quality highest.

vobcopy, when I recall correct, only does the copying. Then I would be at the stage of using my mediocre encoding skills (I mentioned that in my OP)

handbrake copies the VOBs and also encodes, and hopefully to a higher compression rate than my ffmpeg mediocre encoding skills got me so far.
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Best DVD-Video to minimal sized compressed video file

Post#23 by donald » 07 Nov 2020, 04:57

vobcopy, when I recall correct, only does the copying
Yes, but the files are now "unlocked" [no css] so one can use any
video-program [Avidemux?] and ffmpeg too to do their magic.

What file size do you expect / need?
do you need a 2nd audio stream,subtitles..?

However, for a quick result copy the vobs of the main video [vobcopy]
combine them

Code: Select all

cat *.vob > moviename.vob
and if one has absolutely no idea about ffmpeg, use

Code: Select all

ffmpeg -i moviename.vob -c:v libx264 -preset slow -crf 22 -c:a copy output.mp4
But yes, HandBrake would be easier i think.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#24 by Rava » 07 Nov 2020, 05:57

donald wrote:
07 Nov 2020, 04:57
What file size do you expect / need?
full movie 400MB or less
donald wrote:
07 Nov 2020, 04:57
do you need a 2nd audio stream,subtitles..?
at times.

For now not even managed to get all handbrake-1.3.2-x86_64-1alien.xzm dependencies…
donald wrote:
07 Nov 2020, 04:57
However, for a quick result copy the vobs of the main video [vobcopy]
combine them

Code: Select all

cat *.vob > moviename.vob
For the newbie: make sure it is only the vobs of the main video just like donald wrote, when you copy the menus as well the result might not be what you want.

I prefer

Code: Select all

cat *.vob > moviename.mpg
or

Code: Select all

cat *.vob > moviename.mp4
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Best DVD-Video to minimal sized compressed video file

Post#25 by donald » 07 Nov 2020, 07:34

full movie 400MB or less
That's not much - how long / big is the original video?

It's been years since I compressed a DVD-Video with reasonable quality down to 700MB
to fit on a single CD.

I have lost patience waiting for compression jobs to complete. :)

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#26 by Rava » 07 Nov 2020, 07:45

donald wrote:
07 Nov 2020, 07:34
That's not much - how long / big is the original video?
the usual 90 min.
donald wrote:
07 Nov 2020, 07:34
It's been years since I compressed a DVD-Video with reasonable quality down to 700MB
to fit on a single CD.
that were the days. nowadays with all being online priorities shifted.
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Best DVD-Video to minimal sized compressed video file

Post#27 by donald » 08 Nov 2020, 08:54

Hi Rava
..any progress?. :)

Regarding the 90min / 400MB taget, try this:

Code: Select all

ffmpeg -i moviename.vob -c:v libx264 -b:v 500k -c:a aac -b:a 96k output.mp4
Use a short part of the targed video [~ 10min] to check the compression/video quality.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#28 by Rava » 08 Nov 2020, 12:02

donald wrote:
08 Nov 2020, 08:54
Hi Rava
..any progress?. :)
Hi donald with the three libraries, no, not had yet the time.
donald wrote:
08 Nov 2020, 08:54
Regarding the 90min / 400MB taget, try this:

Code: Select all

ffmpeg -i moviename.vob -c:v libx264 -b:v 500k -c:a aac -b:a 96k output.mp4
Use a short part of the target video [~ 10min] to check the compression/video quality.
Will do, I have several ffmpeg scripts, and most have a variant that lets me encode only a few minutes, sometimes with a offset (as in: skipping at the beginning and starting later) when the title sequence is too simple (like black background and simple large font, hardly useable to Dreisatz-calculate the approx filesize for the whole video)

LOL, the Streisand effect seems to be ubiquitous even when it makes no sense at like, like just now:
Image
Cheers!
Yours Rava

User avatar
M. Eerie
Moderator
Moderator
Posts: 620
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Best DVD-Video to minimal sized compressed video file

Post#29 by M. Eerie » 14 Nov 2020, 21:09

I'm late to the party, but this is how I did my last attempt at ripping DVD's once I rescued and updated my notes on that.

This would take a 3 min. sample output of the original source compressed with h.265 video codec while subtitles and audio are passed through (copied without being transcoded).

Code: Select all

vobcopy -Mlo - | ffmpeg -analyzeduration 100M -probesize 100M \
-i - -map 0 -map -0:0 -c:s copy -c:a copy \
-c:v libx265 -crf 23 -preset veryfast \
-vf yadif=1,hqdn3d,"$cropvalue":keep_aspect=1 \
-t 180 -threads 0 -y 3min-test.mkv
Crop value was obtained by:

Code: Select all

cropvalue=`vobcopy -Mlo - | ffmpeg -i - -ss 600 -t 1 -vf cropdetect -f null - 2>&1 | awk '/crop/ { print $NF }' | tail -1`
(takes some seconds to complete because it jumps 600 seconds and then applies the crop detection filter).

Some explanation follows:
analyzeduration 100M and probesize 100M, allows ffmpeg to detect available subtitle streams. Should ffmpeg not detect any subtitle stream, try to increase the value to something like 200M each.

-map 0 and -map -0:0 instructs ffmpeg to parse all streams (map 0), but the first one (map -0:0), so the dvdmenu is avoided.

The next 2 lines, are the ones involved in video processing where some video filters (vf) are added, including deinterlace (yadif), hi-quality denoise (hqdn3d), cropping and scaling (the ones I commonly use). When scaling 720:-1 you tell ffmpeg to size the output to 720 px width and calculate the height according to the display aspect ratio (although I need to check later versions of ffmpeg).

Finally -t 180 tells ffmpeg to process only 180 seconds of video and threads 0 pulls from all available cores to the task.

Of course you should change the above values to the ones suiting your needs, but h265 codec delivers for more compression than h264 one.

Be aware that maybe not all your devices are compatible with h265 codec.

Hope it helps.

(Edited the -map section)

Cheers!
Last edited by M. Eerie on 15 Nov 2020, 16:34, edited 4 times in total.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Best DVD-Video to minimal sized compressed video file

Post#30 by Rava » 15 Nov 2020, 12:02

^
Thanks I try that. I have some DVDs already VOB copied waiting on external hard drives to be processed.

But now I go outside enjoying the unseasonable warm and sunny weather. :)
Cheers!
Yours Rava

Post Reply