Hi all,
here's a Youtube clip of the Moody Blues, taken from a show called Colour Me Pop (late 60's)
In addition to the obvious cropping, resizing and sound normalization, there are duplicate frames.
I see a pattern of 5 unique followed by 1 dup. I assumed decimate 1 out of 6 giving a frame rate
of 24.975. But I've had a heck of a time getting it to work. For example, the following script goes
berserk during the graphic at the beginning. When I used cycle=5 and received a 23.976 clip,
it played without issue - but then 1 good frame in 25 is lost. What am I missing?
Video = directshowsource("F:\Documents and Settings\Dave Xnet\Desktop\moody_blues_CMP.mp4", audio=no,fps=29.97,convertfps=true)
video=video.decimate(cycle=6)
video=video.crop(106,60,-118,-60)
Video = Video.spline36resize(512,384)
return video
Here is a short clip showing the intro:
EDIT shortening the directshow statement to
Video = directshowsource("F:\Documents and Settings\Dave Xnet\Desktop\moody_blues_CMP.mp4") appears to help. Not sure why this would be, since the frame rate is unchanged.
+ Reply to Thread
Results 1 to 4 of 4
-
Last edited by davexnet; 6th Apr 2012 at 18:23. Reason: new info
-
DirectShowSource() may be your problem. Try ffVideoSource("mb_clip.mp4", fpsnum=30000, fpsden=1001) instead. Nice music video!
Last edited by jagabo; 6th Apr 2012 at 18:36.
-
Thanks Jagabo, I'll try your suggestion. That particular Colour Me Pop with the Moodies,
is one of the few surviving episodes. Youtube appears to have the whole appearance (25 minutes or so).
http://www.youtube.com/watch?v=AXL7tcV_x4A -
If you really want to use DirectShowSource() try using only DirectShowSource() and saving to a lossless intermediate AVI file. Then run the rest of your script with that AVI file and AviSource(). DirectShowSource() isn't frame accurate when seeking but if you run a simple script it will just read frames sequentially. That's usually enough to keep frames in order.
Similar Threads
-
Decimate odd patterned duplicate frames in video
By raphaelt in forum Video ConversionReplies: 2Last Post: 2nd Feb 2011, 22:57 -
Decimate advice
By pfxz in forum Video ConversionReplies: 5Last Post: 1st Aug 2008, 18:49 -
Can I decimate duplicate frames to get 23.976
By MagicSparky in forum Video ConversionReplies: 5Last Post: 21st Feb 2008, 15:26