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 11th June 2010, 09:20   #61  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Originally Posted by mp3dom View Post
Doesn't the pulldown already flag the stream as interlaced?
No, why should?
shon3i is offline   Reply With Quote
Old 11th June 2010, 09:32   #62  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
Because it's based on field repetition. At least, with MPEG-2 a progressive stream when a pulldown is applied, becomes interlaced with RFF.
mp3dom is offline   Reply With Quote
Old 11th June 2010, 15:11   #63  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
Quote:
Originally Posted by mp3dom View Post
Because it's based on field repetition. At least, with MPEG-2 a progressive stream when a pulldown is applied, becomes interlaced with RFF.
The underlying stream is still coded progressively with soft pulldown.

Quote:
Originally Posted by shon3i View Post
EDIT: i create my own 23.976p sample, encoded using fake interlaced and puldown 32 to produce 29.97i stream, but this file will not pass mui generator.
I also tried and it seemed to pass.

Last edited by kieranrk; 12th June 2010 at 03:43.
kieranrk is offline   Reply With Quote
Old 12th June 2010, 12:20   #64  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
I also tried and it seemed to pass.
It's my mistake
shon3i is offline   Reply With Quote
Old 8th July 2010, 18:58   #65  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
just a question... for what resolutions/frame rates combinations is --pic-struct required?
Sharktooth is offline   Reply With Quote
Old 8th July 2010, 19:26   #66  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
Quote:
Originally Posted by Sharktooth View Post
just a question... for what resolutions/frame rates combinations is --pic-struct required?
Anything interlaced (that includes --fake-interlaced). It can't harm to put it on anyway though.
kieranrk is offline   Reply With Quote
Old 8th July 2010, 19:48   #67  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
Personally I always set pic-struct even for progressive contents as some verifiers complains about its absence.
mp3dom is offline   Reply With Quote
Old 8th July 2010, 19:59   #68  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Thanks. One more question. If i have a 480p24 source how can i produce a blu-ray compatible stream? i mean, should i convert the framerate to 29,976? in that case how should i set the --pulldown option?
Sharktooth is offline   Reply With Quote
Old 8th July 2010, 20:01   #69  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
you need to use pulldown with fake interlaced or interlaced
shon3i is offline   Reply With Quote
Old 8th July 2010, 20:04   #70  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
ok, so i should set something like --pulldown 32 --fake-interlaced --pic-struct ... etc.
Sharktooth is offline   Reply With Quote
Old 8th July 2010, 20:08   #71  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Originally Posted by Sharktooth View Post
ok, so i should set something like --pulldown 32 --fake-interlaced --pic-struct ... etc.
yes, but you maybe need first assume 24000/1001, because pulldown 32 on 24p source will more that 29.970fps.
shon3i is offline   Reply With Quote
Old 8th July 2010, 20:14   #72  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
the problem is more like 24fps and 23.976 fps are usually referred as 24 fps...
so that's more a user problem than mine (i asked all those questions coz im creating megui presets for BD encoding).
Sharktooth is offline   Reply With Quote
Old 22nd July 2010, 20:28   #73  |  Link
Avisynth_challenged
Registered User
 
Join Date: Dec 2007
Posts: 117
x264 command line check

Hi all,

I have a Huffyuv YV12 avi (1920x1080p @23.976fps) that I wish to encode to H.264 using x264. I'm interested in Blu-ray compliance, so looked around the forum and found this page:

http://sites.google.com/site/x264bluray/

I'm thinking of using the command line:

Code:
x264 --bitrate XXXXX --preset veryslow --tune film --weightp 0 --bframes 3 
--nal-hrd vbr --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 24 
--b-pyramid strict --slices 4 --aud --colorprim "bt709" --transfer "bt709" 
--colormatrix "bt709" --sar 1:1 --pass 1 -o out.264 input.file
I have a several questions:

1. I recall that for MPEG2 standard def encodes, a rule-of-thumb for bitrate is...
Avg: 6000 Kbps, Max: 8000 Kbps, Min: 2000 Kbps (...assuming 720x480p @23.976fps)
What rule-of-thumb bitrates are used for high-def H.264 encodes (1920x1080p @23.976fps)?

2. When encoding MPEG2 for DVD authoring, 23.976fps sources need to include pulldown flags to set the framerate to 29.97fps (soft-telecine) in NTSC-land. Does an H.264 encode need to have pulldown flags to achieve soft-telecine as well? Does the command line need to be revised to invoke pulldown?

3. MPEG2 encoders can often be configured to have the MPEG2 output be either in dropframe timecode format or non-dropframe timecode format. Does x264 have this capability available as a command line switch?

Thank you very much for your help.

