Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Tue Sep 25, 2018 5:00 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sat Feb 01, 2014 10:54 pm 
Offline

Joined: Sat Feb 01, 2014 5:50 am
Posts: 1
I am getting strange output for EDL files while using 81.058 donators version. I've changed the skipping function in the .ini file to output a "3" in the EDL file (edl_skip_field=3), as I'm using XBMC, but it was doing the same before with "0" as default.

I'm also using MCEBuddy, but have linked it to the donator version listed above.

The format I'm getting is a single line of data, with the frames of detected commercials (start/stop) and the number "3", but the number 3 is right next to the frame number, and XBMC is not reading it as a result.

Example:
0.0 22.5 3150.2 175.5 3

Rather than starting a new line at "150.2", it sticks it rights next to the "3" from the previous cut point. If I manually add a line at the appropriate spots, XBMC reads it correctly.


Top
 Profile  
Reply with quote  
PostPosted: Sun Feb 02, 2014 12:39 am 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
Yes, you are right! If bringing up the edl in notepad all line feeds are gone, but if opening it in notepad++ line feeds are there. Strange indeed!


Top
 Profile  
Reply with quote  
PostPosted: Sun Feb 02, 2014 2:06 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3210
The edl output format is binary compatible with Linux implying there is no CRLF but only LF separating the lines.
Notepad++ understands this format as native Linux (actually UNIX) and displays correctly where notepad is a Microsoft windows program thus lacking any understanding of a would outside Microsoft.
I changed the format on request of Linux users.
Do I need to change it back to Windows format?


Top
 Profile  
Reply with quote  
PostPosted: Sun Feb 02, 2014 3:23 pm 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
erik wrote:
Do I need to change it back to Windows format?
No, not necessarily, because you could have both! Just let Comskip check which OS it is runned on and adapt/condition the EDL output format accordingly. If Comskip takes a direction not supporting Windows anymore and breaking support for all Windows based players using EDLs would be unfortunate.


Top
 Profile  
Reply with quote  
PostPosted: Sun Feb 02, 2014 7:48 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3210
Does wine tell you that you are using Linux?
I don't know anything about wine


Top
 Profile  
Reply with quote  
PostPosted: Sun Feb 02, 2014 8:29 pm 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
erik wrote:
Does wine tell you that you are using Linux?
I don't know anything about wine
I don't know anything about wine either. However my thought was something like this:
Code:
#ifdef __linux__
    //linux code goes here
#elif _WIN32 || _WIN64
    //windows code goes here
#else
   //as far as I understand wine emulates windows code so I suppose windows code goes here 
#endif

Maybe it doesn't work cross-platform...?


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 03, 2014 8:05 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3210
Nope.
The windows executable is used both on windows, linux and mac


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 03, 2014 8:37 pm 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
Ah, I now see the problem! Wine developers refuses to make wine reliability detectable mainly cuz they don't want windows app programmers start blocking wine users from utilizing windows software and they are also afraid of cross-platform viruses attacking linux. Well, that makes it quite difficult and I suppose a two version Comskip, one for windows and one for wine is not the preferrable way to go here. I was reading up on the matter and in order to detect wine one should instead try to detect if functionality exists. There are a number of ways here:
http://wiki.winehq.org/DeveloperFaq#head-96551a33b168826cd805c2f62c4ea705ac02f350
http://www.winehq.org/pipermail/wine-devel/2008-September/069387.html
http://forum.winehq.org/viewtopic.php?p=25906

So there might actually be possible to accomplish the conditioning after all.

However they say any method to detect running under Wine is unsupported and may break without warning in the future.
IMHO i think it's unfair, given these prerequisites, that linux users are prioritized when it comes to Comskip EDL output format that it has gone so far even breaking windows players edl support. If they refuse having an official way to detect wine through a macro or whatever why bother with them...comskip is after all a windows software. Just my two cents.

/Jagad


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 04, 2014 9:02 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3210
Is EDL output not working on windows e.g. does ffmpeg not accept the input?
Or is it only a notepad problem?


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 04, 2014 6:55 pm 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
Huge mistake on my end. I was assuming based solely on threadstarters words that XBMC failed reading the EDL. I am not using EDLs and XBMC myself, but VPrjs and Videoredo. Decided to install XBMC and check for myself and it reads the EDL just fine and nothing wrong if using cuts or skipping either. I dont know if this is the case for other windows EDL players as well. Wont install them and find out. Sorry for wasting your time on this totally unnecessary quest. Dont know what TS meant with his bugreport. I can live with notepad EDLs dont have line feeds just fine and sorry for sticking my nose into something i shouldnt have.

Regards
Jagad


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 04, 2014 7:28 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3210
No problem
Even I sometimes forget why I implemented certain features.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group