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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 ASP

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th July 2008, 21:37   #1  |  Link
shae
Registered User
 
Join Date: Jun 2006
Posts: 397
What might cause I-VOPs to be 2 frames before scene changes?

I just encountered an odd Xvid encoding. Keyframes are present 2 frames before scene changes. It's not decoder delay. What might cause such a strange behavior?
shae is offline   Reply With Quote
Old 30th July 2008, 22:15   #2  |  Link
Ranguvar
Registered User
 
Ranguvar's Avatar
 
Join Date: Feb 2007
Location: ::1
Posts: 1,236
The minimum keyframe interval could force Xvid to place a keyframe early, and there might be a restriction on how far keyframes must be from each other, so it didn't place one right at the scene change... unless this is consistent with each scene change?
Ranguvar is offline   Reply With Quote
Old 30th July 2008, 22:21   #3  |  Link
shae
Registered User
 
Join Date: Jun 2006
Posts: 397
It's a fragment cut from a larger video, so I don't know what happens in all of it, but in the part I have it's like that before every scene change.

How can you enforce minimum distance between keyframes?

And how can a fully lit P-VOP after a completely black frame not be I-VOP? (Could all MBs be I but the frame as a whole not considered I?)
shae is offline   Reply With Quote
Old 31st July 2008, 00:49   #4  |  Link
plugh
A hollow voice says
 
Join Date: Sep 2006
Posts: 269
IIRC, there was a bug in earlier version(s) of xvid involving n-vops that could put pass1 and pass2 out of sync. (The .pass file controls pass2 frame types.) Perhaps you are seeing a manifestation of this...
plugh is offline   Reply With Quote
Old 31st July 2008, 04:03   #5  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
It could be the n-vop bug but that normally led to I frames appearing after their proper position, not before. Possibly the source used directshowsource() and it presented different frames on each pass. Maybe it was encoded in non-packed mode, they decided for some stupid reason it wasn't good enough and fed the encoded file back in for a third pass - using the original stats file.
squid_80 is offline   Reply With Quote
Old 31st July 2008, 12:46   #6  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
eh... avi/vfw...

Last edited by Sharktooth; 1st August 2008 at 13:40.
Sharktooth is offline   Reply With Quote
Old 1st August 2008, 23:23   #7  |  Link
shae
Registered User
 
Join Date: Jun 2006
Posts: 397
Is there a way to see the macroblock types of a frame(something like ffdshow's visualization of MVs)? I'm curious about the properties of these non-I-VOPs on a scene change.
shae is offline   Reply With Quote
Old 2nd August 2008, 09:16   #8  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Not that I know of. Maybe a request could be made to the ffdshow folks - if they can show the quantizer I'd imagine they should be able to show the block type using a similar method.
squid_80 is offline   Reply With Quote
Old 2nd August 2008, 18:04   #9  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by squid_80 View Post
Not that I know of. Maybe a request could be made to the ffdshow folks - if they can show the quantizer I'd imagine they should be able to show the block type using a similar method.
I think all the "ffdshow guys" do is enabling the visualization options of the libavcodec decoder (like "-lavdopts vismv=7" in MPlayer)
So adding new visualizations would require support by libavcodec, I guess...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 2nd August 2008 at 18:12.
LoRd_MuldeR is offline   Reply With Quote
Old 2nd August 2008, 19:11   #10  |  Link
shae
Registered User
 
Join Date: Jun 2006
Posts: 397
It seems to be handled in imgFilters/TimgFilterShowMV.cpp.
shae is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.