Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

damaged/corrupt nuv file???

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


mythtvfan at hotmail

Feb 26, 2003, 1:04 AM

Post #1 of 15 (2161 views)
Permalink
damaged/corrupt nuv file???

Infrequently damaged/corrupted nuv files

I have been using mythtv with great success for several months now and
it has worked almost flawlessly except for one small problem that comes
and goes at random. Every now and then one of the recordings seems to
be damaged, or at least somehow encoded wrong.

The entire time is recorded but when I attempt to play back the material
it jerks through the file with no audio. Sometimes the audio comes back
for part of the recording. When I enable the "jitter control" feature,
it plays better, but the audio is out of sync and it still jerks/pauses
every few seconds. What puzzles me is the infrequently of this event,
it was a problem several months ago and now has reappeared today 2/25/03
without any pattern to time/day/channel/show that would explain it. The
machine is a 2100XP with 768ram so speed and the hard drive should not
be an issue.

When I first started using MythTv I used the nuppel codec on an old
Athlon 700mhz, but now I use mpeg4 with cvs current as of 2/24/03
(2000kbs) hardware and codec would not seem to be the problme. It seems
to me that the audio track may somehow be the culprit, but since all the
other recording are fine I don't know how to investigate this further.
Neither the backend nor the frontend crash when recording or playing
back the clips so running it in the debugger would not seem to be of any
help.

If anyone has an ideas please let me know. I am more than happy to
provide information or implement some simple debugging, but I don't know
where to start looking for this problem. I seem to remember a while ago
that their was a problem with the index being generated under some
circumstances, but I was sure that was fixed in cvs long ago.

Thank you Isaac and everyone else for making Mythtv the most amazing
application I have ever scene! Finding open source applications with
great code, fast development, high developer interaction, and excellent
documentation (Used the first release with perfect sucess!) are hard to
find.

Thanks for your help,

Andrew P.


bjm at lvcm

Feb 26, 2003, 2:08 AM

Post #2 of 15 (2103 views)
Permalink
Re: damaged/corrupt nuv file??? [In reply to]

Andrew Peabody wrote:
> Infrequently damaged/corrupted nuv files
...
> If anyone has an ideas please let me know. I am more than happy to
> provide information or implement some simple debugging, but I don't know
> where to start looking for this problem.

Two quick questions. If you turn on Setup->General "Display
live preview of recordings" then go to Watch Recordings,
does the preview play at normal speed? It's normal if these
are jittery but are there distinct pauses or skips in the
previews?

Also, had you experimented this week with the "Automatically
Skip Commercials"? If so, verify that 'AutoCommercialSkip'
is set to '0' in the settings table of your database then
see if the behavior changes.

-- bjm


mythtvfan at hotmail

Feb 26, 2003, 10:03 AM

Post #3 of 15 (2106 views)
Permalink
RE: damaged/corrupt nuv file??? [In reply to]

-----Original Message-----
>From: mythtv-users-bounces [at] snowman
[mailto:mythtv-users->bounces [at] snowman] On Behalf Of Bruce Markey
>Sent: Wednesday, February 26, 2003 1:09 AM
>To: Discussion about mythtv
>Subject: Re: [mythtv-users] damaged/corrupt nuv file???
>
>Andrew Peabody wrote:
>> Infrequently damaged/corrupted nuv files
>...
>> If anyone has an ideas please let me know. I am more than happy to
>> provide information or implement some simple debugging, but I don't
know
>> where to start looking for this problem.
>
>Two quick questions. If you turn on Setup->General "Display
>live preview of recordings" then go to Watch Recordings,
>does the preview play at normal speed? It's normal if these
>are jittery but are there distinct pauses or skips in the
>previews?
>
>Also, had you experimented this week with the "Automatically
>Skip Commercials"? If so, verify that 'AutoCommercialSkip'
>is set to '0' in the settings table of your database then
>see if the behavior changes.
>
>-- bjm

Thanks for your response.

