Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Wed Dec 12, 2018 4:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Dec 02, 2018 3:55 pm 
Offline

Joined: Sun Dec 02, 2018 3:36 pm
Posts: 1
Hi,

I recently discovered this great tool, thank you for it.

I'm using projectx to cut my .ts-files, and there seems to be a little problem when the video file starts with a com.
Instead of writing 0 as the first line of the Xcl cut list when the second is 1, comskip outputs 1 and 1, with the consequence that instead of cutting out the com's, projectx deletes the wanted show and all I have left are com's :lol:

I made a little change to the comskip.c, and now it does the job as it should for me.

original (at line 6890):
Code:
    if (projectx_file && prev < start)
    {
        fprintf(projectx_file, "%ld\n", F2F(prev+1));
        fprintf(projectx_file, "%ld\n", F2F(start));
    }
    CLOSEOUTFILE(projectx_file);


changed to:
Code:
    if (projectx_file && prev < start)
    {
      if ( F2F(start) != 1 )
         fprintf(projectx_file, "%ld\n", F2F(prev+1));
      else
         fprintf(projectx_file, "%ld\n", 0);
      fprintf(projectx_file, "%ld\n", F2F(start));
    }
    CLOSEOUTFILE(projectx_file);


Thank you again for this great tool.


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 06, 2018 3:32 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3215
Thanks for the updated code. will include in next release (may take some time)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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