Join the LiNUX movie release group
#1
So, I've written a bash script that encodes BluRays to HEVC with just one simple command. The point was to automate the ripping process for myself, but I realized this script should be shared with others. I have my own "release group", which consists of me only. I upload movie rips under the "LiNUX" tag, and you can find my rips by searching for "hevc linux" on for example torrentz2.eu. My first 3 rips are smaller in size, because I used a lower bitrate (2500 kbps), before settling on 5000 kbps, which I consider more ideal.

Any rip I've made since "The Imaginarium of Doctor Parnassus" has the correct quality settings.

In my opinion, my rips are very good quality, and the only downside is that they take very long to encode. This is why I want others to join me, use the same script as me and upload under the "LiNUX" tag. By using the script, we make sure that the quality is consistent, and the file size always predictable. So people who download our rips will always know what they're getting.

I will keep making improvements to my script, and I upload a copy of the current version with all my torrents.

My script: https://pastebin.com/BNCbZCN7
My manifesto: https://pastebin.com/bKXtYmRC

Reasons for the chosen HandBrake settings:

* 5000 kbps video bitrate:

My goal was to have very good video quality while still keeping the file size relatively small. I started out with 2500 kbps, since that's the bitrate RARBG uses for their 1080p rips. In the end, I decided that was a bit too low, and I chose to double the bitrate to get closer to the BluRay source quality.

* 'slow' x265 encoder preset

To most people, the 'slow' preset is overkill. But here's my reasoning behind choosing it... I don't care if it's overkill. I want to squeeze every last bit to get the maximum quality possible, even if it ends up taking A LOT longer to encode. I could've gone even higher, using the 'placebo' preset, which would've rendered the encoding time so extremely long that it would just be impossible for me to finish a single rip. The 'slow' preset is what my system was able to handle without making the encoding process take more than about a week, which is still very long. I have a very cheap CPU, with only 2 cores and no hyperthreading. If the 'slow' preset works for me, it will definitely work for people with a better system than me.

* 10-bits per pixel (for x265)

10-bit color depth should ALWAYS be used when encoding HEVC (x265), because it saves bandwidth and results in higher quality per bitrate. Even if the source is only 8-bit, like regular BluRays are, 10-bit encoding should be used for the reasons stated. Regular BluRays are encoded in H264, not H265 (HEVC). There's a new disc format called "Ultra HD Blu-ray" ("4K Ultra HD"), which is encoded in H265, with 4K resolution. Unless the source of an encode is this new format, it's in 8-bit color depth.

"... encoding pictures using 10-bit processing always saves bandwidth compared to 8-bit processing, whatever the source pixel bit depth."
http://x264.nl/x264/10bit_02-ateme-why_d...dwidth.pdf

* DTS audio

I chose the DTS audio format, because the core DTS track can easily be extracted from DTS-HDMA without having to do any actual transcoding, keeping the audio quality at a maximum while still saving some space compared with DTS-HDMA. I chose not to compress the audio using AAC or Ogg Vorbis, because it's already compressed, and it's not the audio using up most of the bitrate in a movie rip anyway. It's usually the video taking up most of the space, and any attempt to save space should be done by lowering the video bitrate.

* Not using encoder specific settings

HandBrake's and x265's default settings are good for most cases. That's why they're the default. Bitrate and encoder preset have a much bigger impact than fiddling around with specific encoder settings. And the point of the script in the first place is automation, so changing the settings for specific movies is also not the goal here. Although, I've included specific encoder tunings for film grain and animation in the script.

* 2-pass instead of "Constant Quality"

Using a constant quality rate factor doesn't generate a predictable file size, and I want people to know what to expect when they download my rips. Both modes of encoding generate a variable video bitrate, where more bits are allocated where needed, and less where not needed. A variable bitrate is of course superior to a constant bitrate.

* 1080p resolution

This is just my preference. I think 720p is too low resolution, so I'm not even going to bother with it or release any 720p rips. 4K resolution I consider overkill for most people. From what I can see, most people (incl. me) still want 1080p, and that's partly due to many people using older devices to play their movies, or perhaps older screens that aren't 4K. Using a resolution higher than 1080p would also automatically require a higher bitrate to store all that extra detail. My rips are usually around 5GB in size, and even that's more than some people can handle. Not everyone has a good connection or enough HDD space.

*

If anyone wants to have a good conversation about video encoding, Linux or anything about computers, just join my IRC channel: #LiNUX-RG on EFNet.

If you want to see the quality of my rips, just download one of them. Any rip after "A Christmas Carol" uses the correct settings.