The previews always work perfectly, that is why I wonder if it is
related to the audio track. Is there someway to disable the sound for
the full screen playback to test this? I can comment out code and
recompile it if I know where to look.

I don't have an AutoCommercialSkip setting in my database, I guess my
version must have been from before it? But the recording it made right
after the damaged one was fine, the settings would not have changed
between the two.

I will try to build the newest cvs release tonight, but like I said this
problem is not repeatable which makes it difficult to know if it is
fixed.

Thanks,

Andrew


bjm at lvcm

Feb 27, 2003, 12:00 PM

Post #4 of 15 (2117 views)
Permalink
Re: damaged/corrupt nuv file??? [In reply to]

Andrew Peabody wrote:
...
> The previews always work perfectly, that is why I wonder if it is
> related to the audio track. Is there someway to disable the sound for
> the full screen playback to test this? I can comment out code and
> recompile it if I know where to look.

In NuppelVideoPlayer.cpp near the bottom of OutputVideoLoop
there is a section that adjusts synchronization to audio.
If you print out "avsync_delay", it should normally be
within + or - 20000 usec. It may be useful to see what these
values look like when you see this problem.

-- bjm
Attachments: avsync.diff (0.66 KB)


mythtvfan at hotmail

Feb 28, 2003, 12:29 AM

Post #5 of 15 (2095 views)
Permalink
Re: damaged/corrupt nuv file??? [In reply to]

From: Bruce Markey <bjm [at] lvcm>
>In NuppelVideoPlayer.cpp near the bottom of OutputVideoLoop
>there is a section that adjusts synchronization to audio.
>If you print out "avsync_delay", it should normally be
>within + or - 20000 usec. It may be useful to see what these
>values look like when you see this problem.
>
>-- bjm

All right I recompiled the code with the changes.

During a normal file I see values from -16000 to 16000

But during the strange file I see values from -40498000 to 84857000

Most values are the giant negative ones, the positive generally only occur
after a trigger delay.

I could send screen fulls of these values, but I doubt they would be useful.

Thanks for helping me,

Andrew P.


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


johnmythtv at crombe

Feb 28, 2003, 3:29 AM

Post #6 of 15 (2110 views)
Permalink
Re: Call to undefined function: mysql_connect() [In reply to]

Hi,

Trying to get MythWeb up and running. Configed PHP as follows:

./configure --with-mysql --with-apxs

then make / su / make install, and all went fine.

On my Mandrake 9, my home directory for Apache ends up being /var/www/html
so I copied the mythweb stuff (-r) into a directory below that. When I open
a browser and go there, I get:

Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/htdocs/myMythWebDirectory/db_open.php on line 20

That line is doing: $linkToDatabase = mysql_connect($db_host, $db_username,
$db_password) ....

Googling around one place said I needed mysql.so. I have it on my system
but look where it is:

/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysq
l.so

Is that right? Anyway, I think I'm close but need to get the connection
between mysql and PHP to work.

Any help would be much appreciated!

Thanks,
JC

BTW, my PHP is 4.3.1 and Apache reports on my default home page the
following:
Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6mdk) mod_ssl/2.8.10
OpenSSL/0.9.6g PHP/4.2.3


msherman at dsbox

Feb 28, 2003, 7:59 AM

Post #7 of 15 (2115 views)
Permalink
Re: Call to undefined function: mysql_connect() [In reply to]

> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/html/htdocs/myMythWebDirectory/db_open.php on line 20
>

This means you need the mysql php module installed.

--
Michael J. Sherman | Software Developer
Digital Sandbox, Inc. | http://www.dsbox.com/


bjm at lvcm

Feb 28, 2003, 8:41 PM

Post #8 of 15 (2100 views)
Permalink
Re: damaged/corrupt nuv file??? [In reply to]

