Taking snapshot doesn't work while streaming #447
Comments
What's the result of the libvlc's documentation states that an error is returned by this function if the video output was not found: https://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc__video.html#ga9b0a3870ce962aa0358050b2d5a59143 In other words, from my understanding, you can't take a snapshot if you don't have any video output, i.e. if you stream. I might be wrong though, because I remember having made a thumbnailer that did not have any video output.. |
TakeSnapshot() doesn't return any value, it defined as "public void TakeSnapshot(FileInfo file);" in "Vlc.DotNet.Core" namespace. In fact, when I modified Media options as given below, taking snapshot is working, unfortinately, this time it is not streaming. Just changed ":" characters to "--".
How can I test "libvlc_video_take_snapshot()" |
TakeSnaphot returns a bool in the 3.0 if I remember correctly |
Vlc.DotNet.Core nuget package doesn't support videolan vlc 3.0 ? |
I meant in Vlc.DotNet.Core 3.0 prerelease |
Unfortunately, TakeSnapshot function is also defined as void in 3.0 |
Oh, I indeed forgot to change the return type of the TakeSnapshot method in the WinForms control. It however returns a boolean in the core player.
|
It won't change anything to your issue however, we need to find the correct way to pass the options to the media (the correct syntax is with |
ahhh, sorry, i am also working on core player and downloaded form player accidently. As you said, it defined as a boolean function and in my situation it returns "false". |
Just fixed the return result of the TakeSnapshot of the WinForms control. |
Is there any progress? |
Thanks for your ping (to be honest, I totally forgot). I had long days at work in the past few weeks so I didn't make any progress on that. |
Ok, I worked on the Thumbnailer sample, however, it looks, couldn't find the correct options. Perhaps, It is not possible to take a snapshot while streaming as you defined in your first message. The code I worked on, basicly, as given below :
Kind Regards. |
After some testing, it appeared to me that what you are trying to achieve does not seem possible yet with libvlc. I invite you to ask VideoLAN directly. Technical details: The only way that TakeSnapshot can return false is because this code returns no vout: This is confirmed by the fact that This seems logical, since the streaming output (sout) overrides the default video output (vout). vout is now empty for libvlc, even if the |
I have an issue / a question (pick one) about Vlc.DotNet.
Generic information
Summary
I am trying to get snapshots for "Vlc.DotNet.Core" however it s not taking snapshot when it s streaming. When i call TakeSnapshot function, it doesn't drop on "OnMediaPlayerSnapshotTaken" event.
Also, i checked the snapshot action for Vlc.DotNet.Forms and it s working.
The code i am working on is as given below :
The text was updated successfully, but these errors were encountered: