4k downloader self-signed certificate

Discussion in 'encryption problems' started by lucd, Nov 22, 2021.

  1. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    Btw, if you don't want to see the advertisements in the 4k downloader, just put this in your hosts file:
    Code:
    0.0.0.0 dl.4kdownload.com
    Advertisements are fetched from:
    Code:
    https://dl.4kdownload.com/app/advertisement/videodownloader.xml
    Will stop any telemetry as well.
    Caveat:
    It can't search for updates from within the program and if you want to download a new version, you have to temporarily comment out that line in the hosts file and restart your browser.

    It connects to `sa.openmedia.co` as well (via http !), sending your client ID amongst other info....
    (found in a log file).
    When blocking that connection via the hosts file as well, the program is still functional.

    Daily download count is stored in it's config file on Linux.
    In Windows it might be in the registry. Haven't checked that.
     
    Last edited: Nov 28, 2021
  2. Deletedmessiah

    Deletedmessiah Registered Member

    Joined:
    Feb 20, 2018
    Posts:
    130
    Location:
    Outer space
    I use yt-dlg. Would you recommend any other yt-dlp gui over it? @nicolaasjan
     
  3. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    yt-dlg by Oleksis is fine. :)
    It was forked from youtube-DLG by MrS0m30n3, which is abandoned.

    But as I don't use GUI's myself, I really don't know if there are better ones.
     
  4. Deletedmessiah

    Deletedmessiah Registered Member

    Joined:
    Feb 20, 2018
    Posts:
    130
    Location:
    Outer space
    Thanks. I'm too lazy for CLI myself.
     
  5. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    You can secure any folder that you like of course, but most people use the Downloads and Documents folder to store data. I also protect the Vivaldi profile folder, this should block non-trusted apps from getting access to browser passwords.

    Basically, on my system only a couple of apps are allowed to access protected folders and to make outbound connections. This should block most apps from the ability to steal any data. I use Secure Folders and TinyWall for this stuff, they both block stuff without showing any alerts, which I prefer.
     
  6. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,807
    Location:
    .
    And drives and single files too, of course. Btw I wish its developer could come back and revive it, it needs some fixes for USB drives inserted in the same port.
     
  7. lucd

    lucd Registered Member

    Joined:
    Jan 30, 2018
    Posts:
    782
    Location:
    Island of Woman
    thanks, it seams to me it is a privacy nightmare

    if you find time can you tell me/show me how to do that, I can see you can add apps to trusted list and lock drives/pendrives , but fine graining an app to be able to use appdata but not downloads I am not sure how to set up - it would be golden to have
     
  8. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    I believe this is not possible, it's an ''all or nothing'' approach. With that I mean, trusted apps will always get access to all protected folders.
     
  9. lucd

    lucd Registered Member

    Joined:
    Jan 30, 2018
    Posts:
    782
    Location:
    Island of Woman
    so you lock a pendrive, but if you then add a trusted app , e.g. trusted exe that trusted exe can access pendrive but nothing else can?

    also if you lock a pendrive and you still want to access and modify content in the pendrive (so you want that only you can access it), would you need to add explorer.exe and perhaps word products to the trusted list I think?

    just guessing
     
    Last edited: Dec 9, 2021
  10. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    Yes correct, trusted apps are allowed to access all files. If you make files hidden and want those files to be visible you need to add Windows Explorer to the trusted apps list.
     
  11. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    For years, I used 4K Video Downloader, first on Windows, later the portable version on Kubuntu.
    Recently, they came up with a new design, 4K Video Downloader+ 1.0, with 'in-app browser'.
    I don't need such 'in-app browser', and also, on Kubuntu, the portable version looks as if it has a dark mode gone wrong (and there is no light mode option). I guess it wasn't designed to look good on Kubuntu, only on Ubuntu.

    So I'm looking at alternatives,
    yt-dlg by Oleksis, as snap,
    and Open Video Downloader by StefanLobbenmeier (forked from jely2002/youtube-dl-gui), as AppImage.

    @Deletedmessiah,
    You mentioned yt-dlg and sponsorblock.
    I don't see anything mentioned about sponsorblock in the yt-dlg documentation.
    In the Open Video Downloader settings, I see sponsorblock options.

    How do you use sponsorblock with yt-dlg?
    I thought sponsorblock was a browser add-on for YouTube viewing, I don't know about the need for sponsorblock for downloading.

    Using 4K Video Downloader, no ads/sponsors are included in downloads.
    Is this different with yt-dlg and/or Open Video Downloader, do they need the use of sponsorblock to exclude ads/sponsors?
     
  12. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    Since sponsorblock is supported by yt-dlp, you can add `--sponsorblock-remove all` to "Options ---> Extra" in yt-dlg :):

    https://i.postimg.cc/wBy5SNnF/Screenshot-20230717.png

    Try with e.g. https://www.youtube.com/watch?v=MWMpe-SOsuI.
    (14min. video saved as 12min.)
     
    Last edited: Jul 17, 2023
  13. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    Thanks very much, @nicolaasjan.
    However, --sponsorblock-remove all, added to Options\Extra in yt-dlg, didn't make a difference in downloading the suggested YouTube video. The duration is still 14:01.

    Also, using yt-dlg snap, I have a hard time selecting file quality and file size.
    There doesn't seem to be a simple option to select file quality and file size.
    Selecting for instance mp4 1080p does not work.
    And when I add -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio", that results in a massive 1 GiB video and separate 13 MiB audio.
    Using yt-dlg doesn't come easy to me.

    I may be spoiled using 4K Video Downloader, which makes it easy to select file quality and file size, for instance 1080p MP4 AV01 94.2 MB, or 1080p MP4 H264 185.6 MB.

    Also, using Open Video Downloader by StefanLobbenmeier there's an easy option to select file quality and file size.

    If I want to use yt-dlg, I still have a lot to learn, I suppose.
     
  14. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    You need FFmpeg in your PATH as well. You can get a bleeding-edge daily build from here.
    Put 'ffmpeg' and 'ffprobe' in '/usr/local/bin'.

    Don't know if "snap" will use that however. If not, just use the "yt-dlg" binary from Releases and put it in '/usr/local/bin'.
    That didn't work here either. o_O

    Try this:
    Code:
    -f bestvideo[height<=1080][ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/best[ext=mp4]/best
    Then you get a 1080p mp4 with h264 codec that will play hardware accelerated on most Linux systems. :)
     
    Last edited: Jul 17, 2023
  15. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    Thanks very much, @nicolaasjan.

    FFmpeg is installed as a dependency of soundKonverter, but now I really doubt if it can be used by snap applications.
    Your code resulted in separate video and audio files.
    The log says: "WARNING: You have requested merging of multiple formats but ffmpeg is not installed. The formats won't be merged."

    Thanks for your suggestion to put ffmpeg and ffprobe, or the yt-dlg binary in /usr/local/bin.
    However, I don't like the idea of putting binaries in root directories, I'm not used to that. I prefer to use what's offered in the repositories for Kubuntu, or use a snap or a portable version.

    Also, I'm afraid I would need to learn a lot about yt-dlp CLI code to enjoy using yt-dlg. That was not what I had in mind. The idea was to use yt-dlg by Oleksis, or Open Video Downloader by StefanLobbenmeier, as an easy-to-use replacement for 4K Video Downloader. But yt-dlg doesn't seem that simple.
    Perhaps Open Video Downloader can be an option, or I must stick with 4K Video Downloader, which is simple to use and just works.

    Thanks very much once again. :thumb:
     
  16. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    Alternatively, you can put them in the user folder '~/bin' if that folder exists (and is in your PATH) or in '~/.local/bin'.
     
  17. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    Not much CLI code is needed for basic downloading. :)
    By default, yt-dlp will get the best possible quality.
    (extensive list of options here)

    The easiest way to use it, is to make a config file:
    Code:
    ~/.config/yt-dlp/config
    And put e.g. these lines in it:
    Code:
    -o ~/Videos/%(title)s.%(ext)s
    -f bestvideo[height<=1080][ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/best[ext=mp4]/best
    --no-mtime
    --add-metadata
    --embed-thumbnail
    --sponsorblock-remove all
    Then just do in terminal:
    Code:
    yt-dlp <URL>
    When using yt-dlg, it will read that file as well.
     
  18. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    No ~/bin or ~/.local/bin, so I'd need to create the directory.
    Still, it would feel rather messy to me. I like packages to be updated automatically, or to use an AppImage or a portable application that I can simply replace to update it. I don't want extra ffmpeg, ffprobe, and/or yt-dlg binaries to keep an eye on for updates.
    Not to mention the learning curve to use yt-dlp CLI code.

    Thanks once more, nicolaasjan. :thumb:
    But I think I'll stick with 4K Video Downloader, and perhaps Open Video Downloader by StefanLobbenmeier.
     
  19. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    890
    Location:
    The Netherlands
    Didn't know about that one.
    I see it is a fork of the discontinued Open Video Downloader from jely2002.

    I made a post about this on youtube-dl's subreddit, so they can update their Wiki. :)
     
  20. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    Ah, thanks for reporting. :thumb:
    I had been looking for a way to report this, but it was not obvious to me how to do so.
    Good to see werid updated the wiki already.
     
  21. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    2,857
    Location:
    the Netherlands
    The Open Video Downloader AppImage successfully puts ffmpeg and ffprobe in ~/.youtube-dl-gui.
    I don't know why the yt-dlg snap couldn't do a similar thing. I uninstalled it.
    So far for this off-topic in this thread.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.