Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
110 user(s) are online (60 user(s) are browsing Forums)

Members: 0
Guests: 110

more...

Headlines

 
  Register To Post  

« 1 ... 29 30 31 (32) 33 34 35 36 »
Re: Any altivec experts? (H.264 codec)
Just can't stay away
Just can't stay away


See User information
@tommysammy

Thank you, happy to know that i'm not alone !

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


See User information
@zzd10h

Same here, I get green videos with 6.5 but not with 6.4

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

Made comment for you on mplayer beta test forum.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Any altivec experts? (H.264 codec)
Quite a regular
Quite a regular


See User information
@LiveForIt

Quote:
Quote from MikeJT

"Although the binary runs, ffmpeg will produce glitchy videos."


I don't have a machine that supports altivec instructions, but that is what I've been told happens when I send the binary the cross-compiler generates.

In the context of that post, I was describing what happens when I link any program binary (one that uses altivec instructions) with the cross-compiler I built myself from adtools. All I have to do is re-link it on my Sam machine or in zerohero's cross-compiling environment which doesn't have that issue, and then the binary is fine (assuming the code is fine). All of the object .o files are fine. It's something in the linking stage.

If you took my post to mean that ffmpeg 2.6.1 (official tree) with altivec produces glitchy videos, then you're mistaken. I'm only talking about when I *link* on the cross-compiler, which I didn't do for the binaries on OS4Depot. If the altivec builds on OS4Depot produce glitchy video, then I'm unaware of that, and probably can't do anything about that.

Edit: Made 1st paragraph clearer.


Edited by MickJT on 2015/6/26 5:44:34
Edited by MickJT on 2015/6/26 14:40:15
Go to top
Re: Any altivec experts? (H.264 codec)
Home away from home
Home away from home


See User information
@MickJT

The green color bug comes with 2.5 (Feanor has modified), and 2.6.3 (that Feanor has not modified), what I found out its part of h264 AltiVec optimized routines, I have traced the bug back to two files, that has AltiVec optimization. For now I have disabled all optimization on this two files, I will next try to enable some of it, and see if I can find function's that has bugs. Once It's located I will most likely isolate the problem, by disable code that is not working.

This is time consuming, because I need to modify files, and do test compiles, modify files again, new test compiles and so on, until problems go away, or come back.

Green color bug is not an issue produced by me or Feanor, no one is to blame. As for GCC being the problem, me nor Feanor thinks it is to blame.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Any altivec experts? (H.264 codec)
Just popping in
Just popping in


See User information
@LiveForIt

Probably stupid but isn't it possible to add a test to the code to check the color generated and if it's green then stop and search backward from there? (with a known video file that cause the problem)

Kamelito

Go to top
Re: Any altivec experts? (H.264 codec)
Quite a regular
Quite a regular


See User information
@LiveForIt

Ahh ok, I guess then that either there's some problem introduced after 2.6.1, or no-one has said anything to me if that problem exists in my port.

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


See User information
@Kamelito

Sometimes it is easier to ask questions, and then there is answer.

However, the short answer is that stack traces only work when you have branches, jump from one sub routine to another. At last branch, you have the crash; you can look at previews function calls before the crash, so you know pretty match where and way,

When you do not have crash, the program continues, and so you do not know where and way, things go bad, so you most look at problem from the other end.

As for testes is only useful, if the all the smaller routines are tested after a specification, because once you have the end result you do not know way.

Even then, there might be something that have expected behavior and none expected behavior, so again you might end up being clueless.

I don't know how common it is write tests for C programs, but if you do, it’s a good idea to start when you start writing the project, not after you have generated years of code / work.


Edited by LiveForIt on 2015/6/26 20:15:11
Edited by LiveForIt on 2015/6/26 20:16:37
Edited by LiveForIt on 2015/6/26 20:35:45
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Any altivec experts? (H.264 codec)
Just popping in
Just popping in


See User information
@all

So, I just replayed my patches on top of ffmpeg master (they can be found again in https://github.com/markos/FFmpeg) and tried all the videos I had, including the one pointed to by people here.

Testing framerate was done by the usual ffmpeg -benchmark line:

$ ffmpeg -cpuflags altivec -benchmark -i <file> -t 30 -f null /dev/null

and playback was done just by running ffplay

All this on an imac G5 running Debian Jessie Linux (no video acceleration, so just software decoding). Compilation was done remotely on a 16-core Power8 server again running Jessie for speed.

In both cases, I compared ffmpeg upstream master against master with my patches. In no case did I experience green video artifacts.

Benchmarks produced a slight speed increase as I had reported before, not huge, but eg. on the prometheous trailer from 29s to 27s to decode the first 30 seconds, that's within the 5-7% reported originally. Again, playing it with ffplay did not produced any green artifacts.

So, I'm bound to say that whatever bug there is, it's not within the decoder patches, maybe there is another bug in the display routines, and I will try to investigate it further.

Now that I've set up a sane compile environment (compilation on the power8 is *fast*), I expect to submit those patches and some other pending audio ones soon.

Thank you for your patience and understanding.

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


See User information
@all

On my end, I have found the overloaded functions that produce the green bug; this information was shared with Feanor, yesterday.

Resized Image


As I pointed out before I do not think the green bug has anything to do with changes Feanor has made, the bug was found in 2.6.3 as well, as 2.5 that Feanor is working on.

So if anyone won't to look at the problem you can, there are not that many operating systems that care about PowerPC anymore, with Apple gone, we can't expect things to get fixed automatically in the future by Linux / Apple developers.

(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
"I have found the overloaded functions that produce the green bug;"

Bravo !

Go to top
Re: Any altivec experts? (H.264 codec)
Quite a regular
Quite a regular


See User information
@feanor and liveforit great work

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

A lot of good news
Once done any plan to merge your changes into the main trunk so to have all your PPC fixes also into the very latest FFMpeg ?

Go to top
Re: Any altivec experts? (H.264 codec)
Just popping in
Just popping in


See User information
@samo79

I hope so, in the next days, assuming real life issues are solved soon, but yes, it's something I want/need to do.

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


See User information
@samo79

LiveForIt - Mplayer 6.5.6, now uploaded to database-org.com
(only AltiVec)

This is first release candidate; it will be followed by 6.5.7, that will have FFMPEG2.6. (The final version will come with AltiVec and none AltiVec.)

(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
Thanks. However database-org.com looks very odd. Certainly no public downloads on there?

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
@ddni

It's where Liveforit puts his beta versions, for registered betatesters.

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


See User information
aah I'm not in that club...

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
@ddni

It a two steps registration policy

Well if you, like to be part of that club you can always register at site, and invite you to the group of tortured souls.

(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
Thanks. I have registered and logged in.
How can I help?

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top

  Register To Post
« 1 ... 29 30 31 (32) 33 34 35 36 »

 




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




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project