Announcement

Collapse
No announcement yet.

Request: Download Menu on Youtube Module from Copied URLs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    YouTube Request: Download Menu on Youtube Module from Copied URLs

    When you copy a URL from youtube from a different browser, SF asks if you want to download the video, but it does not give you the full menu to select what type of download you want. And the offered resolutions it gives you are completely inaccurate, such as offering 4K, 8K etc even if not available.
    Can we get the program to use the same selection screen?
    If you use the built in youtube browser, yes, it gives you a menu with codec and resolution choices, as well as a few other options. And maybe this is why I thought you could not download HDR? I am experimenting now.

    #2
    Also noticed in the settings screen that audio is set to "ask me every time" but I have never been asked, in either method of download.
    And for subtitles, how do I NOT download them? Best I can do is force them to an SRT file and then delete it when it is done. Using the copy url method, that dialog window has a checkbox that I can turn off for downloading subtitles. That method does not do AV1 or VP9 though.


    I also have autoplay (on the actual player) turned OFF, but the video still plays in the background while I am making my download choices.

    1080p is not detected on this video, but it plays 1080 in a browser. I was able to get a VP9 copy with Open Video Downloader. I am trying to rebuild some of my collection with AV1 encodes. Aerosmith - I Don't Want to Miss a Thing (Official HD Video)


    YouTube でお気に入りの動画や音楽を楽しみ、オリジナルのコンテンツをアップロードして友だちや家族、世界中の人たちと共有しましょう。
    Last edited by MrGrackle; 11-18-2023, 01:12 AM.

    Comment


      #3
      Originally posted by MrGrackle View Post
      And for subtitles, how do I NOT download them? Best I can do is force them to an SRT file and then delete it when it is done.
      You can just uncheck all subtitles and it won't download them.

      Originally posted by MrGrackle View Post
      1080p is not detected on this video, but it plays 1080 in a browser. I was able to get a VP9 copy with Open Video Downloader. I am trying to rebuild some of my collection with AV1 encodes. Aerosmith - I Don't Want to Miss a Thing (Official HD Video)


      https://www.youtube.com/watch?v=JkK8g6FMEXE
      As i have explained in another thread, the logic for the formatted resolution is completely wrong. That is why they should display the actual resolution (1920x916) instead of the formatted 1080p/720p/576p/480p/360p stuff.

      StreamFab does detect the 1080p AV1 but it tells you it is 720p:

      Click image for larger version

Name:	image.png
Views:	263
Size:	79.6 KB
ID:	433134

      ​My suggestion for you until StreamFab fixes this would be to download yt-dlp and use it to list which formats are available so you can compare the sizes with what StreamFab shows you.

      That way you can select the right one. The yt-dlp command i use is:

      Code:
      yt-dlp.exe -U -F --no-geo-bypass --cookies-from-browser edge "%url%"
      This is used in a batch file so that is why the URL is a variable so adjust it to how you will run it. Obviously if your browser is Chrome or Firefox, adjust that too.

      So when using
      Code:
      yt-dlp.exe -U -F --no-geo-bypass --cookies-from-browser edge https://www.youtube.com/watch?v=JkK8g6FMEXE
      , this is what you get:

      Click image for larger version

