1 (edited by Andeke 21-12-2014 11:26:41)

Topic: Missing P-frames/first few seconds of encode lost

Hi!

I've been having this problem with every single one of my encodes so far. Each time I encode something the first few frames are lost, or at least not loaded for the encode (see attachment for reference).

Here is my Avisynth script:

SetMemoryMax(1024)

global svp_scheduler=true
global threads=3
global svp_cache_fwd=threads+2

LoadPlugin("C:\Program Files (x86)\SVP\plugins\svpflow1.dll")
LoadPlugin("C:\Program Files (x86)\SVP\plugins\svpflow2.dll")

SetMTMode(3,threads)
DirectShowSource("D:\encoding\ED1\ED1 (1).mkv", fps=23.976, convertfps=true).ConvertToYV12()
SetMTMode(2)

global crop_params=""
global resize_string=""
global super_params="{pel:1,scale:{up:0},gpu:1,full:false,rc:false}"
global analyse_params="{block:{w:32,h:32},main:{search:{coarse:{distance:-14,bad:{range:0}},distance:0}},refine:[{thsad:250}]}"
global smoothfps_params="{rate:{num:5,den:2},algo:2,mask:{area:100},scene:{limits:{m1:0,m2:0}}}"

global demo_mode=0
stereo_type=0
stereo_left_selection=""
stereo_right_selection=""

function interpolate(clip src)
{
    input = crop_params=="" ? src : eval("src.crop("+crop_params+")")
    input = resize_string=="" ? input : eval("input."+resize_string)

    super=SVSuper(input, super_params)
    vectors=SVAnalyse(super, analyse_params, src=input)
    smooth=SVSmoothFps(input, super, vectors, smoothfps_params, mt=threads, url="www.svp-team.com")

    return demo_mode==0 ? smooth : demo(input,smooth)
}

input=last

    stereo_type==0 ? eval(""" interpolate(input)
""") :     stereo_type==1 || stereo_type==3 ? eval("""
        lf = interpolate(input.crop(0,0,input.width/2,0))"""+stereo_left_selection+"""
        rf = interpolate(input.crop(input.width/2,0,0,0))"""+stereo_right_selection+"""
        StackHorizontal(lf, rf)
""") :     stereo_type==2 || stereo_type==4  ? Eval("""
        lf = interpolate(input.crop(0,0,0,input.height/2))"""+stereo_left_selection+"""
        rf = interpolate(input.crop(0,input.height/2,0,0))"""+stereo_right_selection+"""
        StackVertical(lf, rf)""") : input

Any idea why this is happening?

Post's attachments

ED1-[60FPS].mkv_snapshot_00.00_[2014.12.21_12.21.jpg 134.56 kb, 159 downloads since 2014-12-21 

Re: Missing P-frames/first few seconds of encode lost

Andeke
Try to use 'zero latency' option in x264.

Re: Missing P-frames/first few seconds of encode lost

Nope, still having the exact same problem. Although in another encode no colours are lost, it's just completely still, almost like it's paused.

Re: Missing P-frames/first few seconds of encode lost

What encoder do you use?

Re: Missing P-frames/first few seconds of encode lost

MeGUI for interface and settings, x264 for encoding. Sometimes I use x264 executable through the command window instead.

Re: Missing P-frames/first few seconds of encode lost

I think wrong P-frames is encoder issue.
What tool do you use to analyze P- B- and I-frames in the stream?