Andrew Peabody wrote:
> From: Bruce Markey <bjm [at] lvcm>
>
>> In NuppelVideoPlayer.cpp near the bottom of OutputVideoLoop
>> there is a section that adjusts synchronization to audio.
>> If you print out "avsync_delay", it should normally be
>> within + or - 20000 usec. It may be useful to see what these
>> values look like when you see this problem.
>>
>> -- bjm
>
>
> All right I recompiled the code with the changes.
>
> During a normal file I see values from -16000 to 16000
>
> But during the strange file I see values from -40498000 to 84857000

Well that's -40 sec to +85 sec. so unless you stared at this
for a very long time, that's more than drift ;-). So either
the timecodes are damaged in the recording or some variable
is being damaged during playback. Here is a different debug
line to check if it is in the recording or playback.

The first column should increase by either 33 or 34 over the
previous frame. After the first couple seconds, the second
column should be + or - 20 of the first column. If either
column changes by thousands or more from frame to frame,
please do send me 100 to 200 lines starting a few lines before
the event.

If you see bogus numbers in the first column, please rerun the
same section to see if it reports the exact same sequence of
numbers in the first column each time.

-- bjm
Attachments: timecodes.diff (0.68 KB)


johnmythtv at crombe

Feb 28, 2003, 9:13 PM

Post #9 of 15 (2109 views)
Permalink
Re: Call to undefined function: mysql_connect() [In reply to]

Ok, well, I originally installed mysql from the Mandrake 9 rpm and it
reports that it's version: "Server version 3.23.52", and has been up and
running great for 13 days now. I've got a couple dozen shows in the Myth db
and hate to "break" it if I don't have to. I'm just thinking that the
problem is that it didn't install the "php module" of mysql when it
installed.

I downloaded the latest stable release 3.23.55 and am hesitant to install it
as I'm afraid it will wipe out my database and all settings. Is this what I
need to do or what should I do to get that "mysql php module installed" as
you recommend??

Let me know what I should do next please.

TIA!
JC


----- Original Message -----
From: "Michael J. Sherman" <msherman [at] dsbox>
To: "Discussion about mythtv" <mythtv-users [at] snowman>
Sent: Friday, February 28, 2003 9:59 AM
Subject: Re: [mythtv-users] Call to undefined function: mysql_connect()


>
> > Fatal error: Call to undefined function: mysql_connect() in
> > /var/www/html/htdocs/myMythWebDirectory/db_open.php on line 20
> >
>
> This means you need the mysql php module installed.
>
> --
> Michael J. Sherman | Software Developer
> Digital Sandbox, Inc. | http://www.dsbox.com/
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] snowman
> http://www.snowman.net/mailman/listinfo/mythtv-users
>
>


bjm at lvcm

Feb 28, 2003, 11:23 PM

Post #10 of 15 (2097 views)
Permalink
Re: Call to undefined function: mysql_connect() [In reply to]

JC wrote:
> ...I've got a couple dozen shows in the Myth db
> and hate to "break"...
> ...I'm afraid it will wipe out my database and all settings...

> Let me know what I should do next please.

mysqldump -u mythtv --password=mythtv mythconverg > mythtv.db


-- bjm


bjm at lvcm

Feb 28, 2003, 11:39 PM

Post #11 of 15 (2115 views)
Permalink
Re: Call to undefined function: mysql_connect() [In reply to]

JC wrote:
> Ok, well, I originally installed mysql from the Mandrake 9 rpm and it
> reports that it's version: "Server version 3.23.52", and has been up and
> running great for 13 days now. I've got a couple dozen shows in the Myth db
> and hate to "break" it if I don't have to. I'm just thinking that the
> problem is that it didn't install the "php module" of mysql when it
> installed.
>
> I downloaded the latest stable release 3.23.55 and am hesitant to install it
> as I'm afraid it will wipe out my database and all settings. Is this what I
> need to do or what should I do to get that "mysql php module installed" as
> you recommend??
>
> Let me know what I should do next please.

Once you have a good backup of all your data with:

mysqldump -u mythtv --password=mythtv mythconverg > mythtv.db

