![]() |
|
mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116) +--- Thread: mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings (/showthread.php?tid=65644) |
- GregoryK - 2010-12-30 00:11 Adam: Thanks for the reply, good to hear that there is a workaround. Selecting the MythCommFlag checkbox will have the transcode honor the cutlist automatically and remove the commercials? Or will it just flatten the framerate in the transcoded file (not sure I care either way, just curious.) Any ideas for applying this workaround (or a similar one) for my existing recordings that have already been processed by mythicalLibrarian? Something like the script described on this page, only run as a cron job (instead of a user job in frontend), maybe? /Greg - outleradam - 2010-12-30 15:47 cronjobs are used when you want to have unattended processes run at predetermined times. You can attend this process. Off-hand I can't really remember the format of the mythtv job. You will run mythicalLibrarian --undo, then MythTranscode all files, then mythicalLibrarian --scan mp4 /path_to_my/recordings The script to transcode all of your recordings would look like this Code: #! /bin/bashI wrote this without a terminal to check, so you may need to debug it. - GregoryK - 2011-01-02 18:14 Adam: Thanks for the draft shell script. One problem (my own fault, not the fault of mythicalLibrarian) is that running --undo on my current setup won't actually unwind all of the renamed/symlinked files. (This is I think due to manually running --scan as a different user when I was first installing/configuring mythicalLibrarian on my system.) ![]() So your proposed technique won't entirely work around my problem, but maybe if I ran --undo and then put a check in the shell script that made sure not to run mythtranscode on a symlinked file, but only an actual recording file, I could get myself at least part of the way there? Happy New Year! /Greg - rmikulec - 2011-01-04 00:09 outleradam Wrote:GregoryK: The problem is XBMC's handling of MPEG2-TS variable framerate. The show comes in at 24fps, and some commercials are appended into the broadcast at 60fps. Using MythTranscode on each file will patch the problem in both MythTV and XBMC by setting it at a fixed framerate. MythTV handles variable framerate with a table which is generated by it's comskip handler. If the file is variable framerate, the frame numbers in the comskip.txt are correct, but XBMC blindly assumes fixed framerate based on the first few frames of the recording. I assume when you do this you have to remove the JobSuccesful file in order to prevent double transcoding. Is that correct? - outleradam - 2011-01-04 00:12 rmikulec Wrote:I assume when you do this you have to remove the JobSuccesful file in order to prevent double transcoding. Is that correct?No, you simply put it into the JobSucessful file. It will be implemented on the next mythicalSetup. GregoryK: You can undo as every user. Each user has his/her own undo file which will revert the files to their original state. - rmikulec - 2011-01-04 00:15 outleradam Wrote:No, you simply put it into the JobSucessful file. It will be implemented on the next mythicalSetup. Here is my JobSucessful. PHP Code: #Run a transcoding program on the fileWhat would I have to change? I assume it is just the first section. Any help would be greatly appreciated. Besides the commercials issues it has been working awesome. - rmikulec - 2011-01-04 00:25 If I used this as my JobSucessful would it work? PHP Code: #!/bin/sh- GregoryK - 2011-01-04 00:43 outleradam Wrote:No, you simply put it into the JobSucessful file. It will be implemented on the next mythicalSetup. Adam: I realize that there are multiple undos, but somewhere along the way I must have deleted some undo data. I think I have worked out a way to return the files to their original using your undo.sh as a template. oh, and ... what's a JobSucessful file and where is it located? Apologies for my ignorance on this one, but 'locate' didn't find it on my system. /Greg - outleradam - 2011-01-04 15:40 Is this thread out of sync or is it just me? I'm just now seeing posts which did not show up before. GregoryK: The JobSucessful is used for running commands after mythicalLibrarian runs. It is there to extend functionality while utilizing internally generated values... this way you can work with things like Season, Episode, Title, OriginalAirdate, and other values. rmikulek: it would probly be better to run 1 job at a time and have that run before mythicalLibrarian. - GregoryK - 2011-01-04 23:15 Adam: Thanks for the explanation, I found the UserJobs wiki page which I hadn't seen before, that helps. But you think it would still be better to --undo and then run a transcode, and then re-run mythicalLibrarian on the transcoded files, rather than run mythicalLibrarian with a JobSucessful file that transcodes? My efforts to get the transcoding done are complicated by the recently-discussed audio bug with mythtranscode breaking 5.1 audio in mythtv 0.24. So I am considering using Handbrake to do the transcoding, even though I would prefer to do a mythtranscode with the --mpeg2 flag to save time (storage space is not really an issue in my setup at this point.) Thanks again for the help & expertise. /Greg |