Question / Help HD PVR Error Decoding Video

Hanzo420

New Member
So as the title says I encounter an issue/error when trying to stream via Video Capture Device through my HD PVR 1. The video and audio work fine for a couple of minutes at about 20-35% CPU usage, then when i tend to get into high bit-rate intensive situations (or sometimes not) it proceeds to lag, almost as if it goes into slow motion. If i then return to less intensive bit rate situation It may return back to a normal CPU usage and video will run smoothly, but then audio becomes out of sync.

When I check my resource monitor it shows that my maximum CPU frequency is limited from 80% constant, down to about 50% and below when streaming, then when I stop streaming and close the program it proceeds to go back up to its normal maximum frequency of about 90-100%.

The error stated is:-

18:34:27.789: Error decoding video
18:34:27.789: error: sps_id 0 out of range
18:34:27.789: error: non-existing PPS 0 referenced
18:34:27.789: error: decode_slice_header error
18:34:27.789: error: no frame!
18:34:27.789: Error decoding video
18:34:27.991: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds
18:34:28.299: adding 23 milliseconds of audio buffering, total audio buffering is now 92 milliseconds


(Complete log file listed below)
https://gist.github.com/89aa79846bf3560bffb1e49ca0e81dd2

Any help on this matter is welcomed, I was thinking its just something to do with my hardware being outdated or a potential fault on my CPU. It may be worth noting that this issue initially occurred recently while i was streaming Alien Isolation, and it was flawless for a substantial amount of time but then at a point towards the end of the stream the audio became out of sync but i didn't notice any video lag. Where as opposing to that game, Rainbow six siege which has a highly intensive bit-rate, seems to have this issue occur consistently, which basically leads me to believe its something to do with my hardware.

However i thought i would post this on here anyway to gauge other peoples opinions and see if i could find a potential solution to this issue, or generally just some clarification on the matter as to whether or not it is something to with my hardware i.e. my HD PVR my CPU/GPU, or if it is even at all related to OBS multiplatform.



With regards

- Hanzo
 

Suslik V

Active Member
I think you need to use your capture at 30p (if source 30p), and disable Variable Framerate in x264 settings.

Can you post another log when issue is present during streaming/recording?
 

Hanzo420

New Member
I think you need to use your capture at 30p (if source 30p), and disable Variable Framerate in x264 settings.

Can you post another log when issue is present during streaming/recording?

My HD PVR captures at 1280x720 at 60p, but I've always streamed at 30p because playing on consoles the frame rate is rarely higher than 60p in certain games, however I know rainbow six does run at 60p so this could be the issue. So having said that, I don't believe I can change my HD PVR input from 60p to 30p but i will look into it, but do you also think i should try streaming at 60p instead? surely this would exacerbate the situation though.


- Hanzo
 

Suslik V

Active Member
Because, I think, that 18:34:27.789: error: sps_id 0 out of range - is nothing, when you got this, there would be no video at all. But maybe, I'm wrong and new log not required. Just wait for official answer.
I got this error and no video, when I use file from this page https://trac.ffmpeg.org/ticket/2050 with custom build of obs studio, renaming .mpg to .ts and import it as media file, but if I uncheck Use hardware decoding when available in 'Media Source' properties all just fine - no error, file plays.
 

Hanzo420

New Member
Because, I think, that 18:34:27.789: error: sps_id 0 out of range - is nothing, when you got this, there would be no video at all. But maybe, I'm wrong and new log not required. Just wait for official answer.
I got this error and no video, when I use file from this page https://trac.ffmpeg.org/ticket/2050 with custom build of obs studio, renaming .mpg to .ts and import it as media file, but if I uncheck Use hardware decoding when available in 'Media Source' properties all just fine - no error, file plays.


Ok, in hindsight I think you're right also, that the first error it states when I'm not streaming/recording is unrelated. And that the actual error is in some way related to the audio somehow adding buffering time to itself and causing the video to lag in slow motion and the audio to become desynced. This is the actual error that presents itself when recording/streaming

18:37:31.264: adding 23 milliseconds of audio buffering, total audio buffering is now 905 milliseconds
18:37:40.005: Last log entry repeated for 5 more lines
18:37:40.005: Max audio buffering reached!

I'm no expert, but I fail to see how this could even be related to causing the video to lag in the way it does. I feel i may have to make a separate post stating this as the issue rather than "error decoding video".

However I think its necessary to provide some evidence as to what I'm talking about, so below is a clip directly showing the video going into slow motion then speeding back up and skipping frames to catch back up, also by this point the audio is already desynced before the video lag incurs. I will try and find the point of inception for the audio and video lag this was just the most easiest/memorable one to obtain.

https://www.twitch.tv/hattorihanzo420/v/60723245


 
Top