Working with media files

Just starting out? Need help? Post your questions and find answers here.
LiK137
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Jun 23, 2010 5:13 pm

Working with media files

Post by LiK137 »

Hi,
Is there a solution to work with media files like UseImageDecoder|Encoder to read/modify/write/encode but for Audio/video files?
Bitblazer
Enthusiast
Enthusiast
Posts: 761
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Working with media files

Post by Bitblazer »

Instead of relying on the purebasic language en-/decoder versions, i would go straight to the source and get the latest DLL's, for example for MP3, x264vfw, Ogg ... etc.

That is what i would do for any serious media processing tool.

Or just use FFmpeg.
Last edited by Bitblazer on Wed Aug 03, 2022 9:34 am, edited 1 time in total.
User avatar
Janni
Enthusiast
Enthusiast
Posts: 127
Joined: Mon Feb 21, 2022 5:58 pm
Location: Norway

Re: Working with media files

Post by Janni »

Depends on what you are trying to build on how advanced it needs to be I guess.

This is audio/video supported natively in pb:
LoadSound WAV, FLAC and OGG (UseFLACSoundDecoder() - UseOGGSoundDecoder())
LoadMusic library (modplug) which supports tracker modules (many formats .mod, .xm, .it etc)
LoadMovie I think supports avi, mpg etc.
Spec: Linux Mint 20.3 Cinnamon, i7-3770K, 16GB RAM, RTX 2070 Super
LiK137
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Jun 23, 2010 5:13 pm

Re: Working with media files

Post by LiK137 »

Thanx,
so should dig in FFMPEG direction for lets say building new media from several sources for appending/inserting/trimming /adding sound etc.
Post Reply