you would install an extra package that includes the software
that allows PHP to act as a client requesting data from your
mysql database. This should not replace any of the database
server or stored data. After you verify that your backup file
looks okay, scope out:

http://www.linux-mandrake.com/en/contribs71/php-mysql-3.0.14-2mdk.i586.html

I don't use Mandrake myself so I can't verify that this is
the right version for you. However, this is the Apache add
on that allows PHP to make connections to MySQL.

Hope this helps,

-- bjm


johnmythtv at crombe

Mar 1, 2003, 10:59 AM

Post #12 of 15 (2114 views)
Permalink
Re: Call to undefined function: mysql_connect() [In reply to]

Thanks for the suggestion. Love that mysqldump backup feature.

Well, I did a "urpmi php-mysql" (Mandrake's rpm) and it ran out and grabbed
the latest and installed it:

"installing /var/cache/urpmi/rpms/php-mysql-4.2.3-1mdk.i586.rpm"

and all seemed to go fine. Re-ran my web page and still get:

"Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/htdocs/myMythWebDirectory/db_open.php on line 20"

So, tried reconfiguring PHP with "./configure --with-mysql --with-apxs" and
then make / make install and still the same message.

I'm sure I'm close here! Any other suggestions?

TIA!
JC


----- Original Message -----
From: "Bruce Markey" <bjm [at] lvcm>
To: "Discussion about mythtv" <mythtv-users [at] snowman>
Sent: Saturday, March 01, 2003 1:39 AM
Subject: Re: [mythtv-users] Call to undefined function: mysql_connect()


> Once you have a good backup of all your data with:
>
> mysqldump -u mythtv --password=mythtv mythconverg > mythtv.db
>
> you would install an extra package that includes the software
> that allows PHP to act as a client requesting data from your
> mysql database. This should not replace any of the database
> server or stored data. After you verify that your backup file
> looks okay, scope out:
>
>
http://www.linux-mandrake.com/en/contribs71/php-mysql-3.0.14-2mdk.i586.html
>
> I don't use Mandrake myself so I can't verify that this is
> the right version for you. However, this is the Apache add
> on that allows PHP to make connections to MySQL.
>
> Hope this helps,
>
> -- bjm
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] snowman
> http://www.snowman.net/mailman/listinfo/mythtv-users
>
>


mythtvfan at hotmail

Mar 3, 2003, 11:02 PM

Post #13 of 15 (2117 views)
Permalink
Re: damaged/corrupt nuv file??? [In reply to]

>From: Bruce Markey <bjm [at] lvcm>
>Well that's -40 sec to +85 sec. so unless you stared at this
>for a very long time, that's more than drift ;-). So either
>the timecodes are damaged in the recording or some variable
>is being damaged during playback. Here is a different debug
>line to check if it is in the recording or playback.
>
>The first column should increase by either 33 or 34 over the
>previous frame. After the first couple seconds, the second
>column should be + or - 20 of the first column. If either
>column changes by thousands or more from frame to frame,
>please do send me 100 to 200 lines starting a few lines before
>the event.
>
>If you see bogus numbers in the first column, please rerun the
>same section to see if it reports the exact same sequence of
>numbers in the first column each time.
>
>-- bjm

Sorry it took me a few days to get around to this.

Ok I ran it on the bad file with both debug outputs added, I can change this
and rerun it if you like, I didn't know if the extra information would be
helpful.

It looks like the two runs had diffrent values, also, for the first few
second the values in the second column look reasonable, then they go off the
scale. When I ran a normal file they were close in value like you said.
Does this mean the file is encoded wrong?

Thanks,

Andrew

Try 1 (shorter)

TimeCodes104 -38073
AveSync Delay38177000
Delaying to next trigger: 12753168
TimeCodes139 -60322
AveSync Delay60461000
Delaying to next trigger: 20184088
TimeCodes171 -43389
AveSync Delay43560000
Delaying to next trigger: 14550396
Changing from WatchingPreRecorded to None
TimeCodes205 -26262
AveSync Delay26467000
Delaying to next trigger: 8852710
TimeCodes238 -26057
AveSync Delay26295000

