this post was submitted on 17 Feb 2024
56 points (93.8% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54424 readers
366 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 

This might not be the best place for this question but I honestly can't think of another place, but if you know of one please let me know. But I figured someone here might have the experience I'm looking for.

I own the discs for various Star Trek series and everything Stargate. What I'm trying to do is use handbrake to encode them to put them on Plex. But everything I try, it just looks worse. Is there a repository of like recommended settings for various media?

all 16 comments
sorted by: hot top controversial new old
[–] wonderfulvoltaire@lemmy.world 13 points 8 months ago (1 children)

In my experience the presets work and the handbrake reddit agrees that the bigger the file the better the quality. 1000001399

[–] CaptPretentious@lemmy.world 4 points 8 months ago (2 children)

So far this has given me the best results. I found something on Reddit as well, and the suggestion that I had found could only look good if you had severe cataracts...

[–] stratosfear@lemmy.sdf.org 5 points 8 months ago

Software encoding (Your CPU) will always provide better quality than your GPU, especially if your GPU is older. Sadly it's much slower but beware what you're using to encode (video tab, drop down with the 264, 265, 10bit, etc. stuff. NVENC would be an nvidia GPU)

[–] dangblingus@lemmy.dbzer0.com 1 points 8 months ago

What bitrate are you using? x265 is the best encoder at the moment for file size efficiency, and it supports HDR, but if your bitrate is in the basement, it won't matter what encoder/wrapper you use. When h264 was the standard, I wouldn't go lower than 8000kbps for HD video.

[–] je_skirata@lemmy.today 5 points 8 months ago

I'd reccomened fine-tuning your own custom preset. Two things are important for quality, both in the Video tab of the GUI: the Quality slider and the speed of the Encoder. You can read about these in the Handbrake documentation: https://handbrake.fr/docs/en/1.7.0/workflow/adjust-quality.html

[–] ElectroLisa@lemmy.blahaj.zone 5 points 8 months ago (2 children)

Never used Plex but maybe you could repackage the DVD content into MKV with MKVtoolnix, without recompression

[–] cmnybo@discuss.tchncs.de 4 points 8 months ago

Many DVDs use interlaced video. Normally, you would deinterlace the video when transcoding it. If you don't transcode, then the player will need to have deinterlacing enabled when playing the DVD rips.

[–] CaptPretentious@lemmy.world 1 points 8 months ago

I've never heard of that tool, but I'll look into it.

Think of Plex as a private Netflix, but more. You can put video files on it, music, you can even use it as a DVR!

[–] Couldbealeotard@lemmy.world 5 points 8 months ago* (last edited 8 months ago)

I did the whole Stargate franchise, including Infinity.

My advice is to do what I did. Rip the discs to your hard drive to remove the cd rom as a speed bottleneck. Then start doing tests at different bit rates until you are happy with the quality:size ratio. From season 4 onwards there's audio commentaries that are worth keeping, so don't forget to include that audio track as well as any language and subtitles you'd like to keep.

Good luck, have fun. It took me ages to work through it in my free time, but I'm glad I did. Also, from season 8 onwards, there are HD versions of SG-1 that were never released on home video that you may as well find a download of.

[–] fosstulate@iusearchlinux.fyi 4 points 8 months ago (1 children)

Care to demonstrate 'looks worse'? Are visual artifacts showing up? Are the sources DVD or BD? What encoding speed is in use? What special parameters are specified (More Settings box) in the video tab?

[–] CaptPretentious@lemmy.world 2 points 8 months ago* (last edited 8 months ago) (1 children)

Voyager is DVD. Used MakeMKV to get the files, and used VLC to preview it. In the first episode that caretaker I was using the scene with the doctor due to the fog effects the lighting movements everything. The handbrake preview you could definitely tell like gradient bands, and when the doctor walks up to the camera and you can really see him I pause at the exact same moment between the raw file and the preview file and there was a lot of... I'm going to call it distortion in the details on his face, especial around the eyes. (Seen just before meet the caretaker)

Video editing isn't something I'm familiar with so I'm not really sure what terms to use. I might be able to recreate, but I'm trying some of the other suggestions so not sure if I accurately remember what settings I had.

[–] fosstulate@iusearchlinux.fyi 5 points 8 months ago* (last edited 8 months ago)

Banding and blocking are associated with low bitrates. Bitrate is a key consideration in video encoding. Either it is constant, where you set a value of 2000 kbits, 5600, etc. and Handbrake sticks to it, or variable, where you set a quality rate factor, and Handbrake then adjusts bitrate on the fly to maintain quality X. Variable approaches will provide an average bitrate.

Occasionally DVD sources will compress really inefficiently: no matter how much bitrate you throw at it, the encoded result is substantially worse than source. But typically I've found RF 18-21 does a good job. I use mediainfo to ascertain bitrates and other information.

I pulled these settings from a DVD profile I made. They go in the 'More Settings' box

bframes=16:ref=16:fast-pskip=0:dct-decimate=0:aq-mode=2:aq-strength=1.0:qcomp=0.65:me=umh:me-range=32:psy-rd=0,0:deblock=-3,-3

[–] maxprime@lemmy.ml 3 points 8 months ago

If you’re not concerned with size you could use makemkv and remux the video files. It’s quite fast.

[–] Blue_Morpho@lemmy.world 2 points 8 months ago* (last edited 8 months ago)

You might want to go down the rabbit hole of virtualdub2 and avisynth. Virtualdub provides a GUI for very simple editing but its main focus is encoding. Avisynth allows you to work with video files with scripts. The most advanced filters for improving quality are on avisynth. You can create a .avs script in notepad and then view it in Virtualdub as if its a video file.

You can start with just Virtualdub2. Use its built in deinterlacing filters (because those DVD's are interlaced), resize filters (because the files on a DVD aren't the correct aspect ratio) and video/audio compression. For X264, use quality based encoding at something like Q18 for almost perfect quality.

Trek DVD's are particularly hard because they are a mix of film source and TV special effects so you need a dynamic deinterlacer that can switch between 3:2 pulldown for film parts (live action) and straight deinterlacing for special effects (space battles).

https://en.wikipedia.org/wiki/Three-two_pull_down#:~:text=Three%2Dtwo%20pull%20down%20(3,of%20transferring%20film%20to%20video.&text=It%20converts%2024%20frames%20per,slight%20slow%20down%20in%20speed.

https://forum.doom9.org/showthread.php?t=181209&page=26

[–] sorter_plainview@lemmy.today 1 points 8 months ago

Can you share the current settings you used? For me a good starting point is a preset with target resolution, and then fine tuning RF value to get a good reduction in size.