AMV Encoders - A/V Sync Test

If you have questions about compression/encoding/converting look here.
Locked
Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Mister Hatt » Wed Aug 25, 2010 11:41 am

Sure is EVERYONE MISSING THE POINT IN HOW HARDWARE RESTRICTIONS ARE AFFECTED BY VIDEO DECODING. Seriously, it's ALL about algorithm complexity and vbv and nothing to do with resolution/framerate. Also it seems there is still a strong misconception here that sharpness makes things harder to decode. You'll find that one way to throw it right out is to preserve heavy dither; that will put the vbv requirements way up and thus stress your hardware more.

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 » Wed Aug 25, 2010 12:05 pm

Mister Hatt, can you help me by providing a sample file that I can use in my testing? It does not have to be an uncompressed file itself, the AVS script like the one that mirkosp provided would work. So would a purely synthetic video (I have one that is alternating tones and colours) in AVS.

also... I am planning on using these x264 command lines

Code: Select all

x264 --profile high  --level 4.2 --preset veryslow --crf 18 -o %outputfile% %inputAVS%
x264 --profile high10 --level 4.2 --preset veryslow --crf 18 -o %outputfile% %inputAVS%
(not sure if I should add a tune?)
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 » Wed Aug 25, 2010 12:42 pm

Quu, I think a very good stress test for playback would be a clip exclusively made of noise of all colors all over the place. Perhaps something like:

Code: Select all

blankclip(width=1920,height=1080,fps=60000,fps_denominator=1001,length=1200,pixel_type="YV12")
addgrain(var=10000,uvar=10000)
Assuming a 20 secs clip is fine for your test.
Although I'm not sure how you could test the sync/drop rate. Perhaps put a song in the background and add the waveform with audiograph too?
Image

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

Re: AMV Encoders - A/V Sync Test

Post by Zarxrax » Wed Aug 25, 2010 1:02 pm

Quu wrote:also... I am planning on using these x264 command lines

Code: Select all

x264 --profile high  --level 4.2 --preset veryslow --crf 18 -o %outputfile% %inputAVS%
x264 --profile high10 --level 4.2 --preset veryslow --crf 18 -o %outputfile% %inputAVS%
(not sure if I should add a tune?)
It's useless to test 10bit encoding. Completely useless.
Also, unless x264 has changed this behavior recently, specifying a level does NOT ensure that your video will meet the requirements of that level, it merely sets a flag which says the video is at that level. To meet specific bitrate requirements, you must use vbv.
http://mewiki.project357.com/wiki/X264_ ... V_Encoding

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 » Wed Aug 25, 2010 1:07 pm

I like that example... I think i am going to merge it into one of my existing synthetic tests... so I will have the following

1) blank clip, with noise added, then audiodub with song from free music archive. finally audiograph of said song overlaid and time code added.

2) two blank clips, 5 seconds long each... each merged with different generated tone, then appended togethor and looped 30 times for a 5 minute video

to test for sync on the first one, I check frame 4000, for the second I check frame 7079 and 7080. I can make my test samples any resolution and frame rate I want then.

I am not familiar with the addgrain plugin... will be fun to play with (I am free tonight, so I can get on it)

is there a standard AVS->AVI or AVS->WAV command line tool? I have been thinking of using vdub (the command line interface for virtualdub)

Zaxrax, thanks... I did not know that, I will remove High10... I can't check that link at work, but will check it at home. (if it is useless, who would use it?)
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 » Wed Aug 25, 2010 1:17 pm

Quu wrote:I am not familiar with the addgrain plugin... will be fun to play with (I am free tonight, so I can get on it)
Be sure to get v1.5.1: http://forum.doom9.org/showthread.php?p ... ost1403052 ─ explanation of the settings here: http://forum.doom9.org/showthread.php?t=111849
The ones I set there will give you a very fast noise both for luma and chroma, so it should be fine. hcorr and vcorr will specify the dimension of the single grain, so you could toy with them depending on how big (or small) you want the noise to be.
Image

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

Re: AMV Encoders - A/V Sync Test

Post by Zarxrax » Wed Aug 25, 2010 2:02 pm

Quu wrote:is there a standard AVS->AVI or AVS->WAV command line tool?
avs2avi

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 » Wed Aug 25, 2010 2:14 pm

Zarxrax wrote:
Quu wrote:is there a standard AVS->AVI or AVS->WAV command line tool?
avs2avi
and i bet there is an avs2wav also

-_-;;;

sometimes i feel like such the old man
Lead me not to temptation, for I have deadlines

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Qyot27 » Wed Aug 25, 2010 2:23 pm

Quu wrote:is there a standard AVS->AVI or AVS->WAV command line tool? I have been thinking of using vdub (the command line interface for virtualdub)
Video only:
avs2avi

Audio only:
wavi (http://sourceforge.net/projects/wavi-avi2wav/)

Video and audio:
ffmpeg, mencoder
Zaxrax, thanks... I did not know that, I will remove High10... I can't check that link at work, but will check it at home. (if it is useless, who would use it?)
The uselessness of it is more about the fact that you need an entirely separate build of x264 to do 10-bit encoding, and that the corresponding optimizations haven't taken 10-bit into account. There's also not really any readily-available 10-bit source footage outside of test sequences and professional mastering copies, meaning that for AMVs one would have to take existing 8-bit material and use that instead.

In time, those things will change (well, at least the case of the 10-bit stuff being optimized), but at the current moment it's not really something that should be counted on. 10-bit H.264 also has fewer supported decoders - the only widely-available one I thought was verified to work was DivX 7, but that might have changed in the couple of months or so since 10-bit was committed.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: AMV Encoders - A/V Sync Test

Post by Qyot27 » Wed Aug 25, 2010 2:37 pm

Qyot27 wrote:There's also not really any readily-available 10-bit source footage outside of test sequences and professional mastering copies, meaning that for AMVs one would have to take existing 8-bit material and use that instead.
On top of the fact that x264 currently only supports 8-bit input at the moment anyway; much of any true benefit will come when it can use 10-bit material from start to finish, along with having the assembly code needed to speed it up, and more decoders to be able to properly handle it. Where it is now is just a beginning point needed to hopefully jump-start all of that process.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

Locked

Return to “Conversion / Encoding Help”