nargun
8th July 2005, 05:45
Basically, I'm encoding DVDs in batch mode, under debian. Or trying to.
The source files have some problems with audio/video synch, so my plan is to force the audio and video lengths to match. Clearly, then, to do this I'll need to speed up/slow down one or the other, and--since the errror is variable--to work out how much to do this I need to know exactly how long each is, for each file [ideally, in terms of fps/sample rate and total number of frames/samples, rather than a duration in seconds]. Since it's all going to be in batch mode, I'll need a CLI program of some sort to do it.
I am up to writing a C wrapper that calls a library function that does all the sums for me, but I'm not the world's best programmer and I'd obviously prefer not to have to.
The source files have some problems with audio/video synch, so my plan is to force the audio and video lengths to match. Clearly, then, to do this I'll need to speed up/slow down one or the other, and--since the errror is variable--to work out how much to do this I need to know exactly how long each is, for each file [ideally, in terms of fps/sample rate and total number of frames/samples, rather than a duration in seconds]. Since it's all going to be in batch mode, I'll need a CLI program of some sort to do it.
I am up to writing a C wrapper that calls a library function that does all the sums for me, but I'm not the world's best programmer and I'd obviously prefer not to have to.