Run 2

TimeCodes104 -52521
AveSync Delay52625000
Delaying to next trigger: 17567198
TimeCodes139 -60098
AveSync Delay60237000
Delaying to next trigger: 20109411
TimeCodes171 -43267
AveSync Delay43438000
Delaying to next trigger: 14509723
TimeCodes205 -26143
AveSync Delay26348000
Delaying to next trigger: 8813071
TimeCodes238 -9174
AveSync Delay9412000
Delaying to next trigger: 3167695
TimeCodes271 4524
AveSync Delay-4253000
TimeCodes305 4527
AveSync Delay-4222000
TimeCodes338 4530
AveSync Delay-4192000
TimeCodes371 4533
AveSync Delay-4162000
TimeCodes405 4536
AveSync Delay-4131000
TimeCodes438 4540
AveSync Delay-4102000
TimeCodes472 4543
AveSync Delay-4071000
TimeCodes505 4546
AveSync Delay-4041000
TimeCodes538 -345798806
AveSync Delay-2093006976
TimeCodes572 -345798796
AveSync Delay-2092982976
TimeCodes605 -345798787
AveSync Delay-2092958976
TimeCodes638 -345798784
AveSync Delay-2092928976
TimeCodes672 -345798780
AveSync Delay-2092898976
TimeCodes705 -345798777
AveSync Delay-2092868976
TimeCodes739 -345798774
AveSync Delay-2092837976
TimeCodes772 -345798770
AveSync Delay-2092808976
TimeCodes805 -345798767
AveSync Delay-2092778976
TimeCodes839 -345798764
AveSync Delay-2092747976
TimeCodes872 -345798760
AveSync Delay-2092718976
TimeCodes905 -345798756
AveSync Delay-2092689976
TimeCodes939 -345798753
AveSync Delay-2092658976
TimeCodes972 -345798749
AveSync Delay-2092629976
TimeCodes1005 -345798746
AveSync Delay-2092599976
TimeCodes1039 -345798743
AveSync Delay-2092568976
TimeCodes1072 -345798740
AveSync Delay-2092538976
TimeCodes1106 -345798736
AveSync Delay-2092508976
TimeCodes1139 -345798733
AveSync Delay-2092478976
TimeCodes1172 -345798729
AveSync Delay-2092449976
TimeCodes1206 -1561248328
AveSync Delay-2118561744
TimeCodes1239 -1561248325
AveSync Delay-2118531744
TimeCodes1272 -1561248321
AveSync Delay-2118502744
TimeCodes1306 -1561248318
AveSync Delay-2118471744
TimeCodes1339 -1561248315
AveSync Delay-2118441744
TimeCodes1373 -1561248312
AveSync Delay-2118410744
TimeCodes1406 -1561248309
AveSync Delay-2118380744
TimeCodes1439 -1561248306
AveSync Delay-2118350744
TimeCodes1473 -1561248302
AveSync Delay-2118320744
TimeCodes1506 -1561248299
AveSync Delay-2118290744
TimeCodes1539 -1561248296
AveSync Delay-2118260744
TimeCodes1573 -1561248293
AveSync Delay-2118229744
TimeCodes1606 -1561248290
AveSync Delay-2118199744
TimeCodes1640 -1561248286
AveSync Delay-2118169744
TimeCodes1673 -1561248283
AveSync Delay-2118139744
TimeCodes1706 -1497730961
AveSync Delay-1210919304
TimeCodes1740 -1497730958
AveSync Delay-1210888304
TimeCodes1773 -1497730955
AveSync Delay-1210858304
TimeCodes1806 -1497730952
AveSync Delay-1210828304
TimeCodes1840 -1497730949
AveSync Delay-1210797304
TimeCodes1873 -1497730946
AveSync Delay-1210767304
TimeCodes1907 -1497730942
AveSync Delay-1210737304
TimeCodes1940 -1497730939
AveSync Delay-1210707304
TimeCodes1973 -1497730936
AveSync Delay-1210677304
TimeCodes2007 -1497730933
AveSync Delay-1210646304
TimeCodes2040 -1497730930
AveSync Delay-1210616304
TimeCodes2073 -1497730926
AveSync Delay-1210587304
TimeCodes2107 -1497730923
AveSync Delay-1210556304
TimeCodes2140 -1497730920
AveSync Delay-1210526304
TimeCodes2173 -1497730917
AveSync Delay-1210496304
TimeCodes2207 -1497730914
AveSync Delay-1210465304
TimeCodes2240 -1497730911
AveSync Delay-1210435304
TimeCodes2274 -1497730907
AveSync Delay-1210405304
TimeCodes2307 -1497730904
AveSync Delay-1210375304
TimeCodes2340 -1497730901
AveSync Delay-1210345304
TimeCodes2374 -2109080668
AveSync Delay254099664
Delaying to next trigger: 84729418
TimeCodes2407 -2109080598
AveSync Delay254062664
Delaying to next trigger: 84718021
TimeCodes2440 -1321036923
AveSync Delay-1810564168
TimeCodes2474 -1321036920
AveSync Delay-1810533168
TimeCodes2507 -1321036917
AveSync Delay-1810503168
TimeCodes2541 -1321036914
AveSync Delay-1810472168
TimeCodes2574 -1321036911
AveSync Delay-1810442168
TimeCodes2607 -1321036908
AveSync Delay-1810412168
TimeCodes2641 -1321036904
AveSync Delay-1810382168
TimeCodes2674 -1321036901
AveSync Delay-1810352168
TimeCodes2707 -1321036898
AveSync Delay-1810322168
TimeCodes2741 -1321036895
AveSync Delay-1810291168
TimeCodes2774 -1321036892
AveSync Delay-1810261168
TimeCodes2808 -1321036888
AveSync Delay-1810231168
TimeCodes2841 -1321036885
AveSync Delay-1810201168
TimeCodes2874 -1321036882
AveSync Delay-1810171168
TimeCodes2908 -1321036879
AveSync Delay-1810140168
TimeCodes2941 -1321036876
AveSync Delay-1810110168
TimeCodes2974 -1321036873
AveSync Delay-1810080168
TimeCodes3008 -1321036869
AveSync Delay-1810050168
TimeCodes3041 -1321036866
AveSync Delay-1810020168
TimeCodes3074 -1321036863
AveSync Delay-1809990168
TimeCodes3108 -1774156249
AveSync Delay337863752
Delaying to next trigger: 112650982



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


