Jump to content
LaunchBox Community Forums

Vidsnap Scraper 0.4.10

   (10 reviews)

2 Screenshots

About This File

DISCLAIMER: Use at your own risk! Please read and understand Youtube's terms of service. I will not be held liable for any mis-use of any product or service.

 

This plugin makes use of the open source and unlicensed application, youtube-dl yt-dlp (forked from youtube-dl) to download game videos.

It first downloads videos from the link provided in the metadata from LaunchBox, skipping videos longer than a specified duration, and then searching for videos for missing games based on input search terms.

It is intended for Modern Windows games as this was my need initially. It may work on other platforms but is not well tested.

 

Installation Instructions:

Note:  For this plugin to work, you will need to have yt-dlp.exe (included in .zip). Extract the contents of the .zip folder and place it in your LaunchBox plugins folder.

 

Usage Instructions:

Select a game or multiple games, right-click and select "Download Video Snap."

Adjust the maximum duration if desired.

The "Get Missing videos" checkbox sets whether or not to search for videos of games that don't have URL's in their metadata.

The "Trim videos" checkbox sets whether or not to trim videos after it has been downloaded.

Enter desired search terms for Missing videos.

click "Start" to start the download process.

Games will download asynchronously. resuming downloads is also supported natively.

 

Known Issues:

probably many that I am unaware of.

 

Other:

PLEASE NOTE: I AM NOT A DEVELOPER! I know very little about C# and programming in general, thus probably wont be able to address many issues that you may face. That being said I will try and fix things were I can. I've provided the spagetti source code for anyone to modify, improve, etc. (it seems you need to unblock the forms in the "Resources" folder -> RMB->properties->unblock) 

As of now, i'm more comfortable with the usability of the plugin, however there are still probably many issues, any comments to provide insight/improvement to the code etc. would be much appreciated.

Thanks to @srxz for his source of Youtube Scraper of which this is based.

 

Thanks: 

@srxz @JoeViking245 @C-Beats

 

maikeru86

 

 

Edited by maikeru1986


What's New in Version 0.4.10   See changelog

Released

- [FIXED] quality selection

Best now gets the best video, and data saver gets the smallest size, usually 360p.

However, I don't think this is the best method, so I will implement a resolution selection instead in the future.

  • Like 15
  • Thanks 3
  • Unusual Gem 2

User Feedback

Recommended Comments



23 hours ago, jacobsson said:

@maikeru1986
Thanks for the great plugin, can't live with out it :)
I made an update from your source with some QoL changes, I hope you don't mind! (forgot to include yt-dlp in my former post)

  • Changed so that yt-dlp now handles searching for video sections (no need to download full video anymore)
  • Due to the change above, you can get footage of any hour-long "long play"/"let's play" videos in just a fraction of the time.
  • Removed "EndTime" and introduced "Duration" in its place
  • Some naming scheme changes and refactoring

Vidsnap_Scraper_0.4.8.zip 13.12 MB · 1 download Vidsnap-Scraper-0.4.8-source.zip 3.66 MB · 0 downloads

thats great! I dont mind at all, make changes as you please. im glad someone is taking an interest in the code/functionality part of it.

Link to comment
Share on other sites

11 minutes ago, maikeru1986 said:

dont have time to test all problems, so sometimes i just mention what i would try. i did say in the post it might not work.

I don't understand. My comment was not for you, but for the other user who had uploaded a new version on his own.

Link to comment
Share on other sites

23 hours ago, jacobsson said:

@maikeru1986
Gracias por el excelente complemento, no puedo vivir sin él :)
. Hice una actualización desde su fuente con algunos cambios en la calidad de vida, ¡espero que no le importe! (Olvidé incluir yt-dlp en mi publicación anterior)

  • Se modificó para que yt-dlp ahora maneje la búsqueda de secciones de video (ya no es necesario descargar el video completo)
  • Debido al cambio anterior, puede obtener imágenes de cualquier video de "larga duración"/"vamos a jugar" de una hora en solo una fracción del tiempo.
  • Se eliminó "EndTime" y se introdujo "Duration" en su lugar.
  • Algunos cambios en el esquema de nombres y refactorización

Vidsnap_Scraper_0.4.8.zip 13,12 MB · 1 descarga Vidsnap-Scraper-0.4.8-fuente.zip 3,66 MB · 0 descargas

I have found a bug. The name of the resulting video is not exact. It seems that there is something wrong with the file extension. That is, it creates the video correctly, but it does not result in a video file because the extension mistypes it.

Link to comment
Share on other sites

@Merovingio

Make sure you have ffmpeg.exe in the plugin folder (it should ask you to download it).
If that doesn't help I think you should just resort back to using the regular version of the plugin. 

Edited by jacobsson
Link to comment
Share on other sites

9 hours ago, Merovingio said:

I don't understand. My comment was not for you, but for the other user who had uploaded a new version on his own.

Hey man, I misunderstood, im truely sorry.

Link to comment
Share on other sites

You could make a change to this program to generate an MP3snap scraper,
 being able to download the main themes of the games, and helping everyone to have the music playing in the launchbox menu.
 Can anyone do this for us?
