VideoHelp Forum
+ Reply to Thread
Page 5 of 5
FirstFirst ... 3 4 5
Results 121 to 144 of 144
Thread
  1. Great job! Thank you.

    I do everything, get a key, then type the name "TEST", press ENTER to download and then I get this:

    Code:
    Press Enter to run the download-command or ctrl+C to exit.
    Traceback (most recent call last):
      File "D:\hellyes3\HellYesGui\allhell3.py", line 451, in <module>
        subprocess.run(command)
      File "C:\Program Files\Python39\lib\subprocess.py", line 505, in run
        with Popen(*popenargs, **kwargs) as process:
      File "C:\Program Files\Python39\lib\subprocess.py", line 951, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "C:\Program Files\Python39\lib\subprocess.py", line 1420, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    FileNotFoundError: [WinError 2] The system cannot find the file specified
    I installed the additional tools that are in the manual.

    EDIT:

    I fixed it. If it makes sense to anyone, just had to add N m3u8 RE to PATH.
    Last edited by atomska; 8th Aug 2024 at 06:12.
    Quote Quote  
  2. i have new laptop, with w11 and latest win terminal window version

    when run script hell3.py and paste value from lic url as curl bash the terminal warns that i'm pasting text on several lines so the various -H pieces are split into several pieces of code ...
    I've already used this script before, but never had this problem before. i get key now but window terminal is a mess .... how to solve ?

    Image
    [Attachment 81365 - Click to enlarge]
    Quote Quote  
  3. Originally Posted by whs912km View Post
    i have new laptop, with w11 and latest win terminal window version

    when run script hell3.py and paste value from lic url as curl bash the terminal warns that i'm pasting text on several lines so the various -H pieces are split into several pieces of code ...
    I've already used this script before, but never had this problem before. i get key now but window terminal is a mess .... how to solve ?

    Image
    [Attachment 81365 - Click to enlarge]

    This is going to sound ridiculous, but what happens if you click on "Paste Anyway" ??
    Quote Quote  
  4. As already mentioned above, the script works and generates the Key. The problem is that by pasting the clipboard, the curl code is broken into several parts and is not pasted as a single block. because, cmd says, is multilines text
    Quote Quote  
  5. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by whs912km View Post
    As already mentioned above, the script works and generates the Key. The problem is that by pasting the clipboard, the curl code is broken into several parts and is not pasted as a single block. because, cmd says, is multilines text
    The cURL just has return characters within its text and Windows 11, always over-trying to protect its users, is warning you. If you use the GUI version- allhell3gui.py - in my signature, it should not do that.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  6. yep, the gui work fine

    cmd or powershell 7 can't allow to add multiline command correctly

    or workaround is use cmder (cmd available from github). this cmd work fine with multiline command. and get key without mess like win cmd (or powershell too)
    Quote Quote  
  7. another way is paste curlbash command into txt file and put multi-lines to one line only

    now cmd window add the right command. and script work fine
    Last edited by whs912km; 11th Aug 2024 at 12:15.
    Quote Quote  
  8. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by whs912km View Post
    cmd or powershell 7 can't allow to add multiline command correctly
    Start guide says to use Terminal app from MS Store for Windows. You are also probably being prevented from doing what you want in your apps because you need to open them with Administrator's permission.

    None of this is an issue. The work-around is to read the the notes before use!
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  9. my only account on my pc is with admin right. and my cmd win is from MS Store (also updated recently)

    anyway it's easy to put multi-lines commad to one line only with np++
    add command to txt file - open with np++ select all command - from edit - line operations - join lines ( or CTRL+J )
    Quote Quote  
  10. Hey everyone! I'm sorry to have to ask this question as it is probably a direct issue with my lack of know how on these topics still.
    currently using Ubuntu

    i tried following the the tut best as i could but i seem to be running into an issue when attempting to download the shows.

    (venv) chon9o@chon9o-Linux:~/Downloads/hellyes3/HellYesGui$ python3 allhell3gui.py
    Traceback (most recent call last):
    File "/home/chon9o/Downloads/hellyes3/HellYesGui/allhell3gui.py", line 34, in run
    subprocess.run(self.command, check=True)
    File "/usr/lib/python3.12/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'N_m3u8DL-RE'
    Aborted (core dumped)
    seems like i am not putting or installing N_m3u8DL-RE in the correct location. I have tried putting it in about 16 diff locations and still getting the same error. Installed the requirements in the Venv. also installed the listed i reckon I'm misunderstanding

    "It can be anywhere on your system. So long as 'binaries' is in your Path."

    but i can't figure out how to fix this.
    any guidance would be appreciated

    thanks!

    ps. sorry if this has an obvious solution, i have been googling for a few hours and have not been able to fix this clear User error

    Ok so i went back and followed this guide https://forum.videohelp.com/threads/414856-Guide-to-get-your-Linux-%28Debian-based%29-...tem-set-up-for
    and i have now successfully downloaded my first video. I know i shouldn't feel as satisfied as i do since im piggy backing off everyone elses hard work but i still do lol

    thanks everyone contributing to the forums, it is very so appreciated!
    Last edited by Chancho; 13th Aug 2024 at 01:24. Reason: Found solution
    Quote Quote  
  11. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Chancho View Post
    Ok so i went back and followed this guide https://forum.videohelp.com/threads/414856-Guide-to-get-your-Linux-%28Debian-based%29-...tem-set-up-for
    and i have now successfully downloaded my first video. I know i shouldn't feel as satisfied as i do since im piggy backing off everyone elses hard work but i still do lol

    thanks everyone contributing to the forums, it is very so appreciated!
    It's always helpful to say what the problem was and HOW you solved it.

    My guess is you just downloaded N_m3u8DL-RE and didn't give it execute-permission using 'chmod +x N_m3u8DL-RE' ?
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  12. Originally Posted by A_n_g_e_l_a View Post
    Originally Posted by Chancho View Post
    Ok so i went back and followed this guide https://forum.videohelp.com/threads/414856-Guide-to-get-your-Linux-%28Debian-based%29-...tem-set-up-for
    and i have now successfully downloaded my first video. I know i shouldn't feel as satisfied as i do since I'm piggy backing off everyone else's hard work but i still do lol

    thanks everyone contributing to the forums, it is very so appreciated!
    It's always helpful to say what the problem was and HOW you solved it.

    My guess is you just downloaded N_m3u8DL-RE and didn't give it execute-permission using 'chmod +x N_m3u8DL-RE' ?

    Hi A_n_g_e_l_a, you pretty much guessed right on.

    I've switched from being a Windows only user maybe a month and a half ago so I'm trying to learn Linux at the same time as picking up
    things on the Forum here. I needed to install .NET, compile and install N_m3u8DL-RE.

    I had basically dropped the folder where i thought it needed to be and expected it to magically be functional lesson learned.
    By the way, I've been reading through a lot of your stuff on the forum and just want to say Thanks you.

    Until recently it had been a while since I've messed around with tech that's unknown to me, or even just taught myself (following everyone's guides) in about 10 years or so, I think i need to learn to absorb and understand what I'm reading better before i start diving into projects. It started delving into the selfhosting world and now I'm here. /Sigh....Felling Old, Slow and slightly ashamed lol

    thanks again!
    Quote Quote  
  13. I am currently stuck at

    get_hidden_input("cURL? ")
    My rough guess
    - since the cURL command for license server contains some weird binary character in post body, it is not read correctly/copy correctly in command line
    - maybe caused by msvcrt.getch().decode('utf-8')? but changing to msvcrt.getch().decode('ASCII') not work either



    I am using win11 with edge 129.0.2792.52 (Official build) (64-bit)
    Quote Quote  
  14. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by damon View Post
    I am currently stuck at

    get_hidden_input("cURL? ")
    My rough guess
    - since the cURL command for license server contains some weird binary character in post body, it is not read correctly/copy correctly in command line
    - maybe caused by msvcrt.getch().decode('utf-8')? but changing to msvcrt.getch().decode('ASCII') not work either



    I am using win11 with edge 129.0.2792.52 (Official build) (64-bit)
    There maybe some 'weird' characters but the script is written to cope with them. Pasting to the command window in Windows also can be problematic. Be sure to use Terminal - free from Microsoft Store - from which to run the script.

    Or, better, use the newer GUI version linked in my signature. And it is best to use Firefox or Chrome - in that order of preference - for getting the cURL

    Finally, its always a good idea to post the video url, so others may check.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  15. Some additional information

    For Linux
    The website does not support Firefox and Chrome for Linux, so cannot try on real bash (or it takes me sometime to install virtual machine/WSL)

    For Windows
    Both commandline and GUI version does not work
    Tried copying the license using "cURL (cmd)" and "cURL (bash)" under Edge and Chrome for Windows, not work

    Btw, suggest to "follow_redirects=True" in httpx.get since it is required in my case
    Quote Quote  
  16. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by damon View Post
    Some additional information

    For Linux
    The website does not support Firefox and Chrome for Linux, so cannot try on real bash (or it takes me sometime to install virtual machine/WSL)

    For Windows
    Both commandline and GUI version does not work
    Tried copying the license using "cURL (cmd)" and "cURL (bash)" under Edge and Chrome for Windows, not work

    Btw, suggest to "follow_redirects=True" in httpx.get since it is required in my case

    Couldn't follow "The website does not support Firefox and Chrome for Linux," Is it widevine?

    And, if what you are entering as licence cURL gets redirected ,it strongly suggests it wasn't t the licence cURL you entered.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  17. Originally Posted by A_n_g_e_l_a View Post
    Originally Posted by damon View Post
    Some additional information

    For Linux
    The website does not support Firefox and Chrome for Linux, so cannot try on real bash (or it takes me sometime to install virtual machine/WSL)

    For Windows
    Both commandline and GUI version does not work
    Tried copying the license using "cURL (cmd)" and "cURL (bash)" under Edge and Chrome for Windows, not work

    Btw, suggest to "follow_redirects=True" in httpx.get since it is required in my case

    Couldn't follow "The website does not support Firefox and Chrome for Linux," Is it widevine?

    And, if what you are entering as licence cURL gets redirected ,it strongly suggests it wasn't t the licence cURL you entered.
    I mean httpx.get for mpd

    Since I am new member, every post has to be moderated before appearing, and seems that one previous post was lost for unknown reason.

    The website shows "Your network has been disconnected" when viewing Firefox/Chrome under Linux. I am not sure if it is related to DRM/Widevine or other reasons

    The video site is www.mytvsuper.com (it is geo-locked site and required registration even you are going to view the free content only). The url is www.mytvsuper.com/en/live/1/
    Quote Quote  
  18. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by damon View Post
    Originally Posted by A_n_g_e_l_a View Post
    Originally Posted by damon View Post
    Some additional information

    For Linux
    The website does not support Firefox and Chrome for Linux, so cannot try on real bash (or it takes me sometime to install virtual machine/WSL)

    For Windows
    Both commandline and GUI version does not work
    Tried copying the license using "cURL (cmd)" and "cURL (bash)" under Edge and Chrome for Windows, not work

    Btw, suggest to "follow_redirects=True" in httpx.get since it is required in my case

    Couldn't follow "The website does not support Firefox and Chrome for Linux," Is it widevine?

    And, if what you are entering as licence cURL gets redirected ,it strongly suggests it wasn't t the licence cURL you entered.
    I mean httpx.get for mpd

    Since I am new member, every post has to be moderated before appearing, and seems that one previous post was lost for unknown reason.

    The website shows "Your network has been disconnected" when viewing Firefox/Chrome under Linux. I am not sure if it is related to DRM/Widevine or other reasons

    The video site is www.mytvsuper.com (it is geo-locked site and required registration even you are going to view the free content only). The url is www.mytvsuper.com/en/live/1/

    Well until you can give me a specific error that allhellgui reports I think it all is just down to you and misconfiguration of your system. Have you tried on a simple site? - tg4.ie for example, try to download anything. Make you setup works there and then move on to harder sites.

    Looking at site info I found this
    Image
    [Attachment 82566 - Click to enlarge]

    and
    Image
    [Attachment 82567 - Click to enlarge]


    So there is no reason Chrome shouldn't work.
    Last edited by A_n_g_e_l_a; 1st Oct 2024 at 05:22.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  19. Member
    Join Date
    Oct 2024
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by A_n_g_e_l_a View Post
    So there is no reason Chrome shouldn't work.
    I am not a fan of Firefox, but my solution has been to make Firefox the browser for this and Chrome for everything else. Ie work etc. Firefox makes it easier to save sites and it loads separately.
    I drag an edited .html file onto Firefox and then I have links to some useful sites and on YouTube. Also designed to work on my iPhone.

    Firefox also seemed to find the mpd link, etc. much easier IMO.

    I find the main programs work best if you put them in C:\Windows\System32 folder. As Terminal will see anything in System32 from anywhere.

    I've written a couple of bat files to fun a few of your scripts from shortcuts - they won't just link. Including checking for updates.
    I've edited allhell3_v6.py to use a different save path. Quite straightforward. Nice switch

    Python seems to work best installed from the Windows Store. Somehow I seem to have two versions of the same (and they confuse each other).

    ChatGPT is quite good at converting vtt subtitles. I've worked out some files to convert subtitles from various formats. .ASS seems to work best for me when it comes to integration. .SRT isn't as flexible. But, having studied these files, .SRT can work better but most don't have the information.
    I've got my own methods for subtitles. ChatGPT has helped me learn a lot.

    SystemPropertiesAdvanced.exe - Advanced System Settings\Environment Variables\System variables\Path
    Added: C:\Program Files (x86)\HellYes6\
    Added: C:\Users\[Your Name]\AppData\Local\Microsoft\WindowsApps

    Now Terminal can find things easier.
    @echo off
    REM ----------------
    REM HellYes6 v6.4.
    REM --T-H-E--M-O-L-E
    pwsh --version
    python --version
    echo(
    echo Main Find Filter: "regexp:widevine|acquire|license|mpd|subti"
    echo Subtitles Filter: "vtt"
    echo(
    C:
    cd\
    cd "C:\Program Files (x86)\HellYes6"
    python "allhell3_v6.py"
    echo(
    pause

    ----

    Request: Could 'allhell3_v6.py' have a switch added so that subtitles will integrate by default, or that can be turned off. One site I use tends to download all three and integrate all three. So I can either download and integrate all or have no subtitles. Could a switch be added (similar to how I can change the save path) to tell the script not to integrate the subtitle file, nor delete it and just mux the video+audio.

    Currently, I have to download twice. Once to get the whole thing integrated and one with just the video+audio integrated. Then I read out the subtitles, make my changes and build into the video+audio (or run separately to the video - just use the same name for .mkv and .vtt/ass.

    I tend to integrate .ass and leave .vtt separate (partly because some content is not as professionally cared about in accuracy as the modern day).

    Anyway, if you could Angela, I'd be grateful.

    Other sites you have to find and get the subtitles manually and that works fine. A filter of vtt works great.

    Brilliant work and very convenient. Some grabs have not been released on DVD and it's irritating.
    Last edited by The_Mole_UK; 1st Oct 2024 at 19:15.
    Quote Quote  
  20. Member
    Join Date
    Oct 2024
    Location
    United Kingdom
    Search Comp PM
    Is it possible to add a switch to HellYes6 which allows for the subtitles not to be always integrated (on that occurrence) and instead retained in the output folder, please?
    Thanks in advance.
    Quote Quote  
  21. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by The_Mole_UK View Post
    Is it possible to add a switch to HellYes6 which allows for the subtitles not to be always integrated (on that occurrence) and instead retained in the output folder, please?
    Thanks in advance.
    Edit: Sorry I see you've previously posted you can do the following already

    You should be already able to do that with a bit of a fiddle with two passes. First run the download and at the video selection page select ONLY video and audio - scroll right down and deselect subtitles. Then run again - select download - deselect video and audio - select subtitles.
    /edit

    There is also software that can remove the subtitle track from the downloaded file - a Google search away.

    It is a fairly esoteric request that I wouldn't enjoy spending my time on. So if none of the above works for you, you have a script that is editable by you. Maybe time to learn a little python? There are AI engines that might help some of the way.

    But I probably wouldn't touch the original script but just add a little post-processing to extract the subs from the mkv file

    edit: Just thought of VLC. On my TV VLC has a great feature! If no subs are available I can make it search for them.
    Google says:- Best movie subtitles sites

    Subscene.
    Moviesubtitles.org.
    OpenSubtitles.
    TVsubs.
    Subtitle Seeker.
    Downsub.
    Movie Subtitles.
    English Subtitles for DivX Movies.
    Last edited by A_n_g_e_l_a; 2nd Oct 2024 at 04:51.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  22. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    @The_Mole_UK

    A quick bit of research shows you already have the tools. MKVToolnix installs a number of command line files on your system.

    First use mkvinfo

    Code:
    mkvinfo <file-name.mkv>
    Then find the track number for subtitles (it will almost certainly be 2) (Note text track is listed as 3 but carries a note to say for mkvextract use 2)

    Then use mkvextract

    Code:
    mkvextract tracks <input.mkv> 2:<subtitle_file_name.srt>
    So really in the cleanup for Allhell3Gui you could easily add a line to do the post-processing.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  23. Member
    Join Date
    Oct 2024
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by A_n_g_e_l_a View Post
    @The_Mole_UK

    A quick bit of research shows you already have the tools. MKVToolnix installs a number of command line files on your system.

    First use mkvinfo

    Code:
    mkvinfo <file-name.mkv>
    Then find the track number for subtitles (it will almost certainly be 2) (Note text track is listed as 3 but carries a note to say for mkvextract use 2)

    Then use mkvextract

    Code:
    mkvextract tracks <input.mkv> 2:<subtitle_file_name.srt>
    So really in the cleanup for Allhell3Gui you could easily add a line to do the post-processing.
    The solution is a very simple one, just tried it...

    All you do is use the existing script to .rip the video in the lowest quality. Experiment made that file: 52,538 KB (instead of GB)
    No audio stream - not needed.
    Subtitles.
    Save as Subtitles.mkv or equivalent.

    Run this bat...
    @echo off
    REM ---------------------------
    REM Rip Subtitles To .ASS v1.1.
    REM -------------T-H-E--M-O-L-E

    REM Loop through all .mkv files in the current directory
    for %%f in (*.mkv) do (
    REM Check if an .ASS file with the same base name exists
    if exist "%%~nf.ass" (
    echo Skipping "%%f" because "%%~nf.ass" already exists.
    ) else (
    REM Extract the first subtitle stream (-map 0:0) to an .ASS file with the same base name
    ffmpeg -i "%%f" -map 0:0 "%%~nf.ass"
    echo Extracted subtitles from %%f to %%~nf.ass
    )
    REM Use echo( instead of echo. for a reliable blank line.
    echo(
    )
    echo All subtitles have been ripped!
    pause

    Replace with this:
    [Script Info]
    ScriptType: v4.00+
    PlayResX: 384
    PlayResY: 288
    ScaledBorderAndShadow: yes
    YCbCr Matrix: None

    [V4+ Styles]
    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
    Style: Default,Arial,16,&H00FFFFFF&,&H00FFFFFF&,&H0000000 0&,&H00000000&,-1,0,0,0,100,100,0,0,1,1,0,2,10,10,20,1

    [Events]
    Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text

    Save it again. I just use Notepad.

    Download the Video and Audio again (but as you want, ie default) - file.mkv
    Rename amended subtitle - file.ass

    Run this:
    @echo off
    REM ----------------------------------------
    REM Integrate .ASS Subtitles Into .MKV v1.1.
    REM --------------------------T-H-E--M-O-L-E

    REM Loop through all .mkv files in the current directory
    for %%f in (*.mkv) do (
    REM Check if an MKV file with (With Subtitles) in the name exists.
    if exist "%%~nf (With Subtitles).mkv" (
    echo Skipping "%%f" because "%%~nf (With Subtitles).mkv" already exists.
    ) else (
    REM Check if an .ass file with the same base name exists.
    if exist "%%~nf.ass" (
    REM Embed the .ass subtitle into the MKV and create a new output file with (With Subtitles).
    ffmpeg -i "%%f" -i "%%~nf.ass" -c copy -c ass -metadata:0 language=eng -metadata:0 title="Track 1" -disposition:0 default "%%~nf (With Subtitles).mkv" -y
    echo Integrated .ass subtitles into "%%~nf (With Subtitles).mkv"
    ) else (
    echo No .ass subtitle file found for "%%f", skipping.
    )
    )
    REM Use echo( instead of echo. for a reliable blank line.
    echo(
    )
    echo All subtitle integration tasks completed!
    pause
    Quote Quote  
  24. Member
    Join Date
    Oct 2024
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by A_n_g_e_l_a View Post
    @The_Mole_UK

    A quick bit of research shows you already have the tools. MKVToolnix installs a number of command line files on your system.

    First use mkvinfo

    Code:
    mkvinfo <file-name.mkv>
    Then find the track number for subtitles (it will almost certainly be 2) (Note text track is listed as 3 but carries a note to say for mkvextract use 2)

    Then use mkvextract

    Code:
    mkvextract tracks <input.mkv> 2:<subtitle_file_name.srt>
    So really in the cleanup for Allhell3Gui you could easily add a line to do the post-processing.
    The solution is a very simple one, just tried it...

    All you do is use the existing script to .rip the video in the lowest quality. Experiment made that file: 52,538 KB (instead of GB)
    No audio stream - not needed.
    Subtitles.
    Save as Subtitles.mkv or equivalent.

    Run this bat...
    @echo off
    REM ---------------------------
    REM Rip Subtitles To .ASS v1.1.
    REM -------------T-H-E--M-O-L-E

    REM Loop through all .mkv files in the current directory
    for %%f in (*.mkv) do (
    REM Check if an .ASS file with the same base name exists
    if exist "%%~nf.ass" (
    echo Skipping "%%f" because "%%~nf.ass" already exists.
    ) else (
    REM Extract the first subtitle stream (-map 0:s:0) to an .ASS file with the same base name
    ffmpeg -i "%%f" -map 0:s:0 "%%~nf.ass"
    echo Extracted subtitles from %%f to %%~nf.ass
    )
    REM Use echo( instead of echo. for a reliable blank line.
    echo(
    )
    echo All subtitles have been ripped!
    pause

    Replace with this:
    [Script Info]
    ScriptType: v4.00+
    PlayResX: 384
    PlayResY: 288
    ScaledBorderAndShadow: yes
    YCbCr Matrix: None

    [V4+ Styles]
    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
    Style: Default,Arial,16,&H00FFFFFF&,&H00FFFFFF&,&H0000000 0&,&H00000000&,-1,0,0,0,100,100,0,0,1,1,0,2,10,10,20,1

    [Events]
    Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text

    Save it again. I just use Notepad. Use [video filename].ass
    Download the Video and Audio again (but as you want, ie default) - [video filename].mkv
    Delete the Subtitles.mkv

    Run this:
    @echo off
    REM ----------------------------------------
    REM Integrate .ASS Subtitles Into .MKV v1.1.
    REM --------------------------T-H-E--M-O-L-E

    REM Loop through all .mkv files in the current directory
    for %%f in (*.mkv) do (
    REM Check if an MKV file with (With Subtitles) in the name exists.
    if exist "%%~nf (With Subtitles).mkv" (
    echo Skipping "%%f" because "%%~nf (With Subtitles).mkv" already exists.
    ) else (
    REM Check if an .ass file with the same base name exists.
    if exist "%%~nf.ass" (
    REM Embed the .ass subtitle into the MKV and create a new output file with (With Subtitles).
    ffmpeg -i "%%f" -i "%%~nf.ass" -c copy -c:s ass -metadata:s:s:0 language=eng -metadata:s:s:0 title="Track 1" -disposition:s:0 default "%%~nf (With Subtitles).mkv" -y
    echo Integrated .ass subtitles into "%%~nf (With Subtitles).mkv"
    ) else (
    echo No .ass subtitle file found for "%%f", skipping.
    )
    )
    REM Use echo( instead of echo. for a reliable blank line.
    echo(
    )
    echo All subtitle integration tasks completed!
    pause

    • This also lists the integrated subtitles as Track 1 - [English] rather than ENG - [English]. Follows suit with my DVD rips.

    '--save-dir', # uncomment and add save path in quotes
    'E:/MakeMKV DVD Reads!', # Value for the save-dir argument
    '-M', # Additional fixed argument to mux
    'format=mkv:muxer=mkvmerge', # Value for the format argument may also be mp4

    • If there was a way to delay the mux by a couple of seconds, you could grab the file before it deletes it.
    But the above method saves a step anyway, as I rip it out as an .ass rather than convert to .ass.

    Anyway, all feedback for v7. What would be really useful is a tool that could just get me the subtitles.
    Normal v6 script for Video and Audio. Which is excellent.
    Last edited by The_Mole_UK; 2nd Oct 2024 at 07:27.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!