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 7th May 2007, 20:57   #1  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,270
x264 w/ 3:2 pulldown and hrd

I put up on my sourceforge page a binary of x264 (its the 04272007 checkout w/ hrdpatch 616 applied and then i coded pulldown support over it) i will post a .patch file later (patch will only include my changes) so would be checkout + hrdpatch + pulldownpatch

its on https://sourceforge.net/projects/batchccews/ h264info package. only place i could think of to put it for now. the command line is --pulldown 32. (with the space) .. its doc'd in --longhelp . it adds tbt bt btb tb pattern, to only be used with 1080p 23.976 source. i havent tested it much tho but passes testing so far.

Newest version x264_669i_pulldown.zip (aq / mp4 / threads / hrd_pulldown compiled in cygwin)

**Note: use min-keyint 4 (or more) and do not use b-pyramid for hddvd.
__________________
...yeah...but...why on earth would I compare apples with apples?

Last edited by Trahald; 22nd September 2007 at 14:51.
Trahald is offline   Reply With Quote
Old 8th May 2007, 02:41   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,924
Thanks, Trahald! That will help me to get my decoding right by enabling me to create test streams.
Guest is offline   Reply With Quote
Old 8th May 2007, 20:39   #3  |  Link
Pitou
Registered User
 
Join Date: Nov 2002
Posts: 93
Could anyone point me to a thread or post a command example, for x264, to encode a 1080p 23.976 with pulldown, for it to be imported in Scenarist and be HD-DVD compliant ?

Thanks.

Pitou!
Pitou is offline   Reply With Quote
Old 9th May 2007, 00:59   #4  |  Link
giandrea
Registered User
 
Join Date: Sep 2004
Location: Italy
Posts: 154
Quote:
Originally Posted by Pitou View Post
Could anyone point me to a thread or post a command example, for x264, to encode a 1080p 23.976 with pulldown, for it to be imported in Scenarist and be HD-DVD compliant ?

Thanks.

Pitou!
Would you use pulldown to uprate it to 30 fps? Isn't the point of HD DVD and BR that they support the 24 fps framerate? Isn't it better to just encode it at the original framerate or isn't it supported by the standard?
giandrea is offline   Reply With Quote
Old 9th May 2007, 11:52   #5  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,410
Quote:
Originally Posted by Pitou View Post
Could anyone point me to a thread or post a command example, for x264, to encode a 1080p 23.976 with pulldown, for it to be imported in Scenarist and be HD-DVD compliant ?

Thanks.

Pitou!
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >> first pass
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
x264.exe --keyint 14 --min-keyint 1 --vbv-maxrate 28000 --vbv-init 1.0 --vbv-bufsize 14745 --mvrange 511 --level 4.1 --nal-hrd --pulldown 32 --bframe 2 --bime --weightb --ref 1 --mixed-refs --direct auto --deblock -2:-2 --bitrate 7000 --pass 1 --stats "x264_stat.log" --qcomp 0.75 --ipratio 1.10 --pbratio 1.10 --partitions "all" --8x8dct --me "hex" --subme 5 --aud --sar 1:1 --cqmfile Sagittaire.cfg --deadzone-intra 6 --deadzone-inter 6 --progress -o test_1_75.h264 Riddick.avs


@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >> second pass
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
x264.exe --keyint 14 --min-keyint 1 --vbv-maxrate 28000 --vbv-init 1.0 --vbv-bufsize 14745 --mvrange 511 --level 4.1 --nal-hrd --pulldown 32 --bframe 2 --b-rdo --bime --weightb --ref 3 --mixed-refs --direct auto --deblock -2:-2 --bitrate 7000 --pass 3 --stats "x264_stat.log" --qcomp 0.75 --ipratio 1.10 --pbratio 1.10 --partitions "all" --8x8dct --me "hex" --subme 6 --no-fast-pskip --no-dct-decimate --trellis 1 --aud --sar 1:1 --cqmfile Sagittaire.cfg --deadzone-intra 6 --deadzone-inter 6 --progress -o test_2_75.h264 Riddick.avs

Source must be 1920*1080*23.976


Quote:
Would you use pulldown to uprate it to 30 fps? Isn't the point of HD DVD and BR that they support the 24 fps framerate? Isn't it better to just encode it at the original framerate or isn't it supported by the standard?
For HDDVD NTSC you must use 1920*1080*29.97 encoding. 1080i29.970 can be 1080p23.976 progressive encoding with pulldown flag.
__________________
Le Sagittaire ... ;-)

1- Ateme AVC or x264
2- VP7 or RV10 only for anime
3- XviD, DivX or WMV9

Last edited by Sagittaire; 11th June 2007 at 09:25.
Sagittaire is offline   Reply With Quote
Old 9th May 2007, 13:49   #6  |  Link
Pitou
Registered User
 
Join Date: Nov 2002
Posts: 93
Sagittaire,

Thanks that's what I needed. This is for NTSC 1080p 23.976 source, right?

Also, x264 doesn't seem to put the end of sequence code and when importing to Scenarist, it crashes. Any idea?

Another question, what combination of graph/decoder you're using?

I tried:

