Join the LiNUX movie release group
#31
(Jul 05, 2020, 19:22 pm)ill88eagle Wrote: If you want windows peeps to run the script, wouldn't writing a script for windows work better than WSL or Cygwin?

Anyway, just popped in to say congrats on the purple badge.

I would have to re-write the script from scratch, which would be a pain. I've been working on the Bash version, and refined it, for almost a year now.

My options for Windows are Batch (.BAT), PowerShell, or some other language like Perl. I could do it in Perl, but then the Windows peeps would still have to install Perl, so they might as well install WSL instead. Re-writing the script in Batch script or PowerShell is not even on the table. I don't want to support the Windows ecosystem.

Batch scripting is a major pain in the ass, due to the limitations of that language, and PowerShell I'd have to learn from scratch if I were to use it. Again, no benefit in it for me, considering I don't use Windows and haven't for a decade. No use filling my brain with useless PowerShell syntax, when I use Bash (in Linux) on a day-to-day basis. So the only option right now for Windows users is to run my script in WSL.

Thanks for the congrats Smile

Updated the script to make it log the HandBrake output to a file in 'Info/'. I found this could be useful to log potential errors if HandBrake exits with a non-zero exit status.
Reply
#32
About Perl.
I much prefer it to Bash as its alot more versatile.
Its really not a problem for Win users. Recommend Strawberry Perl, as ActiveState is creeping behind a paywall.
The main advantage is that you can run scripts from a standard default shell.

In reality a great deal of Win programming utils come with Bash shells (Git, MingW, and of course Cygwin).
Bash runs fine here in either OS.
Reply
#33
(Jul 11, 2020, 01:53 am)waregim Wrote: About Perl.
I much prefer it to Bash as its alot more versatile.
Its really not a problem for Win users. Recommend Strawberry Perl, as ActiveState is creeping behind a paywall. 
The main advantage is that you can run scripts from a standard default shell.

In reality a great deal of Win programming utils come with Bash shells (Git, MingW, and of course Cygwin).
Bash runs fine here in either OS.

The Git / Cygwin versions of Bash aren't complete enough. As things are right now, concerning my script, it also depends on *nix tools like sed and curl. And also the *nix versions of mkvtoolnix, ffmpeg, flac and HandBrakeCLI, which would have to be either installed through a package manager or compiled by the user.

Perl has good support for regular expressions, so it wouldn't need sed. Dunno how good it is @ connecting to web pages though (which is what curl is used for in my script). Perhaps it has support for that from the start, or perhaps through a downloadable Perl module...

It's been a few years since I wrote a Perl script from scratch, but I still use (and refine) some of my old ones.

Re-writing the ripping script in Perl is doable, but it's not important enough for me to spend a lot of time on it. The current Bash incarnation of the script does the job well enough on the Linux / WSL side of things.
Reply
#34
Fair enough for me, as I have two computers in my operation, and one that single boots in Linux Mint.

However, not everyone is as fortunate as I am; they have to put up with advanced technology, like Windows 10. Big Grin
Reply
#35
(Jul 11, 2020, 18:02 pm)RobertX Wrote: Fair enough for me, as I have two computers in my operation, and one that single boots in Linux Mint.

However, not everyone is as fortunate as I am; they have to put up with advanced technology, like Windows 10. Big Grin

Windows in general is a very advanced attempt by Microsoft to reinvent the wheel, but badly. UNIX already existed and was a superior design, though I guess it was still highly proprietary in the 80s (license fees and all) and that's why DOS and Windows won out. Don't get me wrong though, if I were to use Windows (will never happen, but still...) I would use 10. I always go for the latest version and see no point in running older versions of software or operating systems.

What CPU does your Mint box have?
Reply
#36
AMD Phenom Triple Core.

It's not much better than my Prescott P4 CPU, but, other than lag in transcoding videos in H265, it's pretty good.

I can upgrade my RAM to 16GB and I am planning to upgrade my hard drive to 1TB as well.

Plenty of places to run and hide.

By the reference of Windows 10 being "advanced," I was being sarcastic. I think you can see through it.
Reply
#37
(Jul 11, 2020, 21:11 pm)RobertX Wrote: AMD Phenom Triple Core.

It's not much better than my Prescott P4 CPU, but, other than lag in transcoding videos in H265, it's pretty good.

I can upgrade my RAM to 16GB and I am planning to upgrade my hard drive to 1TB as well.

Plenty of places to run and hide.

By the reference of Windows 10 being "advanced," I was being sarcastic. I think you can see through it.

Encoding HEVC / H265 is only really doable (at an acceptable speed) if you have a CPU that has hardware acceleration. Same thing goes for watching HEVC files. If you have a relatively recent PC from just before they started adding hardware acceleration then you might still be able to encode and play it (at a decent speed), but I'd probably use your box for other things than encoding HEVC.

What do you use it for?
Reply
#38
My Linux Mint box, and my P4, are perfectly capable of watching 720p videos, H265 or H264, but nothing further.

I use the Linux Mint box the same purposes as my Pentium 4: general purpose. I just install programs that I might need in the future and play LAN multiplayer games.

There are no special purposes, though I put Handbrake on my Linux Mint box and ConvertXtoDVD on my Windows box. They just work better on their assigned machines.

Other than that, they both run Windows games, Gimp, Open/LibreOffice, web browers, video programs, the works.

Anything else in particular you want to know?

EDIT: About the Pentium 4, I used ConvertXtoDVD to make DVD copies of the six-part mini-series Beforeigners, which are at 1089p HEVC. It did it with ease and I didn't need to do anything special.
Reply
#39
(Jul 11, 2020, 22:25 pm)RobertX Wrote: My Linux Mint box, and my P4, are perfectly capable of watching 720p videos, H265 or H264, but nothing further.

I use the Linux Mint box the same purposes as my Pentium 4: general purpose. I just install programs that I might need in the future and play LAN multiplayer games.

There are no special purposes, though I put Handbrake on my Linux Mint box and ConvertXtoDVD on my Windows box. They just work better on their assigned machines.

Other than that, they both run Windows games, Gimp, Open/LibreOffice, web browers, video programs, the works.

Anything else in particular you want to know?

I see. I've only tested 1080p and I know many people who lack hardware acceleration have problems playing HEVC at that resolution or higher. I tried encoding HEVC on a Core2Duo and it was just impossible. It would've taken maybe 1-2 months for a single movie, and that's if that laptop didn't run out of RAM (it only has 1GB).

I think it's cool that you keep old hardware around and make use of it. Thanks for sharing Smile

(And yeah, I got your Win10 joke. I just can't help myself. Gotta make some form of M$ criticism.)
Reply
#40
I've now put the ripping script on my GitHub repo, along with my other scripts. In case anyone needs it, it will be there from now on, and updated from time to time. This version is much newer than the one that I put in my torrents.
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,811 Apr 16, 2024, 20:08 pm
Last Post: Anoid
  How to join The Void! Tutorial! lustrous 0 1,461 Feb 12, 2024, 15:18 pm
Last Post: lustrous
  Hunter Biden laptop new release WW3hasstarted 0 5,839 Jun 02, 2023, 12:47 pm
Last Post: WW3hasstarted
  Anonymous group Youtube and Torum??? Escbar 1 12,217 Oct 24, 2021, 16:46 pm
Last Post: Escbar
  Linux waregim 2 17,965 May 17, 2021, 12:54 pm
Last Post: waregim



Users browsing this thread: 1 Guest(s)