How to save an MP4 format using BeginAnimStream?

Discuss any general programming issues here
Post Reply
ilbarbax
Posts: 155
Joined: Thu Apr 01, 2010 6:41 pm

How to save an MP4 format using BeginAnimStream?

Post by ilbarbax »

As far as I understood from the manual BeginAnimStream can save only on 3 formats gif iff and avi. On the other way it is possible to use the adapter, but I don't understand how.
Of course I loaded avcoded.hwp

thanks for any hint
User avatar
airsoftsoftwair
Posts: 5848
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to save an MP4 format using BeginAnimStream?

Post by airsoftsoftwair »

avcodec.hwp currently doesn't export any savers but only loaders for video formats. That's why you can't save in MP4 with it currently.
ilbarbax
Posts: 155
Joined: Thu Apr 01, 2010 6:41 pm

Re: How to save an MP4 format using BeginAnimStream?

Post by ilbarbax »

Thanks.
Then I have to generate an mjpeg file and then convert it with an external application.
By the way concerning avcodec.hwp I start from some MOV files, that avcodec is supposed to read, however I receive a message that this format is not supported. Also in this case to proceed I had to convert the file MP4 first
User avatar
airsoftsoftwair
Posts: 5848
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to save an MP4 format using BeginAnimStream?

Post by airsoftsoftwair »

ilbarbax wrote: Sun Nov 09, 2025 9:11 am By the way concerning avcodec.hwp I start from some MOV files, that avcodec is supposed to read, however I receive a message that this format is not supported.
Yes, that can happen. Keep in mind that avcodec is based on an ffmpeg version from 2010 and MOV is only a container format that could use everything from old QuickTime encoders to very recent ones so if avcodec fails to load it, it's very likely a MOV that uses a very recent video compression which wasn't available back in 2010.
ilbarbax
Posts: 155
Joined: Thu Apr 01, 2010 6:41 pm

Re: How to save an MP4 format using BeginAnimStream?

Post by ilbarbax »

Ant hope to have an updated version of avcodec ?
User avatar
airsoftsoftwair
Posts: 5848
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to save an MP4 format using BeginAnimStream?

Post by airsoftsoftwair »

ilbarbax wrote: Wed Nov 12, 2025 8:36 am Ant hope to have an updated version of avcodec ?
That's unlikely. The problem is 68k compilers. The code quality of 68k compilers is very low nowadays which means that you have to manually find bugs in the code generator and implement workarounds. It was already very difficult to create a stable 68k port of ffmpeg back in 2010 when the avcodec.hwp was started. But since then ffmpeg has grown massively. Porting this to 68k is a nightmare because of the poor code quality of 68k C compilers. For all other platforms it would be much easier.
Post Reply