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-2 Encoding
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th October 2005, 10:48   #21  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
My last encode ended up with buffer underflow warnings in DVD Maestro.

Here's the last log entries:
Code:
intra matrix used
   8  16  19  22  26  27  29  34
  16  16  22  24  27  29  34  37
  19  22  26  27  29  34  34  38
  22  22  26  27  29  34  37  40
  22  26  27  29  32  35  40  48
  26  27  29  32  35  40  48  58
  26  27  29  34  38  46  56  69
  27  29  35  38  46  56  69  83

non-intra matrix used
  16  17  18  19  20  21  22  23
  17  18  19  20  21  22  23  24
  18  19  20  21  22  23  24  25
  19  20  21  22  23  24  26  27
  20  21  22  23  25  26  27  28
  21  22  23  24  26  27  28  30
  22  23  24  26  27  28  30  31
  23  24  25  27  28  30  31  33

nr. of gops:                      10053
nr. of frames:                   139500
nr. of I-frames:                  10053
nr. of P-frames:                  36609
nr. of B-frames:                  92838
average quant (non linear):       4.612
VBV underflows detected:              6
VBV underflows fixed:                 6
minimum bitrate:                    193
maximum bitrate:                   8492
average bitrate:                   3364
I used a 256kbps audio track plus one subtitle track so the max bitrate definitely shouldn't have been exceeded.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 19th October 2005, 21:45   #22  |  Link
hank315
HCenc author
 
Join Date: Nov 2003
Location: Netherlands
Posts: 570
@Boulder
Strange, the log values show an easy encode with just a few VBV fixes and a max. bitrate which isn't that high.
Have you also tried to author it with Muxman or IfoEdit?
How does it look when the m2v is loaded into BitrateViewer or MPEG Stream Eye?
hank315 is offline   Reply With Quote
Old 20th October 2005, 10:00   #23  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Quote:
Originally Posted by hank315
@Boulder
Strange, the log values show an easy encode with just a few VBV fixes and a max. bitrate which isn't that high.
Have you also tried to author it with Muxman or IfoEdit?
How does it look when the m2v is loaded into BitrateViewer or MPEG Stream Eye?
I'll try to author it with those programs as soon as time permits. BV showed max bitrate at ~8000kbps so the value in the log should be true.

This is the first time I've had such warnings and I've used 9000 as the maximum. Do you know any program that could tell me at what frame/GOP the underflows occur? I could check it on my picky Pioneer if it has a real effect.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...

Last edited by Boulder; 20th October 2005 at 10:03.
Boulder is offline   Reply With Quote
Old 23rd October 2005, 17:33   #24  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
Quote:
Originally Posted by boulder
My last encode ended up with buffer underflow warnings in DVD Maestro.
were these green warnings or red warnings (well, a red warning would have stopped the compile dead...)?

green warnings from spruce are pretty safe to ignore - they don't translate to playback problems in my experience, though that fact is taken on faith because only the pedants like us will complain about occasionally stuttery playback... most people blame their equipment and forget about it (samsung owners are justified here...)

i suspect spruce gives a green bitrate warning when the bitrate exceeds the flagged max bitrate, and gives a red warning when the bitrate exceeds the 10.02 mbps limit of DVD. i've not tried this, but it's possible that if you were to change the max bitrate set in the m2v, the warning would go away.

also beware that BV free version reports too-low bitrates. you have to multiply them by 1.024 i believe.
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 23rd October 2005, 17:46   #25  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
hank already found the problem with a little help from MuxMan's log file and a little util. It's not about exceeding the max bitrate, it's just a rare case of a couple of a bit too large frames not arriving on time. He said it'll be fixed in the next release.

I haven't tried whether my player will stutter at that point but it would have been a minor issue anyway.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 26th October 2005, 21:07   #26  |  Link
Moitah
Registered User
 
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
I am trying to frameserve from VirtualDub to AviSynth to encode with HC. The AVI loaded in VirtualDub is NTSC DV so it's 720x480 29.97fps. AviSynth script looks like this:

AVISource("enc.vdr")
ConvertToYV12(interlaced=true)


