
maikeru1986
-
Posts
69 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Downloads
Gallery
Blogs
Posts posted by maikeru1986
-
-
Hi there, thanks for the response!
however, I'm not sure I fully understand. Sorry to be a noob at this, and apologies for my lack of knowledge in this regard.
So IGame.GetNextVideoFilePath gives a string to the lines of "Videos\<platform>\<gamename>-01",I use yt-dlp to dowload the videos, and it requires an output path. If I give it this, it will create a folder Videos\<platform>\<gamename>-01 from its root (which in this case is the plugins folder).
How do I get from there to the actual video folder without specifying the full path?
Sorry if my explanation is poor.
-
Hi there,
I have a plugin (Vidsnap Scraper) that downloads game snaps and places them in the Videos directory. It generally works well, but I’ve encountered a user who has their LaunchBox installation on an external drive and is experiencing some issues.
To determine the LaunchBox path, I use Reflection and then append
"\Videos\filename.ext"
as follows:private string launchBoxDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly()?.Location) ?? string.Empty;
This usually results in a path like:
C:\Users\Username\LaunchBox\Core\Videos\gamename.mp4
However, I’ve noticed that the Videos folder inside Core is actually a link to the Videos folder in the main LaunchBox directory. This link seems to be created when LaunchBox starts and removed when it closes.
Interestingly, on an older thumb drive, LaunchBox doesn’t create a link but instead generates a physical folder, whereas on another thumb drive, it works correctly. I suspect this is causing issues with my plugin.
Would removing \Core from the LaunchBox directory path be a viable solution, or could this introduce potential issues in the future?
Any help would be greatly appreciated!
-
Do you still have issues, have you perhaps tried this?...
On 7/3/2024 at 5:02 AM, jiboreid said:Also wanted to report I'm having a hard time getting this to work. May be an incompatibility with the newer updates?
Edit: Was able to get it working by downloading the newest update to the file listed above from Github.
-
On 7/19/2022 at 5:04 PM, JoJoJuJu59 said:
Heh, just tried it now with the same version that was giving me trouble on the same build of LB and it works fine. Must have been the older Windows build I was using or something. Love the new added features, btw, and it runs much smoother than the older version I was using where it would freeze up my LB until the video was downloaded. Great job on this plugin. Thanks.
Cool, glad to hear it's working for you now.
btw, unless it's very old even a previous version shouldn't freeze up launchbox as it should be asyncronous, that's interesting. did it freeze up your computer as well?
-
On 5/15/2022 at 5:05 PM, JoJoJuJu59 said:
This didn't work for me (v0.47). I'm on v12.11 of LB. Putting the new builds of Vidsnap Scraper into my Plugins folder completely crashes/hangs Launchbox at the splash-screen so I had to go back to an old version of Vidsnap Scraper that was in an earlier beta form but with missing features. Would love to try the newer builds with added features because it's one of the more useful plugins for me and I appreciate the author's work.
Sorry only seeing this now. I'll have a look.
Edit:
I think i'll need some more info, not sure what, but it seems to be working on my end with LB v12.11 and Vidsnap Scraper v0.47 (I downloaded it from here again), see below. Plugins can definitely make LB hang though, whats the latest version that worked for you?
-
On 12/13/2021 at 2:29 AM, darreldearth said:
Awesome! only thing that could make it better would be to add an option to paste in a specific URL to a chosen Youtube video
Also, seems that the plugin downloads the same video regardless of what keywords i use. Seems like its stuck on using the Trailer keyword. Only way i can get it to download something different is to lower the maximum length from 600 to something like 200
1) I had a look at the above issue, but I can't seem to completely replicate it and also I'm thinking that I wouldn't be able to fix it.
It could be the way ytsearch function works in yt-dlp,but it's not as well documented as the other functions and I'm not sure which parameters to change. However, it could possibly be youtube itself giving you the same video regardless of search terms (I don't know how youtube algorythms work)???
I did change some parameters and have uploaded a new version, but I doubt it changed anything at all.
Below are some screenshots:
2) I thought about adding a custom URL link, but would then only be for 1 video at a time, hence I do suggest just pasting in the video URL in the edit menu of the game before running the plugin. i'll add it to the todo list and have a look again when I get some free time.
Sorry I wasn't much help on this one.
-
On 12/13/2021 at 2:29 AM, darreldearth said:
Awesome! only thing that could make it better would be to add an option to paste in a specific URL to a chosen Youtube video
Also, seems that the plugin downloads the same video regardless of what keywords i use. Seems like its stuck on using the Trailer keyword. Only way i can get it to download something different is to lower the maximum length from 600 to something like 200
That's interesting, I'll have a look into the trailer thing when I get a chance and get back to you . with regards to the link, that should be easy to do but not what I was going for with the plugin as if you are already going for a specific link manually then it might be easier just to use youtube-dl or yt-dlp to do that? alternatively, you could paste in the video url textbox before running the plugin.
nevertheless, I'll see what I can do.
-
1
-
-
4 hours ago, maikeru1986 said:
Oh I'll take that out no problem. It was for testing purposes mainly.
commented out those messages, didn't actually test it but fairly sure it should work. Let me know if it doesn't. I'll keep in mind for a future version maybe to write an error log.
-
1
-
-
14 hours ago, OdinsPlayground said:
Just tested and it does the job! Don't mind it taking a bit longer to convert, as long as it's working.
Bug / inconvenience: Getting 50++ pop-ups I have to close individually after parsing. It's every game it doesn't find. I think the list given at the end of which games didn't download is enough.
Oh I'll take that out no problem. It was for testing purposes mainly.
-
On 7/20/2021 at 7:27 PM, OdinsPlayground said:
@maikeru1986 No worries regarding the "request", more of an "This would be awesome in the future"-idea, but obviously something that would require a lot of work. Not expecting anything. Definitely fixing the timeframe bug would be the biggest actual request, so it's in a workable state.
Would the AviDemux work to fix it as C-Beats mentioned? Using that codec instead? I see they have dev tools and it's open source. Thanks for the suggestions @C-Beats, been looking for a Windows app to do that.
minor update as I said I would earlier. Tested it on 55 games, downloaded and trimmed 52/55, but that's not necessarily the trimming (I actually think it just didn't find those videos).
Trimming takes much longer though as it has to re-encode the video.
-
1
-
-
Yes, @C-Beats is right. The problem is I opted to copy the videos instead of re-encode them. I did this because copying is much quicker (tbh I didn't test re-encoding to see the how long it would take). I'll do this as a quick fix in the mean time (at least I think it should work).
I'll also check out AviDemux. However what I would like ultimately is to only download a portion of a video.
-
1
-
-
Yeah there's definitely some bugs I need to work out or at least some learning to do with FFmpeg.
- I think the dead seconds is the part between the closest previous keyframe and the cut position. FFmpeg supposedly uses an edit list to instruct the player to start from the cut position, but unfortunately not all players support edit lists.
- I also noticed it getting stuck on some videos sometimes, which hasn't heppened before, but sometimes that same video would complete in another run. I didn't change anything else relating to the downloading part however I did notice once FFmpeg is in the same folder as youtube-dl it allows downloading of higher quality/different formats.
I'll look into these issues as soon as I have a bit more free time, which unfortunately is hard to come by at the moment.
With regards to previewing videos etc. I doubt that would be anytime soon, or at all, sorry. Besides being a significant developement to the current, theres also the issue of the plugin potentially "scraping" 100's of videos which could lead to issues with google/youtube putting up capchas or IP bans... who knows. I guess I should put a disclaimer in the original post. But who knows, I might look into it one day as that would be kinda cool.
-
On 1/19/2021 at 1:29 AM, OdinsPlayground said:
I've been looking for something like this. But any chance you could apply a video time crop? For example: the plugin / search might find a 5min video, but crops it to 30 sec if the settings is set to crop to that. Would make it a lot more useful, instead of downloading lengthy gameplay videos. As well as higher compatibility in finding videos that can be used.
I've put together something that kinda works as a start. please try v0.3.0:
-
1
-
-
Na no other suggestions yet.
I'll maybe look into it from around Tuesday or so, but it'll take me quite a while and i cant make any promises as Im not a developer, just like to mess around.
Google search may have quotas etc so may be easier to use a third party like Vidsnap Scraper does.
Ill be in touch.
-
So this is just for media that doesnt already exist?
-
3 hours ago, JoJoJuJu59 said:
The eagle has landed! It works with 11.4 ? Kudos to both you & @JoeViking245 It's a shame that there isn't a YT-like service catering strictly to older DOS era games since I only get about 20% success rate when scraping for MS-DOS games (was intending to use it with eXoDOS to get those missing video snaps)
No problem. Yeah, I intend to implement "search terms" input and some things to increase success rate, maybe have more results and pick the best match (honestly not sure), but unfortunately depends on what YT has. I did intend it for Modern Windows titles as i don't think emu-movies has many (see below).
3 hours ago, JoJoJuJu59 said:I won't use emu movies anymore since they renewed my subscription without authorization so this is a handy little utility Thx, guys ?
Yeah, I'm kinda banned from emu-movies but that's completely my fault (created a second account cos I forgot my first, then remembered my first and used both... long story).
However, I think a service/database like that (LB also) takes time and effort and they probably deserve compensation for it, so it's always good to support where we can.
Vidsnap_Scraper will remain free though?
-
On 12/22/2020 at 6:25 PM, JoJoJuJu59 said:
Yes, that would be great if you could make it more compatible with older builds...
@JoJoJuJu59 Could you try this one with your LB 11.3?
if it works, kudo's to @JoeViking245.
If it doesn't, maybe you could consider updating to 11.8 as it's pretty good imo
-
1
-
-
47 minutes ago, JoeViking245 said:
No. In fact attempting that may actually cause more problems than do good.
The issue here was the plugin looks for Unbroken.Launchbox.Plugins.dll [v11.8 vs v11.4]. Rightfully so, as that's the current release. You might be able to compile it with reference to an older Unbroken.Launchbox.Plugins.dll version (say, 11.4). As I think about it, I haven't updated my plugins in a while and I think they still work.
I think the answer it to design for [on] the latest stable release and users be updated to the latest stable release.
Ah I see. Was just thinking of the people who bought an older version. I guess if there are many requests for it (doubtful) I might look into it, but otherwise I think you're absolutely right.
-
1
-
-
Thanks for the heads up,
I'm not sure about the timeline of launchbox and which framework which version requires, could I change Vidsnap_scraper to be more backwards compatible by lowering .netframework version???
-
6 minutes ago, JoJoJuJu59 said:
and it just won't show up, neither this nor the newest youtube scraper. Oh well.
Thats interesting, thats about the only bits that are the same between the two codes, but I doubt it's that as its pretty standard stuff... perhaps its a .netframework thing?
Anyway, if I think of anything i'll get back to you.
-
1
-
-
Ok so you don't even get the icon/item in the right-click menu? and you do have other working plugins, and there are no errors during LB startup.
Thats right before anything even really starts so not sure what that could be but I will try to look into it for you but.
you're on windows 10? which game are you testing out? platform? Sorry these are all shots in the dark.
Perhaps someone else here could shed some light.
-
11 hours ago, JoJoJuJu59 said:
Doesn't work for me. I'm using Launchbox 11.4 (premium). I've extracted both Vidsnap_Scraper.dll and youtube-dl.exe into the folder "Vidsnap Scraper" in \plugins and no joy.
Hi there, sorry to hear it doesn't work for you. Could you try changing the folder name to "Vidsnap_Scraper" (with the underscore) and trying again? i changed this at some stage and forgot to change the writup, apologies.
11 hours ago, JoJoJuJu59 said:The latest youtube scraper (0.1.9.1?) doesn't work for me either but an old beta does. However, the Steam Scraper from this forum works perfectly. Any ideas?
Both of these are made by @srxz and maybe he could shed more light.
I think Youtube Scraper needs an update or something, I think it uses YouTubeSearch library which unfortunately is kinda defunct due to Youtube changing things all the time. Steam Scraper works well for me too.
-
15 hours ago, DerSchlachter said:
Works great for my Windows Platform, thx!
Glad to hear, its a pleasure.
-
Ive uploaded a new version.
For now ive implemented what @JoeViking245 has suggested. But will look into it further.
Launchbox file paths
in Third-Party Applications and Plugins (Development and Beta Testing)
Posted
thanks joe, ill give it a try.
(sorry i missed you reply, think I need to turn on forum notifications.)