Page 1 of 1

Working with media files

Posted: Wed Aug 03, 2022 6:43 am
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?

Re: Working with media files

Posted: Wed Aug 03, 2022 9:30 am
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.

Re: Working with media files

Posted: Wed Aug 03, 2022 9:33 am
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.

Re: Working with media files

Posted: Wed Aug 03, 2022 9:45 am
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.