It works fine in HC 0.15A, but with the 0.16 test release it just exits as soon as I start it (no error message displayed, or if there is it exits so fast I can't see it). All settings were the same for both versions because I loaded them from the same INI. 0.16 works fine for normal AviSynth scripts where I'm not reading from a VirtualDub frameserver. Any ideas?
__________________
moitah.net

Last edited by Moitah; 26th October 2005 at 21:11.
Moitah is offline   Reply With Quote
Old 26th October 2005, 23:08   #27  |  Link
hank315
HCenc author
 
Join Date: Nov 2003
Location: Netherlands
Posts: 570
Some remarks here so the other thread will not be hijacked completely
@Carpo & Pasqui
I think it's perfectly safe to use the latest HC016, IMHO it's the most stable version until now.
It's just called a test version to see if the crashes which some people experience with HC015 are now gone.
There will be an "official" release of it when it's finished, still working on 1 pass VBR.
Before the official release there will be another test version which can do 1 pass VBR.

Known bugs for HC016 (and all previous versions):
- GOP/VOBU/pulldown issue reported by Xeno86, will be solved in the next release
- VBV underflow reported by Boulder, working on that now

@Moitah
I never tested this but yes I can replicate it.
HC015 finishes normal, HC016 just disappears immediate, frameserver reports 1 frame served
Debugging time again...
hank315 is offline   Reply With Quote
Old 27th October 2005, 01:51   #28  |  Link
dragongodz
....
 
dragongodz's Avatar
 
Join Date: May 2002
Location: Australia
Posts: 2,797
Quote:
still working on 1 pass VBR.
your as bad as Nic in keeping things for a surprise.
__________________
Narrator: And of course, with the birth of the artist came the inevitable afterbirth - the critic. (History of the World part 1)
dragongodz is offline   Reply With Quote
Old 27th October 2005, 15:29   #29  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
Quote:
Originally Posted by hank315

Known bugs for HC016 (and all previous versions):
- GOP/VOBU/pulldown issue reported by Xeno86, will be solved in the next release
- VBV underflow reported by Boulder, working on that now
@Hank315

thats why i never used it in the test (of course i didnt know of those issues) but
it was a case of just in case - and i never meant to knock your encoder as its a damn fine piece of kit to have - since my little test i been using HC15 non stop
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 30th October 2005, 18:29   #30  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
It appears that HC doesn't like ffdshow's mjpeg decoding.

I've got a TV capture, captured with ffdshow mjpeg. I open it via AVISource so the infamous DirectShowSource can't be the culprit. When the script is opened, HC quits almost immediately leaving a zero byte length m2v file behind.

EDIT: using DirectShowSource it works
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...

Last edited by Boulder; 31st October 2005 at 12:42.
Boulder is offline   Reply With Quote
Old 2nd November 2005, 20:15   #31  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,484
Possible to implement adaptative ratio for bframe ... ???
__________________
Le Sagittaire ... ;-)

1- Ateme AVC or x264
2- VP7 or RV10 only for anime
3- XviD, DivX or WMV9
Sagittaire is offline   Reply With Quote
Old 2nd November 2005, 23:17   #32  |  Link
LauriM
Registered User
 
Join Date: Sep 2005
Posts: 2
Hank315, thank you for an excellent encoder!

I'm happy to report that the current testrelease works with Wine in Linux, hits the specified average and peak bitrates and does it with excellent image quality and speed. My Pioneer standalone (which is quite strict about standard compliance) has no problems with the resulting bitstream.

LauriM is offline   Reply With Quote
Old 3rd November 2005, 00:07   #33  |  Link
hank315
HCenc author
 
Join Date: Nov 2003
Location: Netherlands
Posts: 570
Quote:
Possible to implement adaptative ratio for bframe ... ???
Do you mean a manual setting for it?
Now the ratio for I,P,B is already done automatical depending on the bitrate.

@LauriM
Thanks...
hank315 is offline   Reply With Quote
Old 3rd November 2005, 00:31   #34  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,484
Quote:
Originally Posted by hank315
Do you mean a manual setting for it?
Now the ratio for I,P,B is already done automatical depending on the bitrate.
Thanks...
No ... as you know MPEG2 use no adaptative bframe ... always IBBPBBP for low or high motion. MPEG4 use adaptative bframe and generaly only Bframe in low motion with high ratio/offset because with exactly same size I(q3)b(q5)b(q5)p(q3) will be visually better than I(q4)b(q4)b(q4)p(q4). It's possible to use constant ratio/offset for MPEG2 but ratio/offset for high motion is bad in high motion. Use constant ratio/offset for MPEG4 is possible because bframe are adaptative but it's a problem with no adaptative bframe like for MPEG2 MP@ML DVD compliant stream.

Why not adaptative ratio for bframe and for example
I(q4)b(q4)b(q4)p(q4) in high motion part -> low ratio for high motion
I(q4)b(q6)b(q6)p(q4) in low motion part -> high ratio for low motion

