Amiga.org

Amiga News and Community Announcements => Amiga News and Community Announcements => Topic started by: ami_stuff on June 04, 2011, 10:10:11 AM

Title: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: ami_stuff on June 04, 2011, 10:10:11 AM
(http://ffmpeg.org/ffmpeg-logo.png)

FFmpeg is a complete, cross-platform solution to record,
convert and stream audio and video. FFmpeg can also convert from
any sample rate to any other and resize video on the fly with a high
quality polyphase filter.


Download (http://aminet.net/gfx/conv/ffmpeg-gita52f598-m68k.lha)
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: Vulture on June 05, 2011, 01:54:36 AM
Thx!

Any chance for a warpos version? :)
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: stefcep2 on June 05, 2011, 03:46:06 AM
Can this convert mpegs/avi's to anim5?
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: ami_stuff on June 05, 2011, 12:52:50 PM
Quote from: Vulture;642491
Thx!

Any chance for a warpos version? :)


Sorry, no. I have no PPC hardware to test the builds, no WarpOS cygwin-hosted
crosscompiler and it would require too much work to recompile again all of the
external libs for PPC.

Quote from: stefcep2;642525
Can this convert mpegs/avi's to anim5?


Not yet, maybe in the future. ;) However I would prefere so see a decoder
implemented first. :) (right now there is only IFF ILBM decoder with HAM6/8
support)
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: ognix on June 05, 2011, 10:19:40 PM
I think this could be even more interesting when NatAmi will hit the "market", so we could test its hopefully superior CPU horsepower.
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: nicholas on June 06, 2011, 01:12:28 AM
Quote from: ami_stuff;642603
Sorry, no. I have no PPC hardware to test the builds, no WarpOS cygwin-hosted
crosscompiler and it would require too much work to recompile again all of the
external libs for PPC.


That's where VBCC comes in handy! :)

 http://www.compilers.de/vbcc.html
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: Ratte on June 06, 2011, 07:32:45 AM
Quote from: ognix;642755
I think this could be even more interesting when NatAmi will hit the "market", so we could test its hopefully superior CPU horsepower.


http://www.youtube.com/watch?v=QY7bKwtrR7c&vq=large
A4000 / Apollo 4060 @ 90 MHz / 640 MB FastMem
playing some clips with FroggerNG ...

Hmmm .... I will try FFmpeg/FFplay this evening.
:)
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: ami_stuff on June 06, 2011, 08:22:45 AM
Quote from: Ratte;642880
http://www.youtube.com/watch?v=QY7bKwtrR7c&vq=large
A4000 / Apollo 4060 @ 90 MHz / 640 MB FastMem
playing some clips with FroggerNG ...

Hmmm .... I will try FFmpeg/FFplay this evening.
:)

It would be interesting to see how good/bad FFplay behaves on your hardware.

Please note that FroggerNG have by default enabled frame skipping, while FFplay not.

Maybe you can record a video with two tests:

I. with audio

FroggerNG file.mpg/file.divx AUTOSTART
FFplay -framedrop file.mpg/file.divx

and

II. without audio

FroggerNG NOSKIP NOAUDIO AUTOSTART file.mpg/file.divx
FFplay -an file.mpg/file.divx

it would be also interesting to see how much lowres speedups decoding:

FFplay -an -lowres 1 file.mpg/file.divx
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: save2600 on June 06, 2011, 03:07:24 PM
Quote from: Ratte;642880
http://www.youtube.com/watch?v=QY7bKwtrR7c&vq=large
A4000 / Apollo 4060 @ 90 MHz / 640 MB FastMem
playing some clips with FroggerNG ...

Great looking desktop you have there and may I ask what music is playing in that vid?
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: gaula92 on June 06, 2011, 04:15:37 PM
It's a classical MOD called "Guitar Slinger", well, it's actually an arrangement I believe, but it sounds almost the same.
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: magnetic on June 06, 2011, 11:57:26 PM
Quote from: ami_stuff;642603
However I would prefere so see a decoder
implemented first. :) (right now there is only IFF ILBM decoder with HAM6/8
support)


Firstly, thanks for the port, its very welcome.
By the quote above does this mean I can take say an mpeg4 and turn it into a ham8 anim file for playback on my a1200?
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: ami_stuff on June 07, 2011, 10:13:33 AM
Quote from: magnetic;643064
Firstly, thanks for the port, its very welcome.
By the quote above does this mean I can take say an mpeg4 and turn it into a ham8 anim file for playback on my a1200?


No. Three is no IFF ANIM encoder in FFmpeg, so this is not possible.
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: amigakit on June 10, 2011, 12:05:38 PM
Thank you for your time on this software.

I have noticed that some mpegs I have above 320x240 play back fine with no sync issues between the sound/graphics

Other mpegs which are lower resolutions struggle to play back.  

I would have thought the Amiga would be working harder to playback the higher resolution video but it seems there are other factors to peformance: maybe video bitrate, buffer size, codec type etc

So it would be nice to convert videos with FFMpeg with the optimal settings for an 060 CPU.

Does anyone have experience on what command line options to use to convert videos for use on the Amiga?  Any help would be appreciated from someone who has experience with FFMpeg.
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: x303 on June 10, 2011, 01:23:06 PM
Quote from: Vulture;642491
Any chance for a warpos version? :)
For ffmpeg that *should* be possible. For ffplay, not really. SDL and Warpos are not good friends.
Title: Re: FFmpeg + FFplay git-a52f598 (31.05.2011) for AmigaOS 3.x
Post by: ami_stuff on June 12, 2011, 01:43:18 PM
Quote
Does anyone have experience on what command line options to use to convert videos for use on the Amiga?  Any help would be appreciated from someone who has experience with FFMpeg.

I have no idea, but maybe H261 would be ok for 030 or 040:

ffmpeg -i file.mpg -vcodec h261 -r 15 -s 176x144 -sws_flags lanczos -acodec pcm_u8 -ar 22050 file.avi

the fastest would be of course rawvideo:

ffmpeg -i file.mpg -vcodec rawvideo -sws_flags lanczos -r 15 -s 176x144 -acodec pcm_u8 -ar 22050 file.avi