View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Dummy .nuv files -R5B7
PostPosted: Thu Apr 06, 2006 11:16 am 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
I know that the new version of mythtv records everything with a .mpg extension now, but I am getting ALOT of .nuv files. These are just text files that say "Creating dummy file for Lost Dave" (etc). I have my live tv to only keep for 1 day. These aren't being cleaned up during the live-tv cleanup. The mpg's are being deleted. Is anyone else seeing this?

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 8:05 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Yeah... If there's not a bug report for this over in the MythTV Trac system there probably should be.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 8:44 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Code:
root@black2:~# ls -l cleanup_orphans.sh
-rwxr-xr-x  1 root root 244 Apr  6 22:37 cleanup_orphans.sh
root@black2:~# cat cleanup_orphans.sh
#!/bin/bash
cd /myth/tv
for nuv in $(find . -name '*.nuv' -size 1 -print) ; do
    mpg=$(echo $nuv | sed '/\([0-9]*_[0-9]*\).*/s//\1.mpg/')
    if [ ! -f "$mpg" ] ; then
        echo "No $mpg file found, $nuv is an orphan."
        rm -f "$nuv"
    fi
done

Please double check me on this. It's potentially destructive, so make sure you either comment out the "rm" line, or put an "echo" at the front of it, the first time you try it, and verify that it is going to do the right thing. Remember I only had one chance to test it myself. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 12:17 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
That script worked great. Thanks. I didn't see a ticket on mythtrac so I opened a new one. I'm sure someone has reported it and probably has been fixed by now.

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 6:49 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Thanks for filing the ticket and testing the script!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 10, 2006 12:43 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

The "Creating dummy file for L..." are probably left over from earlier days with mythlink.sh. It was great for keeping the system clean when the recordings were .nuv files. Now that the B series is rolling, that will need to be tweaked to continue helping with the sanitation of the .mpg.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 8:30 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
I got an email back from the bug report. "Worksforme" was the response and it was closed. So it must be a knoppmyth thing or is cleaned up in the newer versions?

Copy of response from mytht bug tracker:
Changes (by danielk):

* resolution: => worksforme
* status: new => closed

Comment:

Where do these dummy files come from?
I don't see these, are you transcoding?
Are you sure these aren't LiveTV recordings (which are deleted for you
when the volume fills up or they get old) ?

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 8:33 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
As mjl points out these may be an artifact of the mythlink.sh script. Remind me to go have a look at it later this week...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 6:34 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
HI,

Here seems to be the area where when we had nuv files, it would confirm they were good and if missing, generated a dummy so one could delete them as normal.

These are my notes so far in a partial script form.
Mike

#!/bin/sh
cat /etc/K*

echo "if greater > Axx then files are stored as mpg. pretty script will need changes"
## /usr/local/bin/mythlink.sh

echo "Comment out these lines for a temp fix and until this topic is revisited"

# print "Creating missing file $mythpath/$ofn\n";
# open ($dfile,">$mythpath/$ofn") || die("Could not open txt file. $!");
# print $dfile "Creating dummy file for $title $subtitle \l";
# close ($dfile);

#ls -Li /myth/pretty/*.mpg | sort > /tmp/mpg-files
#ls -Li /myth/tv/*.nuv | sort > /tmp/nuv-files
#join -v 2 /tmp/mpg-files /tmp/nuv-files | cut -d " " -f 2 > /tmp/dead-files
#cat /tmp/dead-files | sed -e "s/^/rm -f /" > /tmp/rm-dead-files


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu