Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
98 user(s) are online (87 user(s) are browsing Forums)

Members: 1
Guests: 97

sailor, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 4 (5) 6 7 8 ... 36 »
Re: Any altivec experts? (H.264 codec)
Quite a regular
Quite a regular


See User information
@feanor
Pat6 is like a G5.
If you need a betatester with a X1000... ;)

Amiga600/Vampire2/PrismaMegaMix​/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@feanor
Quote:
What is the expected outcome and what would make people accept such a challenge as solved?

Eg. pick a video stream (bigbuckbunny?) and a base hardware spec and expect that to work with no frames dropped?

Picking criteria is going to be difficult. While I'd certainly love it if the Prometheus trailer could play without framedropping on my A1-X1000, I estimate that this would require a 33% performance improvement (from 18 to 24 fps). However, given that the H.264 code already has partial altivec acceleration, I don't know if that's realistic.

If we had benchmark results for x86, ARM, & PPC giving the performance difference between SIMD and non-SIMD, then we might be able to guess how much extra performance we could get.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@Hans

I think It be good idea to compare mplayer VC benchmark speed, compare altivec vs none altvec, and do the same on PC hardware using SSE/MMX, find out the potential speed increase.

Mplayer film.avi -vo null -ao null -nosound -benchmark

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@LiveForIt

I hope i got the right Prometheus trailer...

X1000 here

Quote:

mplayer -vo null -ao null -nosound -benchmark "Prometheus - Official Trailer [TRUE HD].mp4"
MPlayer UNKNOWN-4.4.3 (C) 2000-2010 MPlayer Team
160 audio & 349 video codecs

Playing Prometheus - Official Trailer [TRUE HD].mp4.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 1280x544 24bpp 23.976 fps 1140.9 kbps (139.3 kbyte/s)
Clip info:
major_brand: mp42
minor_version: 0
compatible_brands: isommp42
track: 1
comment: www.dvdvideosoft.com
title: Prometheus - Official Trailer [TRUE HD]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO: [null] 1280x544 => 1280x544 Planar YV12


generic
MPlayer 1.0 (11.11.2010)
© MPlayer Team, Nicolas Det, Fabien Coeurjoly [SVN: r32620]

BENCHMARKs: VC: 35.523s VO: 0.005s A: 0.000s Sys: 1.437s = 36.965s
BENCHMARK%: VC: 96.0990% VO: 0.0126% A: 0.0000% Sys: 3.8885% = 100.0000%

altivec
MPlayer 1.0 (11.11.2010)
© MPlayer Team, Nicolas Det, Fabien Coeurjoly [SVN: r32620]

BENCHMARKs: VC: 20.066s VO: 0.005s A: 0.000s Sys: 1.351s = 21.422s
BENCHMARK%: VC: 93.6680% VO: 0.0241% A: 0.0000% Sys: 6.3078% = 100.0000%

mplayer-noaltivec (Liveforit)
MPlayer for AmigaOS4 SVN-rSVN-r32634-4.2.4

BENCHMARKs: VC: 25.168s VO: 0.007s A: 0.000s Sys: 0.181s = 25.355s
BENCHMARK%: VC: 99.2606% VO: 0.0275% A: 0.0000% Sys: 0.7120% = 100.0000%

mplayer-noaltivec (Liveforit)
MPlayer for AmigaOS4 SVN-rSVN-r32634-4.2.4

BENCHMARKs: VC: 17.955s VO: 0.007s A: 0.000s Sys: 0.176s = 18.138s
BENCHMARK%: VC: 98.9937% VO: 0.0368% A: 0.0000% Sys: 0.9695% = 100.0000%

Go to top
Re: Any altivec experts? (H.264 codec)
Just can't stay away
Just can't stay away


See User information
Quote:
VIDEO: [H264] 1280x544 24bpp 23.976 fps 1140.9 kbps (139.3 kbyte/s)


No. the one we test is 1920x1080, 1080p, yours is 720p.

Try this one: prometheus-trailer.zip

My results are here.

Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: Any altivec experts? (H.264 codec)
Just can't stay away
Just can't stay away


See User information
@Raziel

results for your file using the "official" command line:

> mplayer -nosound -benchmark "Prometheus - Official Trailer [TRUE HD].mp4"
LiveForIt-MPlayer-6.3 SVN-r37230-snapshot-1.1.1 (C) 2000-2014 MPlayer Team

Playing Prometheus - Official Trailer [TRUE HD].mp4.
libavformat version 55.33.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 1280x544 24bpp 23.976 fps 1140.9 kbps (139.3 kbyte/s)
Clip info:
major_brand: mp42
minor_version: 0
compatible_brands: isommp42
creation_time: 2014-03-07 13:54:00

---8<-----------------------------------

BENCHMARKs: VC: 27.349s VO: 2.594s A: 0.000s Sys: 1.286s = 31.228s
BENCHMARK%: VC: 87.5760% VO: 8.3062% A: 0.0000% Sys: 4.1178% = 100.0000%

Internal COMP YUV FPS 54

-fs gives 55 fps

Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@Severin

BENCHMARKs: VC: 92.689s VO: 66.982s A: 0.000s Sys: 0.534s = 160.205s
BENCHMARK%: VC: 57.8565% VO: 41.8104% A: 0.0000% Sys: 0.3331% = 100.0000%

Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@Raziel

Thanks for the benchmarks. What we need now are similar benchmarks for X86/ARM machines using mplayer versions both with and without SIMD (and without HW decoding). I'm not even sure if such builds are available, so we might need someone who understands their build system to create custom versions.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@Severin

