Native MP4 movie

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
minimy
Enthusiast
Enthusiast
Posts: 349
Joined: Mon Jul 08, 2013 8:43 pm

Native MP4 movie

Post by minimy »

I think will be nice play mp4 movies native. I can play with 'loadMovie(' wmv format but still been impossible play mpeg4 (h264) movies native. Any lib like ffmpeg or variant vlc can be a solution but is not PB native.
Is only a sugerence. Thanks for read this.
PB forever!! :D

Im using windows 11
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
jacdelad
Addict
Addict
Posts: 1484
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: Native MP4 movie

Post by jacdelad »

Unlike wmv, mp4 is a container like ogm or mkv, so even when being able to parse the container you still don't know what's inside and need a ton of codecs to support everything. Better use ffmpeg or VLC API. I guarantee you by simply supporting mp4 the movies that run on your computer won't run on many other machines.
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
User avatar
idle
Always Here
Always Here
Posts: 5097
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Native MP4 movie

Post by idle »

Cisco has a h264 lib under bsd license on github.
Post Reply