2010-03-22, 19:53
Lepy Wrote:That is almost what I'm looking for. Calling ffmpeg after the scan would work except 1.) wouldn't I have to convert every show in my library? and 2.) none of the files have the commercials cut out which ffmpeg can't do by itself.
Some episodes have a cut list I edited in the mythfrontend while others only have the mythcommflag data, but all links in the Episode folder made by the librarian also have a correponding .txt file listing cut points.
I like to use nuvexport to save space, and while it can output a filename using many database parameters (Title, Subtitle, Description, etc, by way of mythrename.pl...I think), it has no season or episode tag making it xbmc/scraper unfriendly. It even has an original air date tag...but many of the recordings lack this information unfortunately. Its ok for a random show or movie, but I don't want to manually season and episode tag 148 different recordings!
I was hoping that your program would not only change the file name of a recording but also change the title in the database to include the SXXEXX...or something along those lines, so to be able to interface with nuvexport.
nuvexport loads MythTV recording info from the database and allows you to easily pick multiple recording to be exported to a different format while honoring myths commercial cut list.
Trying to manually run nuvexport gives a database error:
Code:xbmc@xbmc:/video/media/Episodes$ nuvexport-xvid --nice 19 --input=Good\ Eats\ S01E08\ \(Gravy\ Confidential\).mpg
Loading MythTV recording info.
98%
Input filename does not match the MythTV recording name format
and no matching file could be found in the MythTV database.
Please reference only files in your active MythTV video directory.
Cleaning up temp files.
xbmc@xbmc:/video/media/Episodes$
This link explains what is going on in the background: https://svn.forevermore.net/nuvexport/wiki/debug
Getting a little off topic, I know, but I'm not too sure where to go from here. mythicalLibrarian is doing exactly what I want it to do, I just need to figure out the best way to cut and convert the renamed files
on seccond though...
something like this may work for you
Code:
ls -1 /full/path/to/folder/containing/files/*.mpg > ./myls.txt
while read line
do
nuvexport --parameters --input="$line"
done < ./myls.txt