Project

General

Profile

Post Processor not working?

Added by Ben Moss over 12 years ago

I have been trying to get the post processor to run a conversion but it simply does nothing.
I have tried all of this on a command line and it runs fine. I am not sure what the problem could be.
Here are the command lines I have tried to run:

  1. HandBrakeCLI -i %f -o "/media/2TB nexstar/Movies/%b" --preset="High Profile"
  2. HandBrakeCLI -i %f -o "/media/2TB nexstar/Movies/%t.m4v" --preset="High Profile"
I have also tried the above like this:
  1. /usr/bin/HandBrakeCLI -i %f -o "/media/2TB nexstar/Movies/%b" --preset="High Profile"
  2. /usr/bin/HandBrakeCLI -i %f -o "/media/2TB nexstar/Movies/%t.m4v" --preset="High Profile"

I do not get any output in the log window to say that it has tried to do anything. Here is one example:

Jul 15 10:50:15 subscription: "DVR: Yo Gabba Gabba!" unsubscribing from "ABC2 / ABC4"
Jul 15 10:50:15 dvr: Recording completed: "/media/internal2gb/recordings/Yo Gabba Gabba!.mkv"
Jul 15 10:50:15 dvr: "Yo Gabba Gabba!" on "ABC2 / ABC4": End of program: Aborted by user
Jul 15 10:50:22 htsp: 127.0.0.1 [ tvuser | XBMC Media Center ]: Disconnected
Jul 15 10:50:22 subscription: "127.0.0.1 [ tvuser | XBMC Media Center ]" unsubscribing from "ABC2 / ABC4"
Jul 15 10:50:22 htsp: 127.0.0.1 [ tvuser | XBMC Media Center ]: Write error -- Broken pipe
Jul 15 10:50:23 htsp: 127.0.0.1 [ tvuser | XBMC Media Center ]: Disconnected

Note:
I am not sure what the broken pipe is referring to, but I sometimes get it and sometimes not. Either way, nothing happens. Any ideas.


Replies (6)

RE: Post Processor not working? - Added by Hein Rigolo over 12 years ago

I always suggest you use a shell script as a postprocessor script that takes all the tvheadend variables as input and then let this shell script start/call all the other required programs.
That way you can test your bash script independently from tvheadend. On this wiki page you can find an example of such a script that is used in conjuction with ComSkip.
(http://www.lonelycoder.com/redmine/projects/tvheadend/wiki/Tvheadend_post_recording_scripts)

And also make sure that all these scripts can be executed by the user under which tvheadend is running (usually this is the hts user)
So start with a simple shell script that is just outputting all the variables to a simple text file and then expand from there.

Hein

RE: Post Processor not working? - Added by Ben Moss over 12 years ago

Thanks Hein... I will give it a shot on the weekend and report back the results.

Ben

RE: Post Processor not working? - Added by Maciej Malawski over 12 years ago

I also have strong feeling that post processor command just doesn't work. I tried under Ubuntu 12.04 as simple command as: date > /home/user/file - nothing happens.
I it working for anybody here ?

Mac

RE: Post Processor not working? - Added by Ben Moss over 12 years ago

I have not had a chance to test this as a script yet as suggested, but I find it odd that I get no output at all even when I had tried some basic commands too, like Mac.

@Mac... I am also running a 12.04 based distro (Pinguy 12.04). I noticed that I did not mention this originally.

Ben

RE: Post Processor not working? - Added by Maciej Malawski over 12 years ago

Thanks Ben
I use TVHeadend - build: 2.12
I think first we need to ensure is this behaviour related to specific distro (like Ubuntu/Pinguy), or is this common bug in build 2.12 of TVHeadend.
We need someone with working post processor command in TVHeadend to find out right environment.

Mac

RE: Post Processor not working? - Added by Ben Moss over 12 years ago

My build shows as Build: 2.99.53.4502158, should I look for this elsewhere? Perhaps it is a dev build, though I'm sure I set this up following instructions for setting up a PVR for XBMC from the xbmc wiki, so it seems odd that it would be a dev build.

    (1-6/6)