Page 2 of 5
Re: CHPlayer V3
Posted: Wed Jan 26, 2022 6:48 pm
by masperturbator
puste wrote: Wed Nov 25, 2020 11:04 pm
Embedded Microsoft Media Player
No complaint, but I am curious. Did you find a problem that forced you to move from VLC to WMP?
Re: CHPlayer V3
Posted: Thu Jan 27, 2022 12:18 am
by puste
@masperturbator yes there was a few problems. The first was that I would add this internaly in to the software.
And then I could not find some good description on haw to do that. One other thing was that the VLC did not
give the best full screen. I love the full screeen function of WMP where you are only see the action and not a lot
of other things like in the ScriptPlyer. It was much easyer to get to work.
Do not get me wrong I like the ScriptPlyer and use it some times and it also a great pease of sofware.
You could argument that VLC has more features and is easyer to get to work with H265 etc.
With WMP you have to install HEVC-video Extension from Microsoft.
And when it came to control exact position of the play there was a very good description of that for WMP.
The same goes for CSCore over NAudio. The NAudio did not come up with good example on how to
get to sync the audio. I have several problems with this in CHPlayer V2.
I am testing the next version with and extra info bottom. And I will release this soon.
And @ramen I have added the description of MP3 automatic load in the Quick Guide.txt.
Hope this will help others understand how this work.
Re: CHPlayer V3
Posted: Thu Jan 27, 2022 5:12 pm
by masperturbator
puste wrote: Thu Jan 27, 2022 12:18 am
@masperturbator yes there was a few problems.
I looked briefly at your 3 years ago code on GitHub to see what you had tried then. These are a few thoughts I searched about after.
Because you are making a DotNet forms application, I looked for what is available for that and VLC. I found
LibVLC.Net,
LibVLCSharp, and
Vlc.DotNet.
In 2020,
Vlc.DotNet got the fullscreen in WinForms that you wanted, but their README also says that their project prefers that you use the official
LibVLCSharp.
I see that the VideoLan stuff is providing ways to create your own player controls with XML. I also remember doing this in Python's VLC library:
Code: Select all
class Player():
def __init__(self, parent, video=''):
self.parent = parent
self.video = video
self.videopanel = None
self.canvas = None
# VLC player
args = []
if isLinux:
args.append('--no-xlib')
self.Instance = vlc.Instance(args)
self.player = self.Instance.media_player_new()
#self.parent.bind("<Configure>", self.OnConfigure) # catch window resize, etc.
self.parent.update()
I didn't take that play day so far that I had to deal with fullscreen, but I know that the video viewport I was given is the no-controls one you wanted. When I was playing with that, I found
this about timecode synchronization in VLC, so I think that it may be worth going back to if you can.
I was able to do what I wanted to yesterday, with the V3 player, and thank you for that. Having audio device selection, and some control over the second audio stream, were the most important parts.
Re: CHPlayer V3
Posted: Fri Jan 28, 2022 12:52 am
by doremi
I have some experience with the fullscreen feature of LibVLC, but on the UNI*X world. In short, it doesn't work anymore.

They kind of stopped supporting it because of the numerous platform issues. What seems to work is detecting the XWindow id, and resize+move the window ourselves. For Windows, it should be easier just setting the right window flag or call the right system call.
Re: CHPlayer V3
Posted: Fri Jan 28, 2022 6:21 pm
by ramen
puste wrote: Thu Jan 27, 2022 12:18 am
And @ramen I have added the description of MP3 automatic load in the Quick Guide.txt.
Hope this will help others understand how this work.
Sweet! Thank you.
Do you accept feature requests? I think it would be nice if the app tries to load a matching mp3 file, before picking the first one in the folder. A simple filename comparison should suffice: if the app is loading MyFile.mp4 and finds MyFile.mp3 in the same folder, load it; otherwise just pick the first mp3 as usual.
This is just an idea to make the app more streamlined and flexible, if this is hard to implement or you think it's not worth it that's totally ok

