Thanks for your help
!
I tried to utilize this command and it works, but only from the commandline
e.g. vlc.exe Video.m2ts --ffmpeg-hw
plays the video file with hardware acceleration ignoring the value that was set in the VLC main application.
But if i try to use it in my application nothing happens.
It doesn't matter if i use "VLC ActiveX plugin v1" or "VLC ActiveX plugin v2"
Code: Select all
string[] options = new string[1];
options[0] = "--ffmpeg-hw";
string fileName = "Video.m2ts"
string metaName = "Simuilationsfahrt";
axVLCPlugin21.playlist.add(fileName, metaName, options);
axVLCPlugin21.playlist.play();
Using ":ffmpeg-hw" instead of "--ffmpeg-hw" leads to the same result.
Even using a logger doesn't work (but also works from the command line), so i can't find the cause of the error.
Code: Select all
string[] options = new string[4];
options[0] = "--extraintf=logger";
options[1] = "--log-verbose==3";
options[2] = "--logtype=text";
options[3] = "--logfile=\"C:\\Users\\Admin\\Desktop\\file_log.txt\"";
string fileName = "Video.m2ts"
string metaName = "Simuilationsfahrt";
axVLCPlugin21.playlist.add(fileName, metaName, options);
axVLCPlugin21.playlist.play();
However from doing a search on the forums it seems as if some command line options are disabled for the ActiveX plugin for security reasons. I don't know why the default setting for hardware acceleration would be disabled for the ActiveX Plugin even when it was manually enabled in VLC. If it is not possible manually enable it for the ActiveX plugin it would result in no hardware acceleration at all for the ActiveX plugin
Going back to an older version which does not disable commandline options is not an alternative since gpu acceleration is only supportet in the latest releases. Some options are working. If i replace "--ffmpeg-hw" by ":novideo" it shows no video.
Is there an error in my approach or is there any workaround to pass options to the plugin?
Has anyone managed to get the hardware acceleration working for the activeX plugin?
Can it be done with the libvlc .net wrapper?