Edited by orcfael
Link to comment
Share on other sites

Thanks a lot for this. Works well for most things, but not all.

I don't know, how exactly the search string looks like, i would think it is platform name and game name. The platform names of LB are exact but sometimes not on Youtube. I checked e.g. "Commodore Amiga" and can not find most of the videos, although they exist. I just guess, it is because on youtube the name is always only "Amiga" without "Commodore".

Wish i could edit the whole search phrase before sending it, or replace the platform name.

Link to comment
Share on other sites

@Steel

The search string is the game name only + additional search terms, then there are flags for no-playlist, match-filter for duration, and quality. and thats about it. Everything after the -o flag is just where the video is saved. (game.VideoUrl at the end is nothing in this case, i think.

youtube_srch.StartInfo.Arguments = $@" ""ytsearch:{CleanInput(game.Title)} {searchTerms}"" --no-playlist --match-filter ""duration <= {maxDuration}"" -f mp4{quality} -o ""\Videos\{CleanInput(game.Platform)}\{CleanInput(game.Title)}.%(ext)s"" {game.VideoUrl}";

Take note that if there is a video already in Launchbox, then it uses that link and doesn't do any searching.

I didn't add platform-specific stuff because it was mainly just for Windows.

You could try adding Amiga only to the search terms and see if that works. but I presume you've tried that.

Link to comment
Share on other sites

Video quality of the downloaded file is 360p by default, the "Best" quality option is checked. The grabbed videos got 1080p on youtube, how can I increase quality?

Link to comment
Share on other sites

19 minutes ago, totoro said:

Video quality of the downloaded file is 360p by default, the "Best" quality option is checked. The grabbed videos got 1080p on youtube, how can I increase quality?

not much you can do besides modify the source, however I think it should be hd by default. maybe youtube/ youtubedlp changed something

Link to comment
Share on other sites

4 hours ago, Partiesplayin said:

Is this still working ? Thinking of giving it a try.

 

You're welcome to try, but it appears to not be working anymore. I'll have to investigate sorry.

Link to comment
Share on other sites

I would love it if someone could fix it, I've been using it in the past, and it was a godsend...

I tried peeping in the source and gpting it, but alas, I'm dumb 🤣🤣

Link to comment
Share on other sites

On 12/13/2024 at 6:49 AM, Partiesplayin said:

Is this still working? Thinking of giving it a try.

 

 

17 hours ago, izzishor said:

I would love it if someone could fix it, I've been using it in the past, and it was a godsend...

I tried peeping in the source and gpting it, but alas, I'm dumb🤣🤣

 

On 12/13/2024 at 11:29 AM, maikeru1986 said:

You're welcome to try, but it appears to not be working anymore. I'll have to investigate sorry.

@Partiesplayin @izzishor I've uploaded a new version, which seems to be working correctly on my side. Please have a try and see if it works for you.

If it does work now, please check your local drive for a "videos" folder, and within that check for platform folders containing the videos you've previously attempted to download.

Link to comment
Share on other sites

1 hour ago, izzishor said:

It works, it had a problem 'finding videos' before, now it worked 🫶 Thank you!

just for curiousity, what was the 'finding videos' problem?

Link to comment
Share on other sites

Thank you, it works again but:

- It doesn't always search (even though the video is on YT)
- It happens that I find a completely different video (name) than the name of the game hmm

The Question is whether it will be possible in the future:
Choice of quality, although 720p currently downloads in 480p max, even if the video is in 1080p, it's better than nothing, but... ;)

Link to comment
Share on other sites

2 hours ago, KRI$85 said:

Thank you, it works again but:

- It doesn't always search (even though the video is on YT)

if the game has a video url in the metadata it will download that instead and not search. not sure if all videos are from youtube still.

2 hours ago, KRI$85 said:

- It happens that I find a completely different video (name) than the name of the game hmm

The Question is whether it will be possible in the future:
Choice of quality, although 720p currently downloads in 480p max, even if the video is in 1080p, it's better than nothing, but... ;)

not sure about the game name thing, it never really happens to me. its itended for windows games mainly and those generally get found quite well. ill think about it but not sure ill come up with a solution.

Its not the first time someone mentions the quality issue. previous versions only downloaded the best quality but video sizes would be large,but I think it may be best to go back to that? if you are trimming videos as well that could also maybe have an effect, i think it may be re encoded. I will have to relook at the code as well as yt-dlp and ffmpeg updates.

Are you saying that all your videos are in 480p?

  • Like 1
Link to comment
Share on other sites

21 hours ago, KRI$85 said:

Thank you, it works again but:

- It doesn't always search (even though the video is on YT)
- It happens that I find a completely different video (name) than the name of the game hmm

The Question is whether it will be possible in the future:
Choice of quality, although 720p currently downloads in 480p max, even if the video is in 1080p, it's better than nothing, but... ;)

@KRI$85 I uploaded a new version, which I believe corrects the quality issue, but I think you're right: I will implement a simple resolution selection in the future.

Still not sure about the search or video name thing, though. Could be videoURL in launchbox but not quite sure.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...