Re: CHPlayer V3
Posted: Fri Jan 28, 2022 6:40 pm
by puste
ramen wrote: Fri Jan 28, 2022 6:21 pm
puste wrote: Thu Jan 27, 2022 12:18 am
And @ramen I have added the description of MP3 automatic load in the Quick Guide.txt.
Hope this will help others understand how this work.
Sweet! Thank you.
Do you accept feature requests? I think it would be nice if the app tries to load a matching mp3 file, before picking the first one in the folder. A simple filename comparison should suffice: if the app is loading MyFile.mp4 and finds MyFile.mp3 in the same folder, load it; otherwise just pick the first mp3 as usual.
This is just an idea to make the app more streamlined and flexible, if this is hard to implement or you think it's not worth it that's totally ok
Yes thanks for input. I will try to implemnt this in the next release.
Re: CHPlayer V3
Posted: Sat Jan 29, 2022 6:32 pm
by puste
I have now created a new version that have auto load of mp3 with same name. I now the info bottom tells what Audio you have loaded to. Version 3.0.5
https://github.com/puste1/CHPlayer
Please try it out.
Re: CHPlayer V3
Posted: Sun Jan 30, 2022 1:15 am
by puste
puste wrote: Sat Jan 29, 2022 6:32 pm
I have now created a new version that have auto load of mp3 with same name. And now the info bottom tells what Audio you have loaded in to CHPlayer. You can download Version 3.0.5 from this link. File is: CHPlayerV3.0.5.zip
https://github.com/puste1/CHPlayer
Please try it out. You can also now get a new PDF file for dokumentation.
Re: CHPlayer V3
Posted: Mon Jan 31, 2022 6:11 pm
by ramen
puste wrote: Sat Jan 29, 2022 6:32 pm
I have now created a new version that have auto load of mp3 with same name. I now the info bottom tells what Audio you have loaded to. Version 3.0.5
https://github.com/puste1/CHPlayer
Please try it out.
Wow thank you so much puste!
The info button works great, surely it'll help avoiding mistakes in the future.
The auto-load isn't working as expected for me, it keeps loading the first file as before. I'm not sure what's the issue, I made sure the filenames were exacly the same (except the file extension, of course).
Re: CHPlayer V3
Posted: Mon Jan 31, 2022 10:37 pm
by puste
Sorry @ramen. You are correct it did not work as expectet. But now I have added the function and now it schould work.
Download new version CHPlayerV3.0.7.zip
Please try it.

Re: CHPlayer V3
Posted: Wed Feb 02, 2022 3:32 pm
by ramen
puste wrote: Mon Jan 31, 2022 10:37 pm
Sorry @ramen. You are correct it did not work as expectet. But now I have added the function and now it schould work.
Download new version CHPlayerV3.0.7.zip
Please try it.
Works perfectly on my end. Thank you for the hard work!
Re: CHPlayer V3
Posted: Thu Feb 03, 2022 8:35 pm
by digitalparkinglot
puste wrote: Mon Jan 31, 2022 10:37 pm
Sorry @ramen. You are correct it did not work as expectet. But now I have added the function and now it schould work.
Download new version CHPlayerV3.0.7.zip
Please try it.
Hey Puste,
Love the improvement. Makes playing videos with matching estim so much easier.
-digitalparkinglot
Re: CHPlayer V3
Posted: Sun Feb 06, 2022 1:19 pm
by o2l8
Delete
Re: CHPlayer V3
Posted: Sun Feb 06, 2022 1:37 pm
by o2l8
Can't wait to try the latest version.
Am I missing something? Can I play the video over my bt head phones and stim sound out of the head phone jack?
Ive tried every way I can think of.
Is there an easy way to make a surround file to use voice meter banana and put both devices?
Thanks again
Re: CHPlayer V3
Posted: Sun Feb 06, 2022 8:27 pm
by puste
@o2l8 Yes you can do it but not with surround files.
What I do is using BT head set and I setup this as primary sound in windows.
And then you can select your estim sound in CHPlayer and remember that you connect your estim device to this internal sound card.
Then you can play video and and the Videos sound is played to the BT Headphones and the stim signal is send to the PC sound card. That way you do not have to have second sound card.
Hope this explain what is possible.