file.vc1 --> Sonic HD demuxer --> Sonic video decoder 4.2

and:

file.evo (Haali media splitter) --> WMV9 Advance decoder DMO

and:

file.evo (Haali media splitter) --> ffdshow video decoder

and my avs script:

DirectShowSource("C:\HDDVD\para.grf",fps=23.976,framecount=312,audio=false)

Which one is best?

One last thing, is it possible for you to post your cqmfile Sagittaire.cfg?

Again, Thank you very much for help!

Pitou!

Last edited by Pitou; 9th May 2007 at 13:59.
Pitou is offline   Reply With Quote
Old 9th May 2007, 16:33   #7  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,270
Quote:
Originally Posted by Pitou View Post
Thanks that's what I needed. This is for NTSC 1080p 23.976 source, right?
yep
Quote:
Also, x264 doesn't seem to put the end of sequence code and when importing to Scenarist, it crashes. Any idea?
I can possibly add a sequence end code flag , although lack of sequence end code is only a warning for scenarist and should not cause it to crash.
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 9th May 2007, 16:40   #8  |  Link
Pitou
Registered User
 
Join Date: Nov 2002
Posts: 93
Yes I thought so, since you wrote h264info and the x264 pulldown patch... thanks btw!

Not sure why scenarist crash, but when encoding with "your" x264 HRD and then passing the result file through H264info to apply pulldown, Scenarist doesn't complain anymore.

So, as you wish, maybe I can reinstall scenarist or if you add the end code, I can test it...

Thanks!

Pitou!
Pitou is offline   Reply With Quote
Old 9th May 2007, 18:14   #9  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,270
can you provide me a small sample that still crashes scenarist ? are you using hte same settings as Sagittaire? i couldnt reproduce the problem
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 9th May 2007, 20:17   #10  |  Link
Pitou
Registered User
 
Join Date: Nov 2002
Posts: 93
Finally, it did import it with the warning (normal), but it didn't crash...

Maybe my encoding was bad...

I did test with the latest command line Sag just posted and it seems fine.

Thanks!

Pitou!
Pitou is offline   Reply With Quote
Old 10th May 2007, 02:52   #11  |  Link
Pitou
Registered User
 
Join Date: Nov 2002
Posts: 93
Now Scenarist complain that my video is shorter than my DD+ audio track.

The error is:
"Warning Multiplex is terminated at 00:00:12:22, but expecting end time is 00:00:12:24. Please check video data file or track "para-t".

Video=00:00:12:24
Audio=00:00:12:29

Any idea?

Pitou!
Pitou is offline   Reply With Quote
Old 10th May 2007, 06:38   #12  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,270
i think i see the issue.. should have a fix out in a day or 2
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 10th May 2007, 15:07   #13  |  Link
Pitou
Registered User
 
Join Date: Nov 2002
Posts: 93
Wow, great!

Do you think Dolby TrueHD will work as well?
Pitou is offline   Reply With Quote
Old 10th May 2007, 22:28   #14  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,270
ok.. give 616b a shot
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 11th May 2007, 15:37   #15  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,270
ok.. let me know.. if you can.. gimmie a sample i can replicate the issue with. ive tried different settings and havent been able to duplicate a crash
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 18th May 2007, 15:37   #16  |  Link
Toti
Registered User
 
Join Date: Oct 2002
Posts: 160
I am getting a mux error with Scenarist. I first encode the video at 23.976 fps then apply the pulldown with h264info and the resulting video gets accepted but when is creating the HD-DVD it give me the error.



The funny thing is that it works with small video of 1min. This one hour and thirty mins gives me the error.

I tried Alpha 007 & 006. Any suggestions?
__________________
VAIO VGX-XL3 4gig RAM, 4Tb HDD. MEDIA CENTER WINDOWS 7 simply the best!!
Toti is offline   Reply With Quote
Old 18th May 2007, 16:17   #17  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,410
You use Mainconcept/Elecard H264 stream ... ???
__________________
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 18th May 2007, 19:40   #18  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,270
if you used x264, i would make sure you use 12 frames between idrs.. using history and cinevision (which defaults to 12 frames for pulldown) .. at what clock time is your first chapter break.. also.. either way, can you make a peice available?
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 18th May 2007, 22:23   #19  |  Link
Toti
Registered User
 
Join Date: Oct 2002
Posts: 160
Yes, I am using MainConcept 2.1.0 please note that if I encode a few minutes the pulldown works. If however, I encode the complete movie then it gives me this error. The movie I was encoding is Winged Migration.
__________________
VAIO VGX-XL3 4gig RAM, 4Tb HDD. MEDIA CENTER WINDOWS 7 simply the best!!
Toti is offline   Reply With Quote
Old 19th May 2007, 09:32   #20  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,410
Quote:
Originally Posted by Toti View Post
Yes, I am using MainConcept 2.1.0 please note that if I encode a few minutes the pulldown works. If however, I encode the complete movie then it gives me this error. The movie I was encoding is Winged Migration.
H264info don't work correctly with mainconcept/elecard stream because duration for AVC stream will be not good with pulldown flag (audio/video desynchro with scenarist). You must use x264 and anything else.
__________________
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

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 00:49.


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