Hi,
Dominique Simon wrote:
VDR developer version 1.3.28 is now available at
As in 1.3.26 when the cVideoRepacker was introduced, it's making the same problem again. e.g. when i watch a recording and a timer starts, VDR crashes like this:
[snip]
Aug 9 20:12:02 linvdr user.err vdr[1807]: cVideoRepacker: skipped 4 bytes to sync on next picture Aug 9 20:12:09 linvdr user.debug vdr[1808]: buffer usage: 70%
(tid=66573)
Aug 9 20:12:10 linvdr user.debug vdr[1808]: buffer usage: 80%
(tid=66573)
Aug 9 20:12:11 linvdr user.debug vdr[1808]: buffer usage: 90%
(tid=66573)
Aug 9 20:12:12 linvdr user.debug vdr[1808]: buffer usage: 100% (tid=66573) Aug 9 20:12:12 linvdr user.err vdr[1808]: ERROR: 1 ring buffer overflow (65 bytes dropped) Aug 9 20:12:18 linvdr user.err vdr[1808]: ERROR: 14271 ring buffer overflows (2682948 bytes dropped) Aug 9 20:12:24 linvdr user.err vdr[1808]: ERROR: 18048 ring buffer overflows (3393024 bytes dropped) Aug 9 20:12:30 linvdr user.err vdr[1808]: ERROR: 16976 ring buffer overflows (3191488 bytes dropped) Aug 9 20:12:32 linvdr user.err vdr[1806]: ERROR: video data stream
broken
Aug 9 20:12:32 linvdr user.err vdr[1806]: initiating emergency exit
How can i turn that cVideoRepacker off again? VDR 1.3.26 worked like a charm...
It's the same switch by which you could enable it in VDR-1.3.27 (TEST_cVideoRepacker, remux.c:1279). But please help me fix this issue instead of turning it off.
Strange is the timestamp 20:12:02: at this time, cVideoRepacker seems to be in sync, but for any reason, it seems to process no more data as at 20:12:32 the recording is aborted with "ERROR: video data stream broken" which indidates, that the recorder didn't see any data for 30 seconds.
Simon Baxter sent me a similar report, but with debug code inserted which showed that cVideoRepacker wasn't completely stuck.
Is it easy for you to trigger this issue? I've tried two simultanuous timers plus watching a recording but couldn't trigger the issue.
Please add the following 4 lines, which are marked with "<========" to the appropriate source locations (cRepacker::Put(), cVideoRepacker::Repack()) in remux.c and send me the output when the problem happens again.
static int Put(.....) { esyslog(">>>>> cRepacker::Put(%d)", Count); // <============
int n = ResultBuffer->Put(Data, Count); if (n != Count) esyslog(.....);
esyslog("<<<<< cRepacker::Put"); // <============
return n; }
. . .
void cVideoRepacker::Repack(.....) { esyslog(">>>>> cVideoRepacker::Repack(%d)", Count); // <============
// synchronisation is detected some bytes after frame start. const int SkippedBytesLimit = 4;
// reset local scanner localStart = -1;
. . .
// report that syncing dropped some bytes if (skippedBytes > SkippedBytesLimit) { esyslog(.....); skippedBytes = SkippedBytesLimit; }
esyslog("<<<<< cVideoRepacker::Repack()"); // <============ }
Bye.
Am 09.08.2005 um 23:58 schrieb Reinhard Nissl:
Simon Baxter sent me a similar report, but with debug code inserted which showed that cVideoRepacker wasn't completely stuck.
Is it easy for you to trigger this issue? I've tried two simultanuous timers plus watching a recording but couldn't trigger the issue.
I had two crashes since i upgraded to 1.3.28, i seems to happen when i watch a recording and a timer starts on the second card (i have two FF cards)
Please add the following 4 lines, which are marked with "<========" to the appropriate source locations (cRepacker::Put(), cVideoRepacker::Repack()) in remux.c and send me the output when the problem happens again.
OK, i'll try. Without cVideorepacker anything works again btw
Ciao, Dominique
Am 09.08.2005 um 23:58 schrieb Reinhard Nissl:
Is it easy for you to trigger this issue? I've tried two simultanuous timers plus watching a recording but couldn't trigger the issue.
With your debug code inserted, VDR didn't crash when i tried to trigger this bug. Maybe the Moon needs to be shining? My Syslog is flooded with debug messages now, but Linvdr only stores 200kB of Syslog :(. Any way to reduce the debug output to a minimum?
Ciao
Hi,
Dominique Simon wrote:
Is it easy for you to trigger this issue? I've tried two simultanuous timers plus watching a recording but couldn't trigger the issue.
With your debug code inserted, VDR didn't crash when i tried to trigger this bug. Maybe the Moon needs to be shining? My Syslog is flooded with debug messages now, but Linvdr only stores 200kB of Syslog :(. Any way to reduce the debug output to a minimum?
I fear not. The basic question which this debug output shall reveal is whether cVideoRepacker is still working within the 30 seconds before VDR is restarted. Therefore it is useful to have a report of the bytes consumed and produced by cVideoRepacker.
Looking at your previous logfile it seems that cVideoRepacker doesn't consume any data and therefore doesn't procude any data which leads to an overflow at the input side and an underflow at the output side.
So if you don't mind, just keep it running until it crashes and then send the logfile.
Bye.
On Tuesday 09 Aug 2005 22:58, Reinhard Nissl wrote:
Hi,
Dominique Simon wrote:
VDR developer version 1.3.28 is now available at
As in 1.3.26 when the cVideoRepacker was introduced, it's making the same problem again. e.g. when i watch a recording and a timer starts, VDR crashes like this:
In case it helps I'm getting the same problem with 1.3.28. Log extract:
Aug 10 20:57:00 sodom vdr[14087]: timer 1 (27 2057-2205 'Extreme Engineering: Discovery Channel') start Aug 10 20:57:00 sodom vdr[14087]: record /video/video/Extreme_Engineering:_Discovery_Channel/2005-08-10.20:57.99.99.rec Aug 10 21:01:12 sodom vdr[14087]: channel 27 (Xtraview) event 21:00 'Extreme Engineering: Discovery Channel' status 4 Aug 10 21:04:59 sodom vdr[14087]: ERROR: unknown picture type '4' Aug 10 21:31:46 sodom vdr[14087]: cVideoRepacker: found system start code: stream seems to be scrambled or not demultiplexed Aug 10 21:31:46 sodom vdr[14087]: cVideoRepacker: skipped 1292 bytes while syncing on next picture Aug 10 21:31:46 sodom vdr[14087]: cVideoRepacker: skipped 412 bytes while syncing on next picture Aug 10 21:31:46 sodom vdr[14087]: cVideoRepacker: skipped 4 bytes to sync on next picture Aug 10 21:32:04 sodom vdr[14087]: cVideoRepacker: found system start code: stream seems to be scrambled or not demultiplexed Aug 10 21:32:04 sodom vdr[14087]: cVideoRepacker: skipped 271 bytes while syncing on next picture Aug 10 21:32:04 sodom vdr[14087]: cVideoRepacker: skipped 1767 bytes while syncing on next picture Aug 10 21:32:04 sodom vdr[14087]: cVideoRepacker: skipped 649 bytes while syncing on next picture Aug 10 21:32:04 sodom vdr[14087]: cVideoRepacker: skipped 4 bytes to sync on next picture Aug 10 21:32:26 sodom vdr[14087]: ERROR: 1 ring buffer overflow (65 bytes dropped) Aug 10 21:32:32 sodom vdr[14087]: ERROR: 6978 ring buffer overflows (1311864 bytes dropped) Aug 10 21:32:35 sodom vdr[14087]: ERROR: video data stream broken Aug 10 21:32:35 sodom vdr[14087]: initiating emergency exit Aug 10 21:32:35 sodom vdr[14087]: emergency exit requested - shutting down Aug 10 21:32:35 sodom vdr[14087]: stopping plugin: vompserver Aug 10 21:32:35 sodom vdr[14087]: timer 1 (27 2057-2205 'Extreme Engineering: Discovery Channel') stop Aug 10 21:32:35 sodom vdr[14087]: saved setup to /video/video/setup.conf Aug 10 21:32:35 sodom vdr[14087]: deleting plugin: vompserver Aug 10 21:32:35 sodom vdr[14087]: exiting Aug 10 21:32:35 sodom vdr[14087]: emergency exit!
Note that it runs for half an hour before exiting, though there is a hiccup after 5 minutes. Last night it ran for 20 minutes before stopping on a similar recording.
I don't have a good DTV signal and so the data stream will have errors in it (though the picture is still watchable). Could this be the problem?
HTH
Dave
Hi,
Dave P wrote:
In case it helps I'm getting the same problem with 1.3.28. Log extract:
Aug 10 21:32:04 sodom vdr[14087]: cVideoRepacker: skipped 4 bytes to sync on next picture Aug 10 21:32:26 sodom vdr[14087]: ERROR: 1 ring buffer overflow (65 bytes dropped) Aug 10 21:32:32 sodom vdr[14087]: ERROR: 6978 ring buffer overflows (1311864 bytes dropped) Aug 10 21:32:35 sodom vdr[14087]: ERROR: video data stream broken
Note that it runs for half an hour before exiting, though there is a hiccup after 5 minutes. Last night it ran for 20 minutes before stopping on a similar recording.
Well, the question is, what happens between 21:32:04 and 21:32:35?
I don't have a good DTV signal and so the data stream will have errors in it (though the picture is still watchable). Could this be the problem?
At the moment it looks like that.
Would you please add the following debug lines (marked with <=====) to remux.c and send the logfile ('s tail) when it happens again?
static int Put(.....) { esyslog(">>>>> cRepacker::Put(%d)", Count); // <============
int n = ResultBuffer->Put(Data, Count); if (n != Count) esyslog(.....);
esyslog("<<<<< cRepacker::Put"); // <============
return n; }
. . .
void cVideoRepacker::Repack(.....) { esyslog(">>>>> cVideoRepacker::Repack(%d)", Count); // <============
// synchronisation is detected some bytes after frame start. const int SkippedBytesLimit = 4;
// reset local scanner localStart = -1;
. . .
// report that syncing dropped some bytes if (skippedBytes > SkippedBytesLimit) { esyslog(.....); skippedBytes = SkippedBytesLimit; }
esyslog("<<<<< cVideoRepacker::Repack()"); // <============ }
Bye.
I demand that Dave P may or may not have written...
On Tuesday 09 Aug 2005 22:58, Reinhard Nissl wrote:
Dominique Simon wrote:
VDR developer version 1.3.28 is now available at
As in 1.3.26 when the cVideoRepacker was introduced, it's making the same problem again. e.g. when i watch a recording and a timer starts, VDR crashes like this:
In case it helps I'm getting the same problem with 1.3.28. Log extract:
[snip log]
I don't have a good DTV signal and so the data stream will have errors in it (though the picture is still watchable). Could this be the problem?
Could be. I have a good signal here and I'm not seeing any problems. (Relevant patches: the dvbplayer and replay patches are applied, and I've recently dropped the dvbspu patch.)
Am 10.08.2005 um 21:43 schrieb Reinhard Nissl:
So if you don't mind, just keep it running until it crashes and then send the logfile.
I now had a VDSB on timerstart with cVideorepacker turned off! I recently swapped my Budgetcard (2nd card) with a second FF Card for testing purposes. The Budget card has never crashed with VDSB. I'll test cVideorepacker "on" now with my Budgetcard as secondary card. The reason i swapped the Budget with the FF Card was: i sometimes had artefacts with recordings made on the budgetcard.
Ciao, Dominique
Hi,
Darren Salt wrote:
I don't have a good DTV signal and so the data stream will have errors in it (though the picture is still watchable). Could this be the problem?
Could be. I have a good signal here and I'm not seeing any problems. (Relevant patches: the dvbplayer and replay patches are applied, and I've recently dropped the dvbspu patch.)
It definitely has to do with signal quality. The patch below triggers this issue on my maschine. I'll try to find a solution soon.
--- ../vdr-1.3.28-orig/remux.c 2005-07-30 12:23:00.000000000 +0200 +++ remux.c 2005-08-15 00:09:13.000000000 +0200 @@ -1063,6 +1063,8 @@ void cTS2PES::write_ipack(const uint8_t
void cTS2PES::instant_repack(const uint8_t *Buf, int Count) { + *((uint8_t *)Buf) = 0x00; + int c = 0;
while (c < Count && (mpeg == 0 || (mpeg == 1 && found < 7) || ...
Bye.
Am 15.08.2005 um 00:16 schrieb Reinhard Nissl:
It definitely has to do with signal quality. The patch below triggers this issue on my maschine. I'll try to find a solution soon.
VDR without cVideorepacker seems to me more tollerant to such distortions in signal quality. For unknown reasons my budget card (satelco standard pci, secondary card) sometimes produces artefacts, even when the signalquality is OK (going to test a skystar2 soon, ordered at www.reichelt.de).
Is anyone else experiencing such a behaviour of a secondary budget card? A FF Card on the same LNB-cable won't produce block-artefacts. The behaviour started some time ago, it worked flawlessly at first, but at some update (Driver, VDR?) it began, can't remember when. The behaviour isn't reproducable, it works fine for days, then it's there again.
Ciao, Dominique
Dominique Simon wrote:
Is anyone else experiencing such a behaviour of a secondary budget card? A FF Card on the same LNB-cable won't produce block-artefacts.
Yes, I can confirm it. My secondary card is Technotrend Skystar2. At moment SS2 card removed from PC.
SK
Am Montag 15 August 2005 14:57 schrieb Dominique Simon:
Is anyone else experiencing such a behaviour of a secondary budget card? A FF Card on the same LNB-cable won't produce block-artefacts. The behaviour started some time ago, it worked flawlessly at first, but at some update (Driver, VDR?) it began, can't remember when. The behaviour isn't reproducable, it works fine for days, then it's there again.
Since perhaps 1 month I have disturbances in most of my recordings. Watching live tv via the budget cards is ok. I have no clue why this happens.
S.
Am 15.08.2005 um 17:19 schrieb Suur Karu:
Yes, I can confirm it. My secondary card is Technotrend Skystar2. At moment SS2 card removed from PC.
Since when do you experience this? Had you changed DVB Driver / VDR Version when it started?
Ciao, Dominique
Dominique Simon wrote:
Since when do you experience this? Had you changed DVB Driver / VDR Version when it started?
I don't remember now. It might be vdr-1.3.25 (may-june this year) and drivers from cvs 2.4 kernel build. I added SS2 card for saving 4:2:2 feed (eurovision song contest) and this worked. Later I noticed distirbutions on records of 'normal' channels (Pro Sieben, for example) and after that removed SS2.
SK
Am Montag 15 August 2005 18:09 schrieb Dominique Simon:
Am 15.08.2005 um 17:33 schrieb Sebastian Frei:
Since perhaps 1 month I have disturbances in most of my recordings. Watching
Have you changed DVB Driver / VDR Version before?
Ciao, Dominique
Sure, usually I'm using the most recent kernel and vdr version.
S.