Currently playing video in VLC playlist? #1202
Replies: 4 comments 2 replies
-
I have found a wackadoodle Windows workaround in case there isn't a more direct way.
This would show any OBS in-use files in the showvideos folder. Then it would just be a question of parsing that string to get the filename. In my case, I don't mind the messy output because it's just for my own information, to find out what randomly chosen media file is playing. Still, it would be nice to be able to get this kind of information and display it in a nicer manner, all in OBS nice and neat. Is there a way? Thanks! |
Beta Was this translation helpful? Give feedback.
-
This is not implemented at the moment, but I will try to look into it during the weekend. |
Beta Was this translation helpful? Give feedback.
-
Working on this now, but just in case you have a sec to advise: If I wanted to create a log file (in Windows) of the videos and what time they played, how would I do it? What comes to mind is to set the variable, then run a cmd that echoes the variable and a CR+LF to a text file. But, I take it there isn't currently an event/condition for "video file change". Of course I could have SS check every 5 seconds and send the value to a program (like in vbscript) that only logs when the argument it receives has changed, but that seems pretty inefficient. Some files are 20-30 seconds long, and some are around twenty minutes. And I'm only playing videos for about 50% of the stream time. It's tempting to ditch VLC Playlists entirely and play files one at a time using SS to monitor for when they end and trigger the next one. That's a bunch of wheel to reinvent though. Is there a way to say "when one of these VLC Sources is active, log every filename when it changes"? I wish the VLC Source could have its own "Save log to this location" property. Even a "Log VLC activity to OBS log" would be better than nothing. Another thought: If I had a "macro filter" which I could add to a bunch of Sources, where SS would run specific macros on that Source. Like a mini SS that lives in the properties of that filter. :) In case that idea means something :) I'll think on it! |
Beta Was this translation helpful? Give feedback.
-
I think you can achieve this with two macros like this:
You can also write to a custom file instead using the You can import this example using this code:
Hope that helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to get the currently playing file in a VLC video playlist source?
Beta Was this translation helpful? Give feedback.
All reactions