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 17th September 2018, 14:23   #1  |  Link
martynuzza
Registered User
 
Join Date: Sep 2018
Posts: 9
StaxRip how to make divx-home certified stream with xvid encraw?

I found this document that explain the limits of each profile of divx certified logo.

http://www.divx.com/files/DivX-Profiles_Tech-Specs.pdf

I want to make compliant AVI using staxrip and xvidencraw, with the best settings possible.

For example i can't understand if i respect maximum value for
Macroblocks [40 500 bps]
VBV Buffer [384 kB]
VBV Bitrate [4854 kbps]



The string in staxrip that i try to build is (for CQ encoding):

xvid_encraw -vbvsize 3145728 -vbvmax 4854000 -vbvpeak 40500 ?? -cq 2 -smoother 0 -max_key_interval 250 -vhqmode 4 -bvhq -quality 6 -qtype 0 -masking 2 -nopacked -max_bframes 1 -bquant_ratio 162 -bquant_offset 0 -threads 1 -i "%script_file%" -avi "%encoder_out_file%" -par %target_sar%

-vbvpeak is macroblocks?!
Is the right way to proceed ?!
martynuzza is offline   Reply With Quote
Old 17th September 2018, 18:52   #2  |  Link
SeeMoreDigital
Life looks better in UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,406
Wow... Out of interest, what's the make and model of your hardware player?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 17th September 2018, 19:32   #3  |  Link
martynuzza
Registered User
 
Join Date: Sep 2018
Posts: 9
Not for me. For friends and people that has old panasonic\lg or systems like integrated tv and projector with usb that can't reproduce anything else than avi-divxhome.

For now, i kept a WinXP machine for doing the job using the lastest DivX codec 6.8.5 and old staxrip, but now i upgraded to win10 and i want a more simple integrated and flawless workflow. Staxrip accomplish my needs very well but new version doesn't have vfw (so divx) anymore.

I've made some encodings for test with standard settings for xvid and try to reproduce to a "strict" projector...not work...( maybe because the FourCC..i'm not investigate further...)

Last edited by martynuzza; 17th September 2018 at 19:34.
martynuzza is offline   Reply With Quote
Old 17th September 2018, 19:55   #4  |  Link
SeeMoreDigital
Life looks better in UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,406
If you require compatibility with old gear you're probably better off generating 'SP' (Simple Profile) encodes (ie: encodes without b-frames). 'MPEG4 SP (Simple) @L5' should work okay...

If the old gear can handle 'ASP' (Advanced Simple Profile) encodes with b-frames, try generating encodes with one (not two or more consecutive) b-frames(s). And select the 'Packed bit-stream' option.
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 18th September 2018, 23:33   #5  |  Link
blob2500
Registered User
 
Join Date: Sep 2007
Location: Italy
Posts: 3
Quote:
Originally Posted by martynuzza View Post

-vbvpeak is macroblocks?!
No, isn't macroblocks.

Macroblock is video resolution dependent:

Macroblock rate [Mbs/sec] = Resolution/(macroblock dimension)*frame rate.
For Xvid/Divx Home profile (up to) 40500 mbs/sec = (720*576)/(16*16)*25 for PAL videos; (720*480)/(16*16)*30 for NTSC videos.

vbvpeak is "Max bits over any one second interval" in Xvid interface (your posted image). For Home Profile, it's "8000000" (not 40500).

I'm not sure, but vbvpeak is not very important (is for codec internal check only) and in official MPEG-4 SP/ASP profiles is absent. VBVpeak is satisfied already with others vbv parameters: Max bitrate and Buffer size of Home profile.

In Divx Profiles table in your post, matrix for Home Teather is, theoretically, h.263 only, but you can to use MPEG matrix too, "standard" (not "custom"). MPEG standard and H.263 are fully Standalone player compatible.
Note: That table I think is not fully correct: example: VBV size of HD 720p profile is not 2048 kB (this is for 1080p only); actually it is 768 kB (9708 kbps double bitrate of HT profile... so must be double size of HT vbv size too ) In Xvid interface all these values are correct for 'equivalents' DivX profiles too.

Last edited by blob2500; 19th September 2018 at 01:28. Reason: ...about macroblock/sec and matrix
blob2500 is offline   Reply With Quote
Old 19th September 2018, 13:41   #6  |  Link
martynuzza
Registered User
 
Join Date: Sep 2018
Posts: 9
ook

Now, what about...that?
-nopacked
-max_bframes 1

XviD VFW interface keep no restriction on that but should do so.

I remember that the bitstream should to be, instead, packed and with only 1 b-frame allowed at maximum.

...

I tried a sample conversion with DivX Converter with codec 6.8.5 and him makes a packed bitstream...so this should be the correct way.

Right?
martynuzza 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 05:55.


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