Comments (16)
Not sure if this is the same issue I'm having but I fixed this by encoding only with FFmpeg then remuxing the files with mkvmerge. There's something wrong with the muxing process in FFmpeg.
from media-driver.
Auto Created VSMGWL-69499 for further analysis.
from media-driver.
@leyu-yao @XinfengZhang Has there been any progress on this issue?
from media-driver.
@xhaihao do you see any issues for ffmpeg-qsv VP9?
from media-driver.
@Sherry-Lin Yes, I see this issue. The root cause is that VPL runtime doesn't set keyframe flag on returned bitstream.
@warduweram Could you try this WA (intel-media-ci/ffmpeg#701) in FFmpeg ?
from media-driver.
@xhaihao I can try, sure, but I don't know how/where to apply that commit, so if you could give me a hand. :D
from media-driver.
@warduweram you may use the branch directly.
$ git clone https://github.com/xhaihao/ffmpeg-1.git -b wa-qsvenc-vp9
from media-driver.
@xhaihao Thanks for the effort, I appreciate it! I understand correctly that I have to build ffmpeg from that cloned repository, right? It might take me a while, since I haven't built something as complex as ffmpeg before. I might have to boot to Linux or figure out how to do it under Windows. So if there's anyone else with the necessary skills and hardware, feel free to try it out before me.
from media-driver.
I can confirm the fix is working with QSV VP9. Thanks a lot!
from media-driver.
@jnko Awesome, thanks for trying it out, I couldn't manage to compile under Windows.
@Sherry-Lin How do we continue from here, do we communicate this to the ffmpeg team or do you still wanna fix it in the drivers?
from media-driver.
@warduweram The patch was submitted to FFmpeg ML, see https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/
from media-driver.
@xhaihao Awesome, thanks so much!
from media-driver.
With this commit intel/vpl-gpu-rt@89edcba VPL will set IDR flag (keyframe flag) for VP9 I frames.
from media-driver.
@leyu-yao Thanks so much for the lengthy explanation, I appreciate it! Will the fix work for RaptorLake iGPU?
leyu-yao wrote (on other thread):
I checked windows release driver on . Unfortunately, this is fix is not included yet.
For VPL and Media sdk, they are two runtime in graphics driver. On some new platforms, VPL is used. And media sdk is used on old platforms and it is not maintained anymore.
If you are using recent Intel platforms such as DG2(Arc Axxx) or MTL(Core Ultra xxx), these platforms will use the latest runtime. And this fix will be included the windows release driver in a few weeks. Once you install the driver which includes this fix, a stock ffmpeg build is good to use.
However, if you are using some older platforms, this fix won't benefit the windows release driver and you still need a build ffmpeg with Haihao's patch https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/ I'm not sure when his ffmpeg patch will be included in some ffmpeg pre-build release. May need comment from Haihao.
from media-driver.
@leyu-yao Thanks so much for the lengthy explanation, I appreciate it! Will the fix work for RaptorLake iGPU?
leyu-yao wrote (on other thread):
I checked windows release driver on . Unfortunately, this is fix is not included yet.
For VPL and Media sdk, they are two runtime in graphics driver. On some new platforms, VPL is used. And media sdk is used on old platforms and it is not maintained anymore.
If you are using recent Intel platforms such as DG2(Arc Axxx) or MTL(Core Ultra xxx), these platforms will use the latest runtime. And this fix will be included the windows release driver in a few weeks. Once you install the driver which includes this fix, a stock ffmpeg build is good to use.
However, if you are using some older platforms, this fix won't benefit the windows release driver and you still need a build ffmpeg with Haihao's patch https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/ I'm not sure when his ffmpeg patch will be included in some ffmpeg pre-build release. May need comment from Haihao.
Hi @warduweram
As I remember, both VPL and MSDK RT are supported on RaptorLake iGPU. But sorry I'm not very familiar with ffmpeg.
Hi @xhaihao, sorry could you help to comment on this? Which RT will ffmpeg qsv plugin load on RaptorLake?
from media-driver.
This seems to be fixed on 5382 WHQL Intel Arc/Iris drivers with ffmpeg 7.0 on RaptorLake if the right bitrate settings for ffmpeg are chosen, I'll close the issue. Thanks again for all the efforts involved.
from media-driver.
Related Issues (20)
- [Bug]: h264Encode sample test from libra-utils uses IDR frame as ref picture all the time HOT 1
- [Bug]: musl build fails HOT 3
- [Bug]: VAAPI in Container with WSL2 Windows not working
- [Bug]: Unable to use EncTools on DG1 HOT 7
- `master` build + gcc14.1 FAILs @ undecl syms `VPHAL_VEBOX_{RGB32,AYUV,RGB64`; tag `intel-media-24.2.4` OK HOT 9
- [Bug]: Build failure on Synology DSM 7.1 using spksrc HOT 1
- [Feature]: support I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC
- [Bug]: GPU Hang on decoding stream HOT 4
- [Bug]: gstreamer plugin vapostproc produces tiled output HOT 4
- [Bug]: Transcoding HDR video failed with GPU HANG HOT 5
- [Bug]: encoder vah264enc failed HOT 1
- [Bug]: vaGetImage takes 90ms on each FullHD frame HOT 8
- [Bug]: Raptor lake 13500H crash HOT 5
- [Bug]: Wsl2 Ubuntu '-make j8' not responding (I think) HOT 1
- [Bug]: 32a5aa6528f8 build error on Ubuntu Noble(2404) HOT 5
- [Feature]: dump decoder yuv HOT 2
- [Bug]: Fail to play 2048x1152 mpeg2 video with oneVPL and media-driver. HOT 3
- [Feature]: AV1 decode support in media-driver without any kernels built HOT 5
- [Bug]: `scale_vaapi` behaves differently than `zscale` (ffmpeg) HOT 6
- [Bug]: compile error on media-driver 24.3.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from media-driver.