Comskip Support Forum
http://www.kaashoek.com/comskip/

EDL file format output - incorrect
http://www.kaashoek.com/comskip/viewtopic.php?f=3&t=1563
Page 1 of 1

Author:  srthimsen [ Sat Feb 01, 2014 10:54 pm ]
Post subject:  EDL file format output - incorrect

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.

Author:  Jagad [ Sun Feb 02, 2014 12:39 am ]
Post subject:  Re: EDL file format output - incorrect

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!

Author:  erik [ Sun Feb 02, 2014 2:06 pm ]
Post subject:  Re: EDL file format output - incorrect

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?

Author:  Jagad [ Sun Feb 02, 2014 3:23 pm ]
Post subject:  Re: EDL file format output - incorrect

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.

Author:  erik [ Sun Feb 02, 2014 7:48 pm ]
Post subject:  Re: EDL file format output - incorrect

Does wine tell you that you are using Linux?
I don't know anything about wine

Author:  Jagad [ Sun Feb 02, 2014 8:29 pm ]
Post subject:  Re: EDL file format output - incorrect

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...?

Author:  erik [ Mon Feb 03, 2014 8:05 am ]
Post subject:  Re: EDL file format output - incorrect

Nope.
The windows executable is used both on windows, linux and mac

Author:  Jagad [ Mon Feb 03, 2014 8:37 pm ]
Post subject:  Re: EDL file format output - incorrect

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

Author:  erik [ Tue Feb 04, 2014 9:02 am ]
Post subject:  Re: EDL file format output - incorrect

Is EDL output not working on windows e.g. does ffmpeg not accept the input?
Or is it only a notepad problem?

Author:  Jagad [ Tue Feb 04, 2014 6:55 pm ]
Post subject:  Re: EDL file format output - incorrect

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

Author:  erik [ Tue Feb 04, 2014 7:28 pm ]
Post subject:  Re: EDL file format output - incorrect

No problem
Even I sometimes forget why I implemented certain features.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/