[MITIGATED] softhddevice v2.3.6 with vdr (2.6.9/2.6.9): silence or lip-sync delay after time-shift
-
-
Hi Carel,
with nvdec and vdpau
how about cuvid?
And yes, it might be related, you never know. Please show debug log. What video sync mode do you use?
“play silence instead of dupping audio for all sync modes” is meant to improve the situation.
There are 2 reasons for playing silence.
Either you hear silence instead of cracking noise.
Or it is there instead of underrun, stop of audio and restart of audio and sync. Which would cause much more delay.
So I guess, that is what everybody wants.
If people prefer cracks and underruns instead of silence, I could make it configurable
But maybe there is a bug somewhere, I can't test every situation.
time-shift recording starts playing back
You start a recording, and then play it, while it's still recording or something else?
Best, Jörg
-
lip-sync delay
definitly shouldn't happen
Does it also happen with just playing back the recording without time-shift?
-
I have an idea for a fix. I will make a commit next week, when I am back home.
In playback the silence mechanism isn't needed cause al data are there already, so I will disable it for playback.
-
Ist gar nicht nötig, da bereits so eingebaut: Bei einer Aufnahme (IsReplay()) sind die Bedingungen in [1] und [2] nicht erfüllt. Und bei Beginn einer Aufnahme wird PlayRingbuffer wieder aktiviert [3].
Deswegen denke ich, es hat nichts mit meinen Änderungen zu tun.
Ein Debug-Log wäre trotzdem interessant.
-
after resume playback
You mean after pausing and resuming playback? That's new information.
Anyway I need a debug log.
-
Hi Jrie
Thanks for looking into it!
The issue happens when I press play (or pause again) in a live broadcast to resume playback after I started time-shift pause.
But you're right! It also occurs with earlier versions, e.g. v2.3.4
- When I reply soon after the pause it mostly goes fine, when I wait e.g. more than five minutes, then there's no audio or lip-sync problem
- I did not test with cuvid, deinterlace doesn't work with 1080i here.
- Issue does not occur with SD streams or 1080p only 1080i
- Normal recordings are not impacted.
I'll test further
-
What sync mode in softhddevice you use?
-
Currently running v2.3.4
Early audio + soft sync
But does also happen with other sync modes
I'll get some debugs!
-
Are you using some timeshift plugin/patch? And if so, which one?
-
Ah, here you go: permashift
switched it off: problem gone!
Still strange that permashift worked fine in the past,
Don't know when this exactly started, just thought it might be related to the 'silence' changes in softhddevice.
Anyway, thanks for your help!
-
carel
Changed the title of the thread from “softhddevice v2.3.6 with vdr (2.6.9/2.6.9): silence or lip-sync delay after time-shift” to “[MITIGATED] softhddevice v2.3.6 with vdr (2.6.9/2.6.9): silence or lip-sync delay after time-shift”. -
Hello,
Just found this was caused by the switch "still-h264-hw-decoder" which I had active.
After removing it, the replay from time-shit pause syncs fine also with active permashift
-
What does the patch permashift give?
And where to see it?
-
GitHub - eikesauer/Permashift: Permanent timeshift plugin for Video Disc Recorder (VDR)Permanent timeshift plugin for Video Disc Recorder (VDR) - eikesauer/Permashiftgithub.com
Description:
Permashift saves the TV channel shown live into a ring buffer in RAM.
Thus VDR can rewind from live TV or prepend video from the past to
an instant recording.... -
I.e. in the original VDR the timeshift is saved to disk, and with the patch to memory, is this the main difference?
And with the plugin the timeshift is always on.
-
Yes that's about it! It's a gimmick
Handy if you just missed the last goal in a soccer match that happened e.g. 10 min ago...
Just press rewind and wait until you see it,
I must say that after rewind and replay sometimes the audio/video is out of sync, but please don't bother.
This feature is not used frequently and the plugin and vdr patch are not very actively maintained.
-
Permashift gives the opportunity to rewind back in LiveTV! This is no timeshift, as timeshift is stored as as recording, this is just for the active channel in memory.
Regards Stefan
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!