use below command:
mpv --hwdec=vaapi ~/Videos/dji_10s.mp4 --loop
meets an exception: low available varm causes switch to sw_dec when 2nd loop begin.
I debug intel media-driver and found the root-cause:
when 1st loop stop, first vaCreateSurfaces for the 2nd loop, then vaDestroySurfaces for the 1nd loop.
But vaCreateSurfaces for the 2nd loop may fail due to low avail vram.
I record the logs for CreateSurfaces+DestroySurfaces as follow:
Can reuse the VASurfaces? or Destroy-Create sequence?
I found when in_file is h265, it's ok and use reuse behavior.
when h264, it's Create-Destroy.
Expected Behavior
not switch to sw_dec when 2nd loop start.
Actual Behavior
low available vram, CreateSurface fail cause switch decoder.
Log File
[Uploading output_loop.txt…]()
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
[X] I tested with the latest mpv version to validate that the issue is not already fixed.
[X] I provided all required information including system and mpv version.
[X] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
[X] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
[X] I attached the full, untruncated log file.
[X] I attached the backtrace in the case of a crash.
mpv Information
Other Information
Reproduction Steps
use below command: mpv --hwdec=vaapi ~/Videos/dji_10s.mp4 --loop meets an exception: low available varm causes switch to sw_dec when 2nd loop begin. I debug intel media-driver and found the root-cause: when 1st loop stop, first vaCreateSurfaces for the 2nd loop, then vaDestroySurfaces for the 1nd loop. But vaCreateSurfaces for the 2nd loop may fail due to low avail vram. I record the logs for CreateSurfaces+DestroySurfaces as follow:
Can reuse the VASurfaces? or Destroy-Create sequence? I found when in_file is h265, it's ok and use reuse behavior. when h264, it's Create-Destroy.
Expected Behavior
not switch to sw_dec when 2nd loop start.
Actual Behavior
low available vram, CreateSurface fail cause switch decoder.
Log File
[Uploading output_loop.txt…]()
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.