QB64.org Forum
Active Forums => Programs => Topic started by: rcamp48 on February 08, 2021, 03:54:45 pm
-
Hello All
This is a huge leap forward, this file will play audio files and video files, IF the video files are WMV files , It will play MP3 files, Wave files in stereo only, I am working on surround sound bt that may take some time.
This is not really my work , all of the credit goes to other people who have written various sections of code, I just combined them all into one file.
Russ
[ This attachment cannot be displayed inline in 'Print Page' view ]
[ This attachment cannot be displayed inline in 'Print Page' view ]
-
Actually, mciSendString can also play AVI videos.
Check my API collection in the link in my signature and navigate to WinAPI. The Webcam API file gives a popup for a webcam selection then, after recording, plays the video. Oops, removed the playing portion of the code. Sorry. Pretty much, as long as the video was encoded with mpeg then you are OK. H.264 won't work.
-
Looks like you have the last video code I had posted to the old forum. I believe I only added pause and resume afterwards. Yeah, I've found out that what @SpriggsySpriggs said is correct, none of my h.264 videos will play, but my mpeg and wmv ones will. I'll look for the DLL I made, but I *think* it had the same results, no h.264 playback.
- Dav
-
Yes I noticed that too...they won't play but I can convert them, I have a paid version of Switch, it just takes soooo long.
Russ
-
@rcamp48
Handbrake is free and works really well. I use it all the time for converting full Blu-ray movies to work on my car's radio
-
You will notice that the video player bombs if there are spaces in the filenames, here is a script file for bulk renaming of files with spaces:
[ This attachment cannot be displayed inline in 'Print Page' view ]
That should solve problems with spaces in filenames.............
Russ
-
Not necessary. Encapsulate your filename with quotes in the string you send to mciSendString
-
None of it is nesessary anymore I changed over to VLC media player, this video shows it off
https://youtu.be/_ArRp1L1UpI (https://youtu.be/_ArRp1L1UpI)
-
Yeah, I see you're calling VLC from SHELL and passing it the file as an argument. I've been meaning to look into libraries for playing videos (besides mciSendString, which works rather well) in QB64 but they're rather complex and difficult to compile. It'll probably be a long time from now before I go and really try one out. I'll let you know if I find something that works, though.