outleradam Wrote:the ring buffer gets processed by local mythtv jobs?
interesting.. does the ring buffer get show squeezed? I'm transferring from windows BTV and I don't know the proper term.. show squeeze = when you record a show in mpg format, then compress it to avi or wmp.
This program, when finished, will only output "SxxExx" So, if the rename fails, it will still be moved and renamed showname/epname. This program is not designed to work independently. It will either get the information, or fail quietly. I think that's the proper way of doing it.
Either way, I don't want recordings on the HD. They need to go on my NAS, which will be mounted to the optimized folder after show squeeze so that I can maintain a rotating library.
MythTV does not differentiate between file recorded in live TV mode and scheduled recordings in terms of what it writes onto the HD. If you were to run mythrename.pl on your storage directory, I believe it would attempt to rename every file, including those still present from the ringbuffer. While this works, IMHO, it injects an unnecessary risk of DB corruption. I may have misunderstood what you said you intended to do, but I understood you to be saying that you wanted to use your script to generate new filename which you would then pass to mythrename.pl, running mythrename.pl as the primary operation. Even if it's possible to run mythrename.pl as a user job and specify the output of another bash script as one of the arguments, I think it's cleaner to use a wrapper script that includes the desired behavior of mythrename.pl.
You also mentioned show squeezing, which isn't a term I'm familiar with, but it looks like you're referring to transcoding of recordings. MythTV does not do this by default. MythTV does have transcoding profiles for most tuner types (HD-PVR excluded) and this is the operation that can be used to compress recordings and excise commercials.
In my case, I record, watch, then delete most shows I follow. On occasion, certain shows and movies I want to keep around on a more long-term basis. So for most shows, I don't care what MythTV calls them and I don't need/want to watch them in XBMC. So my script is really designed as a lossless archival script for HD-PVR recordings. Even though we have different applications, I still think you could benefit from the string matching subroutines.

![[Image: newsig-1.png]](http://i236.photobucket.com/albums/ff111/DrivingTibNaked/newsig-1.png)
Search
Help