essandess / etv-comskip

Commercial Marking and Skipping for EyeTV and iTunes Exports
GNU General Public License v2.0
55 stars 7 forks source link

X11 is opening without any windows #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Everytime EyeTV starts a recording

Latest version of every involved software 
etv 2.0.2
os 10.6.4
eyetv 3.4.1

Original issue reported on code.google.com by hasamar...@gmail.com on 7 Nov 2010 at 9:59

GoogleCodeExporter commented 8 years ago
This is an unavoidable consequence of using Wine and the windows version of 
comskip.
It's not an etv-comskip bug; you'll have to take this one up with the wine 
developers.

Original comment by jon.chri...@gmail.com on 8 Nov 2010 at 6:49

GoogleCodeExporter commented 8 years ago
Launching X11 is easy to avoid by unsetting the DISPLAY environment variable 
before calling comskip: Wine can't (and won't) initialize the window system w/o 
a display to use.

I also had to substantially increase the delay in the RecordingStarted 
applescript; otherwise comskip would exit immediately because it saw only an 
empty recording.

Original comment by Tar...@gmx-topmail.de on 16 Jan 2012 at 10:24

Attachments:

GoogleCodeExporter commented 8 years ago
I had a similar issue. But increasing the delay in the applescript only delays 
the start of the recording so it didn't (shouldn't) help.

The delay needs to get put into the shell script so that RecordingStarted can 
exit and start the recording. Then 60 seconds later MarkCommercials has 
something to work with.

I was actually just looking around at the best place to post this. I'm going to 
open up an issue.

Here it is: added "(sleep 60 ; " at the start and ")" after recordingID.

on RecordingStarted(recordingID)
    set cmd to "(sleep 60 ; /usr/bin/nice -n 2 '/Library/Application Support/ETVComskip/MarkCommercials.app/Contents/MacOS/MarkCommercials' --log " & recordingID & ") &> /dev/null &"
    -- display dialog cmd
    do shell script cmd

Original comment by bgrupczy...@gmail.com on 1 Mar 2012 at 3:00