Name:	image.png
Views:	177
Size:	286.4 KB
ID:	433135

      Comment


        #4


        YouTube でお気に入りの動画や音楽を楽しみ、オリジナルのコンテンツをアップロードして友だちや家族、世界中の人たちと共有しましょう。


        Thanks for the response. I must have missed the part of using the other program to verify what is there, but it is certainly a good idea with the current state of the downloader. I did find a second video that showed up FHD and of better quality, but the encoder didn't crop the black bars because of the burned in subs when the movie parts are talking. Essentially what you are saying is SD looks at vertical resolution and tries to match it to something close, in a downward direction. Any idea what the threshold is for 2160p before it reports 1080p? Is it literally 2159?

        As far as the subtitle deselect option, what I have been running into is that after say maybe a dozen videos, the option popped up, and yes, I deselected it. Maybe downloading a video that doesn't offer subs breaks that part of the program temporarily, then it goes awhile longer without that option, and then it pops up again, having to deselect it yet again. There needs to be a persistent deselect option somewhere too.

        Probably related to the bug I posted on the error tracker, when you copy a URL from a browser, it doesn't pass the URL through the actual youtube downloader, that's why the download screen you posted above is not the download screen we get.
        Last edited by MrGrackle; 11-18-2023, 05:36 PM.

        Comment


          #5
          Ironically, this module is the only module that analyzes an episode when you click on it to download, copying the url passes through a different process, resulting in undesirable effects.

          Hey did Cats4U say you can manually update the yt-dlp with no ill effects or is it hard coded? It mostly works now but that could change.

          Comment


            #6
            StreamFab doesn't use yt-dlp directly. They use a program that they have named YoutubeToMP3Process and an associated service program named YoutubeToMP3Service. YoutubeToMP3Process is a custom compiled version of yt-dlp with a few StreamFab-related options added to it. You can NOT do a direct replacement of YouToMP3Process with a renamed yt-dlp file. It will not work. Believe me, I tried several times. So, we are at the developer's mercy for what version of yt-dlp is being used. They just need to compile the latest yt-dlp with the StreamFab options added and name it YoutubeToMP3Process. YoutubeToMP3Service seems to be closely related to YoutubeToMP3Process but they are not identical. I haven't really explored YoutubeToMP3Process all that much.
            Having said that, you can do a direct replacement of several programs within StreamFab with later versions that are available. Those programs, which I routinely update with every StreamFab update, are mkvmerge.exe, mediainfo.dll, arias2c.exe, atomicparsley.exe and ffmpeg.exe (and its support files). The ffmpeg update is tricky because StreamFab uses both the static and non-static forms of the program for different things in StreamFab. I've done these updates for about a year with no adverse effects (and to be truthful, not much added benefit other than knowing I'm using the latest version with all the latest bug and security fixes included). At this point I do not recommend that anyone else make these changes unless you know what you are doing and have studied the operations of these files like I have. I take no responsibility for anything you might screw up. I would love to be able to personally update the "YoutubeToMP3" files and update StreamFab from Python 3.8 up to the latest 3.12. Based on what I've read, Python 3.11 and beyond show a great increase in processing speed. Unfortunately, the version of Python used is presently locked into 3.8 in StreamFab's source code and can't be changed by anyone but the developer. Other parts of StreamFab that I'd like to explore updating in the future, if possible, are QCEF/CEF and Qt. I've also played around with upping Widevine DRM to the latest 4.10.2710.0 with little success because of disappearing files. StreamFab now monitors the Widevine files but is hard coded to restore an older version of Widevine, 4.10.2557.0, if a disappearance occurs. The developer needs to find out what is causing the disappearances and fix it rather than using a bandaid and just restoring after a disappearance occurs. Also, using the latest Widevine will provide protection for the future when the various streamers do make their DRM changes that will eventually come. Without a doubt the changes will be based on 4.10.2710.0 and not 4.10.2557.0.


            Last edited by Cats4U; 11-21-2023, 07:16 AM.

            Comment


              #7
              Originally posted by Cats4U View Post
              StreamFab doesn't use yt-dlp directly. They use a program that they have named YoutubeToMP3Process and an associated service program named YoutubeToMP3Service. YoutubeToMP3Process is a custom compiled version of yt-dlp with a few StreamFab-related options added to it. You can NOT do a direct replacement of YouToMP3Process with a renamed yt-dlp file. It will not work. Believe me, I tried several times. So, we are at the developer's mercy for what version of yt-dlp is being used. They just need to compile the latest yt-dlp with the StreamFab options added and name it YoutubeToMP3Process. YoutubeToMP3Service seems to be closely related to YoutubeToMP3Process but they are not identical. I haven't really explored YoutubeToMP3Process all that much.

              Thanks for this. Good information. I have seen bits and pieces throughout the forums when the topic comes up of what you have done, one file or another.
              Why SF doesn't automatically go with the latest yt-dlp every time they release a new version (??), We just got notice of 6151. Yeah, a weekend update, ready to test it out?

              Could I suggest a write up of the various modules you do replace, probably more specifically the file locations? If not a pinned message, maybe on the bugtracker site for easy reference? I am sure I could go on what you just said here and duplicate it on my system, but if the files are in some of those obscure folders it would save a bit of time for anyone wanting to do it.
              Last edited by MrGrackle; 11-23-2023, 04:03 PM.

              Comment


                #8
                Too be honest I'd prefer that just by my stating that I had done the updating to new versions of certain files that the developer will take the hint that it can easily be done and do it. I don't mind that they are being cautious in their changes. I go into it cautious as well fearing that any change I make might put the whole program out of action. I found that out with the YoutubeToMP3Process change with the renamed yt-dlp. As previously mentioned, certain versions of certain programs are hard coded in the source and can only be changed by the developer.
                I'll think about putting an instruction doc together. I've thought about it many times in the past. But as I said, I think it is best if the developer does it for everyone. The programs that he has control over are the ones that will have the most effect on SF speed and accuracy.
                Now that we have JPP72(Jack) as an advocate liaison or as DVDFab refers to it as an Influencer, I'm hopeful that we can move SF ahead into being the best downloader ever.

                Comment

                Working...
                X