Last edited by Avisynth_challenged; 22nd July 2010 at 20:54. Reason: Edited codeline for better readablity
Avisynth_challenged is offline   Reply With Quote
Old 22nd July 2010, 21:12   #74  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
1. There's no general rule for bitrate. You can go up to 40 Mbps if necessary, but you need to adhere to VBV. For 23.98p if you have a lot of space to waste, you can have an average bitrate of 35 Mbps and a max of 40 Mbps (just as example)

2. For HD sources, 23.98/24p are allowed without any soft-pulldown (this doesn't depends by h.264, but BD specs. You can have the same using MPEG2 or VC1 sources). For SD primary-video you need soft pulldown because only 50i/59.94i are allowed.
mp3dom is offline   Reply With Quote
Old 22nd July 2010, 21:23   #75  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by Avisynth_challenged View Post
I have a several questions:

1. I recall that for MPEG2 standard def encodes, a rule-of-thumb for bitrate is...
Avg: 6000 Kbps, Max: 8000 Kbps, Min: 2000 Kbps (...assuming 720x480p @23.976fps)
What rule-of-thumb bitrates are used for high-def H.264 encodes (1920x1080p @23.976fps)?
I'd rather use rule-of-thumb CRF. Generally 20 is a good value to start with. If there's a need to fit the video within limited space, derive the necessary average bitrate from the allowed file size and video length.

Quote:
2. When encoding MPEG2 for DVD authoring, 23.976fps sources need to include pulldown flags to set the framerate to 29.97fps (soft-telecine) in NTSC-land. Does an H.264 encode need to have pulldown flags to achieve soft-telecine as well?
Blu-ray supports straight 24000/1001 fps 1080p video without pulldown flags.

Quote:
3. MPEG2 encoders can often be configured to have the MPEG2 output be either in dropframe timecode format or non-dropframe timecode format. Does x264 have this capability available as a command line switch?
Drop frame timecodes are an NTSC nuisance, not HD.
nm is offline   Reply With Quote
Old 24th July 2010, 05:39   #76  |  Link
video_magic
Registered User
 
Join Date: Jan 2005
Posts: 368
Quote:
Originally Posted by Avisynth_challenged View Post
....
1. I recall that for MPEG2 standard def encodes, a rule-of-thumb for bitrate is...
Avg: 6000 Kbps, Max: 8000 Kbps, Min: 2000 Kbps (...assuming 720x480p @23.976fps)
What rule-of-thumb bitrates are used for high-def H.264 encodes (1920x1080p @23.976fps)?
....
Select a range of say, 1500 frames, from your source video (i.e. by using the trim command from avisynth in your .avs script), to use as a test to choose your bitrate but so you don't have to spend the time doing your entire video repeatedly until you find the bitrate (and other settings you might tweak and test); try and select the range from a fairly typical or even quite challenging part of your video.

I suggest for 1920x1080p , 23.976fps you try 7000 bitrate, and also do another encode at 10000 (both with exactly the same settings). Compare them with each other and with the source. Try increments of 2000 after that; but in addition to bitrate of course you could consider any other x264 settings or what you might have going on processing-wise before x264 encodes it.
__________________
Thankyou!, I am grateful for any help
video_magic is offline   Reply With Quote
Old 6th August 2010, 23:49   #77  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
According to the first post in this thread the SAR for 720x576 resolution should be 16:11. My standalone (SONY 360) plays it back at 64:45 however, i.e. a picture with a SAR of 16:11 and flagged as 16:11 in the stream is slighly sqeezed on playback.
It's not a big issue, but has anyone seen a Blu-Ray standalone player which really obeys the SAR as signalled in the stream?
Sharc is offline   Reply With Quote
Old 7th August 2010, 02:48   #78  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
Quote:
Originally Posted by Sharc View Post
According to the first post in this thread the SAR for 720x576 resolution should be 16:11. My standalone (SONY 360) plays it back at 64:45 however, i.e. a picture with a SAR of 16:11 and flagged as 16:11 in the stream is slighly sqeezed on playback.
It's not a big issue, but has anyone seen a Blu-Ray standalone player which really obeys the SAR as signalled in the stream?
There is an aspect ratio flag in the HDMV extensions of the TS container that might be set wrong.
kieranrk is offline   Reply With Quote
Old 7th August 2010, 09:21   #79  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by kieranrk View Post
There is an aspect ratio flag in the HDMV extensions of the TS container that might be set wrong.
Ah, the container. How can I check if this flag is set? Can tsMuxer set this flag? I didn't find an option.
Sharc is offline   Reply With Quote
Old 31st August 2010, 20:36   #80  |  Link
A.Fenderson
Registered User
 
Join Date: Mar 2009
Posts: 230
I see --mvrange 511 set on a lot of blu-ray profiles: is this strictly necessary, or does it just seem to improve compatibility on some players?
A.Fenderson 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 16:21.


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