AMV Encoders - A/V Sync Test

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Re: AMV Encoders - A/V Sync Test

Postby mirkosp » Wed Aug 25, 2010 10:48 am

Zarxrax wrote:Also have you taken into consideration 60fps videos? Some editors are editing at 60fps (though its rare), and I'm sure their bitrate requirements at 1080p would kill that system.

If he does require level 4.1, then 1080p60 is not possible, as that would be level 4.2 at least. :asd:
720p60 is perfectly fine at level 4.1 though.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: AMV Encoders - A/V Sync Test

Postby Zarxrax » Wed Aug 25, 2010 10:57 am

By the way, here's a good way to make a solid test clip.
- Take one of Nostromo's 720p 60fps videos
- Upscale to 1080p
- Sharpen
- Add grain

And there you have it. This will be a killer clip, a good test of the limits of your hardware.
User avatar
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC

Re: AMV Encoders - A/V Sync Test

Postby Quu » Wed Aug 25, 2010 11:16 am

Zarxrax wrote:By the way, here's a good way to make a solid test clip.
- Take one of Nostromo's 720p 60fps videos
- Upscale to 1080p
- Sharpen
- Add grain

And there you have it. This will be a killer clip, a good test of the limits of your hardware.


that actually is a very good idea... I need to get a hold of Nostromo to ask permission.

and the reason I have been using that little box, is that so far it has passed all of my testing with VLC (and XBMC with linux) with 1080p... i don't have any 1080p60 videos.

but, you are right... I might want to focus on 720p for right now. Most projectors at conventions won't be 1080p... they actually tend to be XGA projectors doing 1024x768 at the most... which is kind of sad.
Lead me not to temptation, for I have deadlines
User avatar
Quu
 
Joined: 26 Dec 2000
Location: Atlanta, GA

Re: AMV Encoders - A/V Sync Test

Postby mirkosp » Wed Aug 25, 2010 11:30 am

Zarxrax wrote:By the way, here's a good way to make a solid test clip.
- Take one of Nostromo's 720p 60fps videos
- Upscale to 1080p
- Sharpen
- Add grain

And there you have it. This will be a killer clip, a good test of the limits of your hardware.


Code: Select all
FFVideoSource("Nostromo_-_Running_Man_720p@60_H.264.mp4")
spline36resize(1920,1080)
strength=2
mergeluma(converttorgb32.GeneralConvolution(0, "   0   -1   0   -1    5  -1    0   -1   0 ", 1, true).converttoyv12.fft3dfilter(bw=6, bh=6, ow=3, oh=3, plane=0, bt=1, sigma=strength).fft3dfilter(bw=216, bh=216, ow=108, oh=108, plane=0, bt=1, sigma=strength/8, sigma2=strength/4, sigma3=strength/2, sigma4=strength))
awarpsharp2(depth=8)
dehalo_alpha(brightstr=0.8,darkstr=0.2)
addgrainc(hcorr=0.2,vcorr=0.2,var=4.5)

:rofl: :rofl: :rofl:
Hey, it will be sharp and grainy for sure.
:rofl: :rofl: :rofl:
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: AMV Encoders - A/V Sync Test

Postby Quu » Wed Aug 25, 2010 11:38 am

I sent a PM to Nostromo asking permission to use one of the clips.

I am going to focus, right now, on encoders... i have two synthetic videos, and hopefully at least one non synthetic (maybe more... anybody have example videos that think would be a good test for encoders, sync, and playback?) that i can use

I am going to test MPEG-2 Video MP@HL and MPEG-4 AVC H.264 High/4.2 and MPEG-4 AVC High10/4.2 (I see that x264 supports the 10 bit high profile). I am going to test with flac audio, mpeg-2/3 audio, and aac audio... max settings for each one. Finally I am going to use MPEG-2 PS/TS, MPEG-4 Part 15 (.mp4), and Matroska decoding

As far as known issues...
A/V Sync - some encoders don't agree with decoders for a/v sync, same with muxers vs demuxers
A/V Drift - some encoders add audio drift as the the file is player, so I will test late in the file for this (5 minutes+)
seeking - We do not use seek at conventions, so I will not be testing for proper seeking
chapters/editions - this is not a concern for amv playback at conventions, will not be tested
blocking - if the decoders is able to properly decode the video, will look for differences in the expected and decoded video

I would like to also test audio quality and video quality, but i don't have an objective way to do that... psnr or asnr can be gamed
Lead me not to temptation, for I have deadlines
User avatar
Quu
 
Joined: 26 Dec 2000
Location: Atlanta, GA

Re: AMV Encoders - A/V Sync Test

Postby 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.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: AMV Encoders - A/V Sync Test

Postby 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
Quu
 
Joined: 26 Dec 2000
Location: Atlanta, GA

Re: AMV Encoders - A/V Sync Test

Postby 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
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: AMV Encoders - A/V Sync Test

Postby 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
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC

Re: AMV Encoders - A/V Sync Test

Postby 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
Quu
 
Joined: 26 Dec 2000
Location: Atlanta, GA

Re: AMV Encoders - A/V Sync Test

Postby 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=1403052#post1403052 ─ 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
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: AMV Encoders - A/V Sync Test

Postby 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
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC

Re: AMV Encoders - A/V Sync Test

Postby 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
Quu
 
Joined: 26 Dec 2000
Location: Atlanta, GA

Re: AMV Encoders - A/V Sync Test

Postby 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: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: AMV Encoders - A/V Sync Test

Postby 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
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

PreviousNext

Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest