-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding skipping frames, incorrect PTS/DTS [FFMPEG] #115
Comments
Also worth noting that the resulting file is generally playable but stutters on what I believe is the keyframe. |
Hi @guojiansheng0925 , could you take a look? Maybe start from transcode with the same configs first. Thank you. |
Hi @tianjunwork , it works well with local yuv files. I just got a camera and I will do more experiment tomorrow. |
@guojiansheng0925 Any idea why this might be happening? |
Hi @bentotom , I am sorry I've no idea but I found a strange thing in ffmpeg-20200606-024045.log.
I think we should check the patch firstly. Are you working on the master branch and build this FFmpeg at the following commit?
Then how do you add the patch to FFmpeg? Secondly, if local input file can not work well in your environment, shall we try to simplify the issue? Could you please try the following command and check if the output video have stutter? Thank you. |
That |
It's set by _patches=$(git rev-list origin/master.. --count)
[[ $_patches -gt 0 ]] &&
do_addOption "--extra-version=g$(git rev-parse --short origin/master)+$_patches" |
I removed -g from the commands and it seemed to do the trick. |
If gop size is not specified, |
Return shows, this.
|
I came here to look into this issue and It was defaulting to 32 before. |
Tried Happy to do more tests or try different options. |
Hmm, doing Edit: To clarify, leaving |
yeah, this might be an actual bug withe either the packager or the way SVT is handling keyframes. And as I said, leaving |
Is that ok to attach a small clip of mkv with shutter issue? |
Hi @bentotom , Could you please check your svt-vp9 version? |
@tianjunwork
|
@guojiansheng0925 |
I used VQA that can parse mkv container to read files attached by @bentotom. |
Okay. The Timecode between cross each Cluster has a jump and is not continues. BTW, @guojiansheng0925 , could you take a further look at the timestamp crosses clusters? |
I've been trying to get an encode to work on FFMPEG, either though capture card or file.
Haven't figured out what wrong with my settings or if the plugin just doesen't play nice yet.
Almost immediately, the encode starts out with a PST/DTS desync and then the encode begins to skip frames.
CPU is at ~45%, and I can generally hit 115fps without any issues so I don't think its a system speed thing.
Here's the general command I'm using, although over the past 2 days I've used almost every permutation of pts/dts/vsync/startatzero/genpts/fps combinations.
-f dshow -rtbufsize 2048M -framerate 60 -s 1920x1080 -i video='AVerMedia HD Capture GC573 1':audio='AES (RME ADI-2 Pro)' -c:a libopus -ar 48000 -b:a 160k -c:v libsvt_vp9 -pix_fmt yuv420p -s 1920x1080 -r 60000/1000 -preset 9 -rc 2 -g 128 -b:v 15M -t 45 -f webm E:\VIDEO-TESTS\output\outputtestvp9-120fps.mkv
Logs included, maybe someone knows what I'm missing.
encodestats.log
ffmpeg-20200606-024045.log
The text was updated successfully, but these errors were encountered: