LinHES Forums http://forum.linhes.org/ |
|
Dummy .nuv files -R5B7 http://forum.linhes.org/viewtopic.php?f=6&t=9511 |
Page 1 of 1 |
Author: | elgordo123 [ Thu Apr 06, 2006 11:16 am ] |
Post subject: | Dummy .nuv files -R5B7 |
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? |
Author: | tjc [ Thu Apr 06, 2006 8:05 pm ] |
Post subject: | |
Yeah... If there's not a bug report for this over in the MythTV Trac system there probably should be. |
Author: | tjc [ Thu Apr 06, 2006 8:44 pm ] |
Post subject: | |
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. ![]() |
Author: | elgordo123 [ Fri Apr 07, 2006 12:17 pm ] |
Post subject: | |
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. |
Author: | tjc [ Fri Apr 07, 2006 6:49 pm ] |
Post subject: | |
Thanks for filing the ticket and testing the script! |
Author: | mjl [ Mon Apr 10, 2006 12:43 pm ] |
Post subject: | |
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 |
Author: | elgordo123 [ Sun Apr 16, 2006 8:30 pm ] |
Post subject: | |
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) ? |
Author: | tjc [ Sun Apr 16, 2006 8:33 pm ] |
Post subject: | |
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... |
Author: | mjl [ Mon Apr 17, 2006 6:34 am ] |
Post subject: | |
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 |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |