• 1 Post
  • 16 Comments
Joined 6 months ago
cake
Cake day: March 28th, 2024

help-circle





  • Setup:

    Download Seal and go to Settings > General. From there click on the update yt-dlp to make sure you’re on the latest yt-dlp build. No head to Custom command > New template. Put your label of choice and in the “Command template” section put in your custom command.

    To create a good custom command I highly recommend you browse TheFrenchGhosty’s Ultimate YouTube-DL Scripts Collection’s Watch on Mobile Devices Script to get an idea of what you would want (I’ll give an example template later on based on theirs).

    Once your command is done click “Done”. If you have not configured the output directory yet, go to Settings > Download directory > Custom command directory (Usually you’ll want this in the Download folder. On android: /storage/emulated/0/Download/<Name-Of-Your-Choosing> Make sure to have “Configure before download” under Settings > General, enabled. From there, exit the app.

    Go to the app you want to download your media from (ie. Browser, Youtube). If you are in a browser, long press the url bar of your link and click “Share”. You will be presented a menu to share the selected link. Long press on the Seal icon marked as “Quick Download”. You will be presented with a way to pin the app. This will allow this specific app you’re in to have Seal be presented right away when you want to share a link and be prompted with the “Configure before download” menu. From there, select “Commands” as “Download type” and click on the template’s label you created earlier. You can now click “Download” and enjoy.

    You could avoid the hussle of setting up a custom command and tweak a few things in the app’s offered options. I just prefer to use my usual commands that I use to download on my phone as well.

    As for the command, here’s a short template I just made from modifying TheFrenchGhosty’s scripts as mentionned above (haven’t tested it but should theoritically work):

    yt-dlp --format "(bestvideo[vcodec^=avc1][height=1080][fps>30]/bestvideo[vcodec^=avc1][height=1080]/bestvideo[vcodec^=avc1][height=720][fps>30]/bestvideo[vcodec^=avc1][height=720]/bestvideo[vcodec^=avc1][height=480][fps>30]/bestvideo[vcodec^=avc1][height=480]/bestvideo[vcodec^=avc1][height=360][fps>30]/bestvideo[vcodec^=avc1][height=360]/bestvideo[vcodec^=avc1][height=240][fps>30]/bestvideo[vcodec^=avc1][height=240]/bestvideo[vcodec^=avc1][height=144][fps>30]/bestvideo[vcodec^=avc1][height=144]/bestvideo[vcodec^=avc1])+(bestaudio[acodec^=mp4a]/bestaudio)/best" --force-ipv4 --sleep-requests 1 --sleep-interval 5 --max-sleep-interval 30 --ignore-errors --no-continue --no-overwrites --add-metadata --parse-metadata "%(title)s:%(meta_title)s" --parse-metadata "%(uploader)s:%(meta_artist)s" --no-write-description --check-formats --concurrent-fragments 4 --output "%(title)s - %(uploader)s (%(upload_date)s).%(ext)s --merge-output-format "mkv" --throttled-rate 100K

    Not all the info here is relevant for each use cases but I hope this gives ideas and helps even a bit.



  • If you are technical enough you can use an Xposed module to prevent that. Like one that reduces the intake of energy while charging. Some ROMs also offer that built-in.

    Try to see what your charger is. Maybe your phone is using “fast charging” which might make it charge faster but it will definitely get hotter. A charger that is compatible with your phone and without fast-charging capabilities might help your phone not be as hot.

    Lastly, and this is less about the energy part and more about safety, make sure if you charge it unatended that it is away from anything flammable. While there is a very small change something like that would ever happen I wouldn’t take the risk.



  • If you do not download often or don’t mind the longer time it might take you can do the following.

    Before the URI (URL if you prefer) of the post, put view-source:, you can then proceed to search with the “Find in page” tool, or however it might be named for your android browser. In the case of this site you’ll usually search for mp4 files so just search “.mp4” and you should find the file you want to download.

    Sometimes you might find different file extensions on the same site for the same type of post because the uploader’ files are directly the ones being posted and not converted by the site itself. In this case you can browse the source a little by searching for a potential name of the file or a HTML tag.

    If that is too much of a hassle, I believe applications like Seal (found on FDroid) are able to download from such websites. There’s no reason for it not to since it uses yt-dlp.

    Hope that helps.

    PS: If you decide to use Seal I could share a very fast workflow if it happens to work.


  • You did mention a “main drive”. I don’t know what’s taking all that space on your SSD but if you have a media library that takes some space you could move that to a connected HDD. While HDDs aren’t good as a boot drive it does the job well enough with most “standard” quality media. So can be said for documents and more obviously. You can then auto-mount your other drive to be inside your home directory for seemless access.

    One thing that isn’t mentionned but I’ll just say this just in case. Always have external backups. I’ve scared myself way too many times thinking I had lost my main drive’s data just to find it the next day on one of my backup. Really a life saver if your setup has a problem where you find that one forum post from 12y ago with a “Nvm I fixed it” marked as [FIXED].

    Other than that, thanks for sharing and with the solution at that.



  • It wasn’t clear, my bad. I meant to say that by design, on the stock OS, it wasnt meant to play multiple audio streams at once but that it was possible with some modifications either to the OS or in-app (by some ways that are beyond my knowledge).

    Now that you mention it, I did see something about API level 31 some time ago and haven’t paid attention to it much. Thanks for the information.

    True, I did jump into conclusion way too fast, I’ll be more careful.

    My phone isn’t rooted but thanks. I have no real use for using multiple audio streams at the same times anyway. I just remembered being able to at one point, wanted to point it out and went overboard with my comment.


  • Walking Coffin@lemmy.dbzer0.comtoMicroblog Memes@lemmy.worldTruth
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    3 months ago

    You may be right. However I think it might also be how most apps are written.

    Disclaimer: I am no audio expert nor am I knowledgable enough in mobile OSs to confirm it but I did manage to build myself a ROM for my unsupported phone which led me to see a lot of things under the hood.

    The way Android (AOSP) is made, and Im sure the same is true for iOS, easily accessible APIs are made available for devs to implement them without thinking much about how the OS on your phone will handle it. Multiple audio streams are definitely a thing on mobile OSs, for example if I want a Youtube video playing along side a phone call and music, I can. It’s just not practical if you’re an attention grabber company to let other audio streams interrupt the very important audio that they want you to listen to.

    Anyway all in all, you’re right that mobile OSs are designed to only let one app access the audio channel because Google wants to keep you on Youtube, all their partners paying for their apps to get on Android want the same thing and I can imagine the same is done on iOS and other manufacturer’s OSs.