https://thepiratebay.org/user/Fant0men
Reply
#2
So, I'm happy to share that I've been getting some help lately with ripping movies, as there's at least one other person besides me using the script now. The pace of releases should pick up from here on out.


Latest version of the script: https://pastebin.com/aueHBGpm


Also: Happy New Year, everyone!

[Image: 860_fireworks_banner_4MB.gif]
Reply
#3
Do you have a licence for your script?
Reply
#4
(Dec 31, 2019, 08:22 am)RobertX Wrote: Do you have a licence for your script?

No, I decided to just leave it unlicensed (public domain), because licensing something in relation to P2P just feels silly. We break licenses all the time when it comes to software, and we also break copyright.
Reply
#5
Created a new script (for a different purpose), and thought I should share it here...

It's a script that rounds all the start and end times of an SRT subtitle.

# Example:
# 00:20:47,500 --> 00:20:52,600
#
# Instead of:
# 00:20:47,457 --> 00:20:52,611
#
# This makes it a lot easier to edit the subtitle in for example Gnome Subtitles, if needed.
# Even if you're not going to edit the subtitle afterwards, it just looks better using whole centiseconds.
#
# The output filename is the same as the input filename, only a random number is added to the name.
# The start and end times of every subtitle line are adjusted so they don't overlap. They will all differ by at least 1 centisecond.

Rounding script: https://pastebin.com/Ua22uPu3

Also, the HEVC ripping script has been updated to support FLAC audio in the input file: https://pastebin.com/Ye5LxiwS
Reply
#6
Updated the script to intelligently decide the output bitrate based on the bitrate of the audio in the input file. No more wasting bits. If input audio bitrate is closer to 768 kb/s, then choose that, or if it's closer to 1536 kb/s then choose that. This only applies to FLAC and AC3 right now, as those are the only audio formats that can have a bitrate that's lower than 1536 kb/s.

The output will still always be DTS. The reason for choosing 768 or 1536 as bitrate is because those are the standard bitrates for DTS.

https://pastebin.com/G8nvrf6P
Reply
#7
Fixed a glaring bug in the 'dts_extract' function, which only became a problem once special use cases began cropping up (specifically multiple supported audio formats in the same input file).

https://pastebin.com/YajWG7L7
Reply
#8
Updated the script: https://pastebin.com/b04bjY35

# 2020-02-12
Added some functionality to the 'info_txt' function. It now supports the (optional) 'mediainfo' command, and will run it on the output file if the command is installed. The 'info_txt' function now also outputs a list of file sizes for '$if', '$of_remux' and '$of'.

I spent a few days reading through the ffmpeg and x265 documentation to get this rip just right. If you're interested in Linux, download, seed, and watch this documentary. There are no better rips than this one. The only way you'll get higher quality is watching the original ISO / DVD, and even then it's hardly any difference in quality. There are 11 subtitles and I've also included the soundtrack for the documentary in FLAC. Enjoy!

https://thepiratebay.org/torrent/3605380....AC3-LiNUX
Reply
#9
(Feb 12, 2020, 03:58 am)Fant0men Wrote: Updated the script: https://pastebin.com/b04bjY35

# 2020-02-12
Added some functionality to the 'info_txt' function. It now supports the (optional) 'mediainfo' command, and will run it on the output file if the command is installed. The 'info_txt' function now also outputs a list of file sizes for '$if', '$of_remux' and '$of'.

I spent a few days reading through the ffmpeg and x265 documentation to get this rip just right. If you're interested in Linux, download, seed, and watch this documentary. There are no better rips than this one. The only way you'll get higher quality is watching the original ISO / DVD, and even then it's hardly any difference in quality. There are 11 subtitles and I've also included the soundtrack for the documentary in FLAC. Enjoy!

https://thepiratebay.org/torrent/3605380....AC3-LiNUX

I re-did the rip in 50 fps, as that's the native framerate of the DVD source once deinterlaced:
https://thepiratebay.org/torrent/36069189
Reply
#10
oh joy!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hi there what do you think of Linux Oses and the kernel itself Rioboyva2554 21 4,736 Apr 16, 2024, 20:08 pm
Last Post: Anoid
  How to join The Void! Tutorial! lustrous 0 1,450 Feb 12, 2024, 15:18 pm
Last Post: lustrous
  Hunter Biden laptop new release WW3hasstarted 0 5,829 Jun 02, 2023, 12:47 pm
Last Post: WW3hasstarted
  Anonymous group Youtube and Torum??? Escbar 1 12,205 Oct 24, 2021, 16:46 pm
Last Post: Escbar
  Linux waregim 2 17,944 May 17, 2021, 12:54 pm
Last Post: waregim



Users browsing this thread: 3 Guest(s)