On Thursday 24 August 2006 10:23, Sven Over wrote:
> From your code:
> >         start 100
> >         end   200
> >         start 300
> >         end   400
> >     becomes
> >         start 0
> >         end   99
> >         start 99
> >         end   198
>
> The calculation is not correct. The new marks should become 0,100,100,200.
> Just see that for corresponding start and stop marks, the quantity
> stop-start (which is the number of pictures for that cut) should stay
> constant. So from the original values 200-100 must be equal to 100-0. (It
> is not equal to 99-0.)

Ta. I suspect the fault lies in the comment rather than than the code. When I 
first started this script I had not understood that STOP position was beyond 
the cut, and somewhere along the line the comments ceased to track the code. 
Or my head ceased to track reality.

>
> And then... sorry to say, but you would have a much easier life if you made
> use of the Python XML module. (See the attached script.)

And thanks for the guide to python and XML. 
This was in fact my first significant python program, and I was more 
interested in getting to grips with the basic mechanics of the language. The 
vast library of modules will have to wait .... :-)

>
> > However, I also note that the final STOP mark is always a few frames
> > (i.e. more than one) beyond the end of the MPG file, as though dvbcut has
> > stopped short of the desired position.
[snip]
> the last P/B-Frames in the file. This is, I must admit, an unneccessary
> limitation which probably originates from my usual usage of DVBCUT, using
> huge bulk TS-Files as source. There you don't mind missing a few frames in
> the end... 

... and,usually, I don't need to cut a file twice, so its no big deal. I was 
just curious, in case I was doing something wrong at my end.

ta muchly

brian


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DVBCUT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to