AMV Encoders - A/V Sync Test

If you have questions about compression/encoding/converting look here.
Locked
User avatar
Quu
Joined: Tue Dec 26, 2000 1:20 pm
Location: Atlanta, GA
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Quu » Thu Aug 26, 2010 1:10 pm

for the transfer rate, this is balanced by codec complexity. On the revo, with windows, I played back the higher bitrate mpeg-4 asp version of the same video that failed with the h.264 version, played fine

that is what caused me to look at the mpeg-4 asp

and, I am just exploring right now, expanding my options, narrowing the details
Lead me not to temptation, for I have deadlines

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Zarxrax » Thu Aug 26, 2010 2:18 pm

Quu wrote:for the transfer rate, this is balanced by codec complexity
AVC is very flexible though, and its "complexity" can be modified. I would say that its probably possible to make an avc encode that is both smaller and less taxing on the cpu than an asp encode.

I just did a very informal test myself comparing the decoding speed of x264 vs xvid on my system.
Source footage was nostromo's running man with lots of grain added.
A normal x264 encode with crf 18 decoded in 124 seconds. (filesize was about 3gb)
Same settings, except using Fast Decode preset came to 55 seconds.
An xvid encode at quantizer 2 (needed almost twice the bitrate as the x264 encodes) decoded in 164 seconds.
An xvid encode at quantizer 4 (roughly same bitrate as the x264 encodes) decoded in 118 seconds.

So although its a very informal test, you can see that bitrate has a much larger effect than the codec choice. And by using fast decode in x264 we can gain significant decoding speed.

User avatar
Quu
Joined: Tue Dec 26, 2000 1:20 pm
Location: Atlanta, GA
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Quu » Thu Aug 26, 2010 2:22 pm

I am curious, what is the file size difference between fastdecode vs normal (3gb)
and I would be curious if fastdecode detrimentally affects quality? (My guess is it just makes the size larger)
Lead me not to temptation, for I have deadlines

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Zarxrax » Thu Aug 26, 2010 3:03 pm

Normal was 2.9gb, fast decode was 3.05gb. Quality should be roughly the same.

User avatar
Quu
Joined: Tue Dec 26, 2000 1:20 pm
Location: Atlanta, GA
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Quu » Thu Aug 26, 2010 3:44 pm

yea... that quality things... gets hard to test and compare... all the objective methods fail... or can be gamed
which i why I was counting on "insane" settings to be comparable in quality
Lead me not to temptation, for I have deadlines

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by mirkosp » Thu Aug 26, 2010 3:50 pm

Quality can only be compared when you keep bitrate low, really. Once you start to have a high bitrate, any codec should be able to have a good ouput, and so even at same bitrate, if it is high enough, all encodes will be looking roughly the same, really. Rather than worrying about quality, you should just worry about playback speed I think. The easier it is, the better, since filesize isn't an issue for you. If you tried doing a ' --tune fastdecode, zerolatency ' encode at crf 16 you could be getting some insanely fast decoding speed...
Image

User avatar
BasharOfTheAges
Just zis guy, you know?
Joined: Tue Sep 14, 2004 11:32 pm
Status: Breathing
Location: Merrimack, NH
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by BasharOfTheAges » Thu Aug 26, 2010 4:33 pm

You can compare quality-loss in a non-subjective way though. It involves coming up with a method to create a difference matte between the encoded and uncompressed files, compute a total value (or values) of difference in RGB or HLS of each pixel for each frame, then compute the % variance across each metric for each frame and for the video as a whole as a data set. Compute the variance by obtaining the integral of the absolute value of divergence from zero of the previous set. The encode with lowest variance would probably be the best. You'd need to test vs observational results to determine the threshold of it mattering.
Anime Boston Fan Creations Coordinator (2019-2023)
Anime Boston Fan Creations Staff (2016-2018)
Another Anime Convention AMV Contest Coordinator 2008-2016
| | |

kholaras
Joined: Wed Jul 23, 2003 10:57 pm
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by kholaras » Thu Aug 26, 2010 4:45 pm

I'm sure you'd love to see some numbers confirm it, but I think throwing the absolute max bitrate at the problem may not be the ideal solution. Yes, it'll give a near perfect result even with a lossy compressor but, if I understood Hatt's pedantic explanation, your decode effort will be directly proportional to the bitstream density. Bitstream density, for a fixed quality encode, will increase proportionally, which is what you were inadvertently testing with higher resolution and frame rate videos. Higher bitrates will also incur higher container overhead and disk transfers. I know you mentioned the bandwidth wasn't much of a concern (and it's not), but the CPU usage on a single core Atom may become a factor.

Dumb question, but do any of the players have an internal profiler to track the time to decode individual frames, either individually or as an average?

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by mirkosp » Thu Aug 26, 2010 4:51 pm

BasharOfTheAges wrote:You can compare quality-loss in a non-subjective way though. It involves coming up with a method to create a difference matte between the encoded and uncompressed files, compute a total value (or values) of difference in RGB or HLS of each pixel for each frame, then compute the % variance across each metric for each frame and for the video as a whole as a data set. Compute the variance by obtaining the integral of the absolute value of divergence from zero of the previous set. The encode with lowest variance would probably be the best. You'd need to test vs observational results to determine the threshold of it mattering.
Nah, that doesn't work. Psychovisual optimisations distort the input, so you will probably get a lower difference with an encode without psys, but when you watch the output the psy-optimised video will look better. So nope, the difference matte way doesn't matter in lossy comparisons.
Image

User avatar
Quu
Joined: Tue Dec 26, 2000 1:20 pm
Location: Atlanta, GA
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Quu » Thu Aug 26, 2010 4:57 pm

kholaras wrote:Dumb question, but do any of the players have an internal profiler to track the time to decode individual frames, either individually or as an average?
I know the mplayer -benchmark does something close, i don't think VLC has anything like it

my plan was to use normal system monitoring tools to tell me the cpu ussage, peak and average, along with memory use, peak and average, as the files are played. Also, to keep a frame drop count along with that... that is stuff I can get from each player
Lead me not to temptation, for I have deadlines

Locked

Return to “Conversion / Encoding Help”