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 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th February 2005, 02:21   #1  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
x264 and b-frames flushing

since r137 x264 includes a fix for flushing frames when using b-frames at the end of encodes

am i right that this doesnt affect the behaviour of the vfw encoder? at least here it seems as if the behaviour is still the same (number of delay frames in the stream is the number of the chosen consecutive b-frames)
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 24th February 2005, 04:08   #2  |  Link
sysKin
Registered User
 
sysKin's Avatar
 
Join Date: Jun 2002
Location: Adelaide, Australia
Posts: 1,167
I think it will never affect vfw encoder - there is no way for VfW to know if encoding has finished and there is a need to flush - and even if there was, encoder has no way of transmitting the flushed frames to encoding application.
Like in Xvid.
__________________
Visit #xvid or #x264 at irc.freenode.net
sysKin is offline   Reply With Quote
Old 24th February 2005, 04:14   #3  |  Link
virus
Senior n00b
 
Join Date: Jan 2004
Location: Italy
Posts: 446
Seems to work perfectly in mencoder. You end up with an AVI without dummy frames at the start, and without missing frames at the end. Virtualdub(mod) doesn't support this kind of flushing.

BTW I'm having some problems both seeking and with the framenumber shown in ffdshow's OSD when decoding properly flushed mencoder clips; ffdshow seems to have troubles at the start and at the end of the clip. For example, it displays both the frames 0 and 1 as I-frames (and they aren't). It also doesn't display the last frame (it ends up with a B). Opening the clip in Vdub gives no problems at all.

Someone has seen the same? Maybe I should update ffdshow to a very recent build? (mine is Jan 17 I think)
virus is offline   Reply With Quote
Old 24th February 2005, 05:27   #4  |  Link
akupenguin
x264 developer
 
akupenguin's Avatar
 
Join Date: Sep 2004
Posts: 2,392
Even when the stream is flushed, there's still a decoding delay in ffdshow. It displays the first frame twice, because it the first time it didn't know that the stream contained B-frames.
akupenguin is offline   Reply With Quote
Old 24th February 2005, 10:57   #5  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
virus, do you also now have the same framenumber in the output as in the input with mencoder? in vfw you loose the number of b-frames you set

also search for "b-frame decoder lag" with xvid
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 24th February 2005, 11:16   #6  |  Link
virus
Senior n00b
 
Join Date: Jan 2004
Location: Italy
Posts: 446
Quote:
Originally posted by bond
virus, do you also now have the same framenumber in the output as in the input with mencoder? in vfw you loose the number of b-frames you set

also search for "b-frame decoder lag" with xvid
bond, I know pretty well that lag message

But yes, I can confirm what I wrote above: no dummies, no frame loss... mencoder produces an AVI with the same framenumber as the source. You don't lose anything. Unfortunately there's that duplicated first frame when opening it (either in VfW or DShow). I wonder if using a different container resolves this glitch or not. Anyway seeking in this build of ffdshow I'm using seems somewhat b0rked and may not be related to these particular (non-vfw) AVIs. I can't see the last frame in MPC, but Vdub definitely shows it.
virus is offline   Reply With Quote
Old 24th February 2005, 11:21   #7  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
Quote:
Originally posted by virus
Unfortunately there's that duplicated first frame when opening it (either in VfW or DShow). I wonder if using a different container resolves this glitch or not
try the rawvideo output of mencoder and mux into .mp4 with mp4creator
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 24th February 2005, 11:22   #8  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
Quote:
try the rawvideo output of mencoder and mux into .mp4 with mp4creator
This'll soon be done automatically in MeGUI (sorry, couldn't resist a little self promotion).
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 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 09:45.


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