In this context benchmarking with video output (VO) don't make sense, other operating systems like Linux do not have the same Video outputs as we do. And this is about optimizing video codec decoding (VC), the CPU usage on Video Output effects the VC score.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Any altivec experts? (H.264 codec)
Just can't stay away
Just can't stay away


See User information
@Liveforit

Ok, I was just trying to keep benchmarks consistant until told to use something else...

mplayer -vo null -ao null -nosound -benchmark "Prometheus - Trailer.mp4" 
LiveForIt-MPlayer-6.3 SVN-r37230-snapshot-1.1.1 (C2000-2014 MPlayer Team

VIDEO
:  [H264]  1920x816  24bpp  23.976 fps  6828.3 kbps (833.5 kbyte/s)

BENCHMARKsVC81.3130s VO:  0.0070s A:  0.0000s Sys:  0.8820s =  82.2020s
BENCHMARK
%: VC98.9190VO:  0.0085A:  0.0000Sys:  1.0725% = 100.0000%



Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@Severin

Quote:

mplayer-altivec -vo null -ao null -nosound -benchmark "Prometheus - Trailer.mp4"

MPlayer LiveForIt V5.1 - SVN-rSVN-r32634-4.2.4(C) 2000-2010 MPlayer Team

BENCHMARKs: VC: 59.675s VO: 0.007s A: 0.000s Sys: 3.239s = 62.921s
BENCHMARK%: VC: 94.8415% VO: 0.0113% A: 0.0000% Sys: 5.1472% = 100.0000%


Seems i'm usiing the wrong mplayer version?

Go to top
Re: Any altivec experts? (H.264 codec)
Just can't stay away
Just can't stay away


See User information
@Raziel

Me too. 5.1 when everyone else use 6.3?

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: Any altivec experts? (H.264 codec)
Just can't stay away
Just can't stay away


See User information
@Raziel & ddni

Something is wrong with 6.3 (not released yet btw) as 5.1 is decoding 25% faster.

Although it could just be using a newer version of the mplayer/ffmpeg base code and the associated bloat.


Edited by Severin on 2014/11/25 18:53:26
Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: Any altivec experts? (H.264 codec)
Just can't stay away
Just can't stay away


See User information
Ok thanks.

Holding off on CANDI, RADEONHD2 etc till Radiance and FE are available. Better be out by chrimbo or my stocking will be very empty!

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@Severin

Quote:
Something is wrong with 6.3 (not released yet btw) as 5.1 is decoding 25% faster.

Maybe the loop filter is disabled by the default config in 5.1, but enabled in 6.3?

You could try changing your mplayer config file to disable the loopfilter (remove the # in front of skiploopfilter=all), and test again.

Hans


Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Any altivec experts? (H.264 codec)
Just can't stay away
Just can't stay away


See User information
@Hans

Yes, that was it:

BENCHMARKsVC66.0390s VO0.0070s A0.0000s Sys1.8150s =  67.8610s
BENCHMARK
%: VC97.3156VO0.0103A0.0000Sys2.6741% = 100.0000%


Displaying the video I get 22fps, video and sound fullscreen gives 21fps, not far off the 23.976 but as most are 25 or 30 fps it's still got quite a way to go.

Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@all

Okay, do we have anyone who is able to create the custom mplayer builds to benchmark x86/ARM machines with and without SIMD enabled (and without HW acceleration)? We really need to be able to compare the AmigaOS altivec performance increase against what a fully SIMD-optimized platform achieves.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Any altivec experts? (H.264 codec)
Just popping in
Just popping in


See User information
@all

Ok, I took a close look the past days at the ffmpeg codebase, basically the altivec and arm(neon) trees. My first impression was that the altivec port was seriously lacking as there were far fewer files. However, a closer look showed that the functions were implemented but inside the .c files, and not separately as happens with the neon port. Still, not all were implemented, in particular I could not find altivec code for the ff_pred16x16_vert_* type of functions (found in libavcodec/arm/h264pred_init_arm.c). So these would be the ones I would tackle first.

I suggest to allocate ~35 hours initially for this task alone, and take a look at it again -note that it might not mean an actual week, as I am already working on a day job. Since you asked me for a public quote, my rate usually is 30EUR/hour, but as I promised and since working on Altivec is a pleasure, I'm willing to do a discount, at 23EUR/hour (if invoicing within the EU, VAT will be deducted, and I would have to invoice someone for that amount). So, in total 805EUR.

So, what do you guys think?

Go to top
Re: Any altivec experts? (H.264 codec)
Not too shy to talk
Not too shy to talk


See User information
If the wasted processing time is in the decoder, I suggest that we avoid the mplayer layer, using ffmpeg only instead. With mplayer, we see that we will have to take care about the version, the operating systems and their versions, etc.
It will also be easier to compare on x86 and ARM, building ffmpeg for them with and without SIMD.

Let's choose:
- an ffmpeg revision
- 3 videos (the 1080p prometheus being the first one) to check different parts of the code are exercized
- 2 or 3 pieces of hardware

Go to top
Re: Any altivec experts? (H.264 codec)
Amigans Defender
Amigans Defender


See User information
@feanor

Quote:
So, in total 805EUR. So, what do you guys think?

The community was able to raise a similar amount in order to buy a computer for a guy who never produced anything meaningful on it, so I guess the amount is doable.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top

  Register To Post
« 1 2 3 4 (5) 6 7 8 ... 36 »

 




Currently Active Users Viewing This Thread: 4 ( 0 members and 4 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project