You use low quant variability and for example
I(q4)b(q4)b(q4)p(q4) in high motion part -> low ratio for high motion
I(q3)b(q4)b(q4)p(q3) in low motion part -> high ratio for low motion

with that PSNR and visual quality could be very better ... ???
__________________
Le Sagittaire ... ;-)

1- Ateme AVC or x264
2- VP7 or RV10 only for anime
3- XviD, DivX or WMV9
Sagittaire is offline   Reply With Quote
Old 7th November 2005, 07:04   #35  |  Link
FredThompson
Registered User
 
FredThompson's Avatar
 
Join Date: Feb 2002
Location: Charlotte, NC USA
Posts: 1,984
@hank315,

I've got some high-motion interlaced source which doesn't play well with any encoder but ProCoder. All other encoders yield blocky output. HC has the least blockiness. ProCoder shows no blocks. Would you be interested in some of this source? I could send you a minute or so of the original GOPs for testing along with Procoder and HC conversions.

My motivation? I want to switch to only using HC and provide you whatever support I can for your baby to be more capable.
__________________
Reclusive fart.
Collecting Military, Trains, Cooking, Woodworking, Fighting Illini, Auburn Tigers
FredThompson is offline   Reply With Quote
Old 7th November 2005, 22:08   #36  |  Link
hank315
HCenc author
 
Join Date: Nov 2003
Location: Netherlands
Posts: 570
Quote:
Would you be interested in some of this source?
Yes, just PM'ed you about it.
hank315 is offline   Reply With Quote
Old 7th November 2005, 22:59   #37  |  Link
hank315
HCenc author
 
Join Date: Nov 2003
Location: Netherlands
Posts: 570
@Sagittaire
Quote:
as you know MPEG2 use no adaptative bframe ...always IBBPBBP for low or high motion
HC uses different GOP schemes for low/high motion (autogop option):
high motion: IBPBPBPB...
normal motion: IBBPBBPBB...
(very) low motion: IBBBPBBBPBBB...

In your blind test I noticed that for the HC encoding a fixed GOP was used.
A variable GOP scheme is DVD compliant, also Mencoder and CCE do it.
Mencoder uses very short GOPs on fades, CCE uses 2 or more consecutive P frames in low action scenes.

For HC the quant variability ATM is more based on bitrate than low/high motion, but maybe some tweaks with respect to motion could raise quality.

Quote:
with that PSNR and visual quality could be very better ... ???
Will test it to see if it does, if so it will be in the next release.
hank315 is offline   Reply With Quote
Old 8th November 2005, 01:04   #38  |  Link
dragongodz
....
 
dragongodz's Avatar
 
Join Date: May 2002
Location: Australia
Posts: 2,797
Quote:
(very) low motion: IBBBPBBBPBBB...
this one is not dvd compliant though. maximum distance between reference frames is 3 for dvd ie. IBBPBBP
from http://www.mpeg2.de/doc/dvd/book_b/video.htm
Quote:
MPEG-2 MP@ML (Main Profile @ Main Level) has no restriction to the number of consequitvely coded B frames. In DVD, it is limited to no more than two B frames (M<=3, the reference frame distance).
FredThompson - if you are making that sample available for download by hank315 then can you let me know where to get it aswell ? as i would like to test and see what it does with QuEnc.
__________________
Narrator: And of course, with the birth of the artist came the inevitable afterbirth - the critic. (History of the World part 1)
dragongodz is offline   Reply With Quote
Old 8th November 2005, 01:47   #39  |  Link
hank315
HCenc author
 
Join Date: Nov 2003
Location: Netherlands
Posts: 570
@dragongodz
You're right, it's allowed for MPEG, not for DVD.
Will be fixed in the final HC016.
hank315 is offline   Reply With Quote
Old 8th November 2005, 03:45   #40  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,484
adaptative Bframe number is compliant with DVD MP@ML ... ???

IPPPBPBBPBBPPP for example ... ???

In this case quality with Mencoder could be very better ... lol

Quote:
FredThompson - if you are making that sample available for download by hank315 then can you let me know where to get it aswell ? as i would like to test and see what it does with QuEnc.
me too with mencoder ...
__________________
Le Sagittaire ... ;-)

1- Ateme AVC or x264
2- VP7 or RV10 only for anime
3- XviD, DivX or WMV9
Sagittaire is offline   Reply With Quote
Reply


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 05:06.


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