Page 1 of 1

projectx cut files problem

Posted: Sun Dec 02, 2018 3:55 pm
by rhamp
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: Select all

    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: Select all

    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.

Re: projectx cut files problem

Posted: Thu Dec 06, 2018 3:32 pm
by erik
Thanks for the updated code. will include in next release (may take some time)