Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
1st June 2023, 01:39 | #1 | Link |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
24 to 23.976 fps by deleting frames
Hello,
For some reason Amazon encodes some of their videos in 24fps instead of 23.976. But they don't speed up the sound, instead they duplicate frames. The duplicate pattern goes like this: 501, 1502, 2503, 3504, 4505, 5506, etc. I would like to remove those duplicates. I tried SelectRangeEvery(every=1000, length=999, offset=501) but it's not giving me the desired result. Any ideas? |
1st June 2023, 02:13 | #2 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Not exactly what you want, but might perhaps give some ideas.
24p->25p woes - "Euro Pulldown"? [circa 2009]:- https://forum.doom9.org/showthread.php?t=151372 Took some time for me to find, and even if it aint any good to you, I'de like to be able to find it again. EDIT: Found it using Google Search (google working pretty good now for d9 search), failed to find using D9 native search.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 1st June 2023 at 02:15. |
1st June 2023, 02:27 | #3 | Link |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
Thanks StainlessS. After some trial and error I was able to figure it out.
Code:
a = DGSource("amazon24fps.dgi") b = a.Trim(0,500) c = a.SelectRangeEvery(every=1001, length=1000, offset=502) a = b ++ c |
1st June 2023, 02:49 | #4 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Cooool dude.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
1st June 2023, 02:51 | #5 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
RD, is an effect of your prob that sound stutters every now and then [If so then I have at least one of those].
(slight gap in sound)
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
1st June 2023, 04:07 | #6 | Link | |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,695
|
I would think that SelectEvery would get fooled by any interruption in the cadence. You'd be better off with a tool that looked for true duplicates. Here is some code that will give you all the frames which are perfect duplicates. You can then use one of the decimation plugins which accept frame numbers and then delete the actual, true duplicates.
Quote:
|
|
1st June 2023, 04:20 | #7 | Link |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
That's the thing, there is no interruption in the cadence. I've checked like 6 movies and pattern is always consistent. Amazon for some reason encodes movies at 24fps, while the very same movie on HBO Max is 23.976. Yeah I know I can use a duplicate frame detector but wanted to do it manually since dup filters can sometimes have false positives.
|
1st June 2023, 11:44 | #8 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
bump bump bump
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
1st June 2023, 21:43 | #12 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
I just meant, does your problem clip exhibit regular perceptible gaps in the audio. [I got one that does]
Nobody cares what you do or do not hate. [You is always hatin' on something. RD did not reply, and I guessed he missed my post, forum would not permit single bump, too short a post)].
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 1st June 2023 at 21:46. |
1st June 2023, 21:54 | #13 | Link |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
No, no gaps in the audio. Amazon basically takes the video and converts it to 24fps and leaves the audio intact. Some 29.970 videos also get the same treatment, they convert it to 30fps . Luckily it is always the same frame repeating pattern (every 1000th frame, starting at 500).
|
2nd June 2023, 01:00 | #14 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Tanx RD.
[EDIT: I hate people, that hate people that bump posts. (So there!)]
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 2nd June 2023 at 01:02. |
|
|