[FFmpeg-user] Hi, I want to ask a question about ffmpeg using dxva2 with multithreads

高伟 highgod0401 at gmail.com
Tue Jun 26 02:50:22 CEST 2012

Hi, Roger

Yes,only in my multi threads patch.I don't know why.I add the output
print,and it shows that the variable "vdelta" is not correct.

double vdelta = sync_ipts - ost->sync_opts + duration;

The variavle  sync_ipts  is eaqual between two frames.And I found that if
the frame decoded error,  The sync_ipts maybe eaqual.But I added output
print,and it showed that the decode is correct when it happened.So I don't
know why,can you give me some advice?

Best Regards

2012/6/25 Roger Pack <rogerdpack2 at gmail.com>

> > Yes, I have modify the code in my test project.Added load dxva2 and use
> > dxva2 to decode h264.Rescently, I added a thread to use dxva2 decode
> h264.
> > Primary thread do the encode work,and it just get the decoded frame,the
> > decode work has given to dxva2 thread.Then they can work paiallely,and
> the
> > speed is faster on my computer.
> Maybe you can submit your patch sometime, so the rest of us can get a
> speed boost as well :)
> > But now I have a question.
> > If I use this mode,sometimes,the ffmpeg.exe drop 1 frames
> >
> > Do you have any ideas where it gose wrong?
> It only drops them with your multi thread patch, not otherwise?
> Also maybe the VLC developers might have some insight...
> -r
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

More information about the ffmpeg-user mailing list