Log in

View Full Version : Appending AVI


stephen22
30th June 2020, 17:44
Anybody any idea how to deal with this bit of nonsense? Both clips recorded on a cheap webcam as wmv and converted with ffms2. Using assumefps or virtualdub to correct the framerate - same problem with either.

stephen22
1st July 2020, 14:22
Dunno how long it takes to get approval for a jpeg, but I've sussed it.

The error report said Can't append avi because different sampling rates, quoting 2 sample rates identical to 6 decimal places. I forgot framerate is a rational value. Interestingly the 2 hex numbers in the error report (which did the trick) do not divide to give the stated fps (29.85614), but precisely 29. Maybe someone can make sense of that.

StainlessS
1st July 2020, 15:06
You can change framerate of clip by eg

a=AviSource("...")
b=AviSource("...")
bnew=AssumeFps(b,a) # ,sync_audio=true) # change b to same as a fps. change audio rate too if sync_audio=true, might need Resampleaudio to original rate.

EDIT:
change audio rate too if sync_audio=true
Well it changes audio length/duration to match new fps, but that also results in changed audio samplerate.

Approval, best use some image host and directly embed in post.
PostImage.org, can create account or no expire upload without account, but cannot delete and some other stuff without account:- https://postimages.org/