Alex . wrote:
> Hi K Shea ,
>
> Some quick remarks; I am not sure if there is a way to make tvheadend recongnise the resulting file.
I really hope there is - if there is not, there should be. Maybe time to go make a feature request?
> > (assuming that this does not exceed some sort of length limit for a Post-Processor Command in TVHeadEnd)
>
> This can be solved ( as is also stated in the link you provide) to write a bash- script, and call the bash script from tvheadend, not the actual ffmpeg command ( using /path/to/script.sh %f %b as in the example)
I thought about that, it's just that I'm not real comfortable writing bash scripts. I can usually do one if I really need to but it can take me a day to come up with something that an experienced bash user could knock out in five minutes, just because I do it so infrequently.
> > It's more important to have the converted file available than the original, though it would be nice to have both
> > just in case there is some issue in the converted file, and for ease of deletion once the converted file has been
> > watched.
>
>
> If you use a script you might try to swap the files so that the converted file has the same name as the original :
> - Convert the file to zzz-convert
> - move the original file to some folder 'original'.
> - move the converted file zzz-convert to zzz
I tried doing something like this manually and discovered that if you mess with the original file in any way other than moving a converted file over it, TVHeadEnd can lose track of it, and once that happens you are out of luck, for the same reason you can't get TVHeadEnd to recognize a converted file (as far as I know right now).
However, if you convert the file and then move the converted file on top of the original (which I did using Midnight Commander so I am not sure of the command line syntax, probablymv -f convertedfilename original_filename_ but don't hold me to that) then it does seem to recognize the converted file.
> I am not sure if this works, but this way the converted file might be available in tvheadend.
Well at least in the test I did earlier tonight, what I said in my previous paragraph seems to work. But still, I wish there was a way to make both files accessible, since I don't want to delete the original until I have watched the converted file, and having both shown in the recordings list would make it easy to delete both.