bjm at lvcm

Mar 4, 2003, 12:53 AM

Post #14 of 15 (2085 views)
Permalink
Re: damaged/corrupt nuv file??? [In reply to]

Andrew Peabody wrote:
...
> It looks like the two runs had diffrent values, also, for the first few
> second the values in the second column look reasonable, then they go off
> the scale. When I ran a normal file they were close in value like you
> said. Does this mean the file is encoded wrong?

I suspected it might be the timecodes (first column) but
actually they're fine. The file should be playable but
it looks like something is being miscalculated while it
is trying to synch up during playback. I'll see if I can
track it down. Thanks for the data.

-- bjm


mythtvfan at hotmail

Mar 4, 2003, 1:08 AM

Post #15 of 15 (2091 views)
Permalink
RE: damaged/corrupt nuv file??? [In reply to]

>-----Original Message-----
>From: mythtv-users-bounces [at] snowman [mailto:mythtv-users-
>
>I suspected it might be the timecodes (first column) but
>actually they're fine. The file should be playable but
>it looks like something is being miscalculated while it
>is trying to synch up during playback. I'll see if I can
>track it down. Thanks for the data.
>
>-- bjm

Thanks,

If there is anything I can do to help please let me know. I would offer
to send you the file but it is 700mb which is probably too large for the
effort; I am not sure it is possible to spilt a nuv file.

Thanks,

Andrew

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.