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 18th December 2010, 19:42   #41  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by nm View Post
No. You can go up to lossless (CRF 0) if necessary. But CRF 18 is already visually transparent in most cases, and realtime decoding will get increasingly difficult when you raise the bitrate. Or is that not a concern for you?



You mean level, not profile. Higher levels allow higher bitrates and more reference frames at high resolutions. See: http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels
You're right. crf 0 is unplayable on my Q8400.

Would you know where I could find out more about the --frame-packing option?

Many thanks.
mariner is offline   Reply With Quote
Old 19th December 2010, 01:04   #42  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by mariner View Post
Would you know where I could find out more about the --frame-packing option?
In the command-line help (x264 --fullhelp), in the source code, and by asking here. What do you want to know?
nm is offline   Reply With Quote
Old 19th December 2010, 01:46   #43  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
mariner, give it a go with MeGui 0.3.5.0: just select x264 BluRay preset and select film, it's gonna give you this:

Code:
program --tune film --crf 20 --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-bufsize 30000 --vbv-maxrate 40000 --weightp 0 --colorprim "bt709" 
--transfer "bt709" --colormatrix "bt709" --output "output" "input"
Quote:
Originally Posted by mariner View Post
Would you know where I could find out more about the --frame-packing option?
What do you mean with frame packing?

If you mean real frame packing 1080+45+1080, you will need a MVC encoder.

Last edited by rica; 19th December 2010 at 02:11.
rica is offline   Reply With Quote
Old 19th December 2010, 02:37   #44  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Greetings rica. Thanks for the reply.

Quote:
Originally Posted by rica View Post
mariner, give it a go with MeGui 0.3.5.0: just select x264 BluRay preset and select film, it's gonna give you this:

Code:
program --tune film --crf 20 --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-bufsize 30000 --vbv-maxrate 40000 --weightp 0 --colorprim "bt709" 
--transfer "bt709" --colormatrix "bt709" --output "output" "input"
No need for --frame-packing 3 ?

Quote:
Originally Posted by rica View Post
What do you mean with frame packing?

If you mean real frame packing 1080+45+1080, you will need a MVC encoder.
The setting I used was

Code:
x264 --frame-packing 3 -o 700.mkv 3d700.avs
I would like to know what --frame-packing 3 does and what other numbers apart from 3 it can take.

Best regards
mariner is offline   Reply With Quote
Old 19th December 2010, 02:46   #45  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Quote:
Originally Posted by mariner View Post
I would like to know what --frame-packing 3 does and what other numbers apart from 3 it can take.
Me too.
What is "frame packing 3"?
I don't know what it is and what it's for?

Last edited by rica; 19th December 2010 at 02:48.
rica is offline   Reply With Quote
Old 19th December 2010, 02:53   #46  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Hold on.
I wanna share my trial results not now but tomorrow.
What i need now is just to go to sleep._00.4 AM here btw
rica is offline   Reply With Quote
Old 19th December 2010, 03:07   #47  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by rica View Post
What i need now is just to go to sleep._00.4 AM here btw
Oh dear!

Let's wait for nm or sneaker_ger to give some guidance.
mariner is offline   Reply With Quote
Old 19th December 2010, 14:46   #48  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by rica View Post
mariner, give it a go with MeGui 0.3.5.0: just select x264 BluRay preset
Blu-ray presets are not suitable for Mariner's work. He's encoding 3840x1080 video at 60 fps and very high bitrates, so overall that goes way over Blu-ray limits.

Quote:
Originally Posted by rica
What do you mean with frame packing?
That's what this thread has been about since post #7. A bit off topic, yes, since this isn't MVC. Maybe a mod would like to split the discussion?

Quote:
Originally Posted by mariner
I would like to know what --frame-packing 3 does and what other numbers apart from 3 it can take.
As I said, see x264 --fullhelp:
Code:
      --frame-packing <integer> For stereoscopic videos define frame arrangement
                                  - 0: checkerboard - pixels are alternatively from L and R
                                  - 1: column alternation - L and R are interlaced by column
                                  - 2: row alternation - L and R are interlaced by row
                                  - 3: side by side - L is on the left, R on the right
                                  - 4: top bottom - L is on top, R on bottom
                                  - 5: frame alternation - one view per frame
nm is offline   Reply With Quote
Old 19th December 2010, 15:04   #49  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by nm View Post
As I said, see x264 --fullhelp:
Code:
      --frame-packing <integer> For stereoscopic videos define frame arrangement
                                  - 0: checkerboard - pixels are alternatively from L and R
                                  - 1: column alternation - L and R are interlaced by column
                                  - 2: row alternation - L and R are interlaced by row
                                  - 3: side by side - L is on the left, R on the right
                                  - 4: top bottom - L is on top, R on bottom
                                  - 5: frame alternation - one view per frame
Many thanks, nm. Couldn't find anything typing x264 --help. My bad.

By the way, I encoded a 1920x2160 top/bottom using --frame-packing 3 by mistake. Seems to work fine though. Any reason?

Last edited by mariner; 19th December 2010 at 15:06.
mariner is offline   Reply With Quote
Old 19th December 2010, 15:23   #50  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Why 60 fps?

Here is what i get with MeGui preset:

Left-Right:




Top-Bottom:




I used Adam Stanislav's tool:

http://www.pantarheon.org/AviSynth3DToolbox/



_ _ _ _ _ _

_ _ _ _ _

Last edited by rica; 19th December 2010 at 15:35.
rica is offline   Reply With Quote
Old 19th December 2010, 15:43   #51  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by mariner View Post
By the way, I encoded a 1920x2160 top/bottom using --frame-packing 3 by mistake. Seems to work fine though. Any reason?
Maybe your decoder or player ignores the --frame-packing SEI and uses some frame size heuristics. Which decoder and player are you using?

Quote:
Originally Posted by rica
Why 60 fps?
Why not if that's what he has?

Btw, do you have some specific hardware player that supports side-by-side 3D with frame sizes above 1920x1080, or why are you using Blu-ray presets for the encodes? I don't think they'll be 3D Blu-ray compatible, afterall, or have you read the specs?

Last edited by nm; 19th December 2010 at 16:16.
nm is offline   Reply With Quote
Old 19th December 2010, 15:56   #52  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by nm View Post
Maybe your decoder or player ignores the --frame-packing SEI and uses some frame size heuristics. Which decoder and player are you using?
MPC with CoreAVC/DiVAC.

Name: 700_v17.mkv
Size: 112.13MB
Description: 1920x2160/60p 3D Top/Bottom
http://www.sendspace.com/file/x0fr5l

This is the file properties:

Code:
General
Complete name                    : D:\3D\700_v17.mkv
Format                           : Matroska
File size                        : 112 MiB
Duration                         : 13s 981ms
Overall bit rate                 : 67.3 Mbps
Writing application              : x264 r1834 a51816a
Writing library                  : Haali Matroska Writer b0

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L5.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 13s 981ms
Bit rate                         : 65.9 Mbps
Width                            : 1 920 pixels
Height                           : 2 160 pixels
Display aspect ratio             : 0.889
Frame rate                       : 59.940 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.265
Stream size                      : 110 MiB (98%)
Writing library                  : x264 core 112 r1834 a51816a
Encoding settings                : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=17.0 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                         : English

Last edited by mariner; 19th December 2010 at 15:59.
mariner is offline   Reply With Quote
Old 19th December 2010, 16:11   #53  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by mariner View Post
MPC with CoreAVC/DiVAC.
They certainly won't use the frame packing SEI for anything. How are you then displaying the video in stereo?
nm is offline   Reply With Quote
Old 19th December 2010, 16:16   #54  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by nm View Post
They certainly won't use the frame packing SEI for anything. How are you then displaying the video in stereo?
Using polarised dual-projector setup championed by BlackShark.
mariner is offline   Reply With Quote
Old 19th December 2010, 16:18   #55  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by mariner View Post
Using polarised dual-projector setup championed by BlackShark.
So how do you get the frames to right screens? Does that somehow happen automagically for both side-by-side and top-bottom videos when you play them in MPC?
nm is offline   Reply With Quote
Old 19th December 2010, 16:18   #56  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Quote:
Originally Posted by nm View Post
Btw, do you have some specific hardware player that supports side-by-side 3D with frame sizes above 1920x1080, or why are you using Blu-ray presets for the encodes? They won't really be Blu-ray compatible, afterall.
I know none of them is BD compatible; some trials for archiving purposes.

I can watch them in 3D mode with -only TMT5 over my nVidia 430 and Acer 5360 PJ.

But i can get 1920*1080 3D files as well: (Both TMT 5 and PDVD 10 plays them flawlessly in 3D mode:

LEFT-RIGHT:

Code:
LoadPlugin("C:\DG\DGDecodeNV.dll")

lv = DGSource("C:\H264StereoSource_a2\left.dgi")

rv = DGSource("C:\H264StereoSource_a2\right_new.dgi")

LeftRight3DReduced(lv, rv)

ConvertToYV12()
or without DGNV Tools:

Code:
lv = FFVideoSource("C:\H264StereoSource_a2\left.m2ts")

rv = FFVideoSource("C:\H264StereoSource_a2\right_new.m2ts")

LeftRight3DReduced(lv, rv)

ConvertToYV12()
or:

Code:
lv = directshowsource("C:\H264StereoSource_a2\left.m2ts")

rv = directshowsource("C:\H264StereoSource_a2\right_new.m2ts")

LeftRight3DReduced(lv, rv)

ConvertToYV12()
TOP-BOTTOM:

Code:
LoadPlugin("C:\DG\DGDecodeNV.dll")

lv = DGSource("C:\H264StereoSource_a2\left.dgi")

rv = DGSource("C:\H264StereoSource_a2\right_new.dgi")

TopDown3DReduced(lv, rv)

ConvertToYV12()

Last edited by rica; 19th December 2010 at 23:45.
rica is offline   Reply With Quote
Old 19th December 2010, 16:22   #57  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by rica View Post
But i can get BD compatible files as well: (Both TMT 5 and PDVD 10 plays them flawlessly in 3D mode
Nice. So they support the SEI signaling or how do you specify which format is used?
nm is offline   Reply With Quote
Old 19th December 2010, 16:32   #58  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by nm View Post
So how do you get the frames to right screens? Does that somehow happen automagically for both side-by-side and top-bottom videos when you play them in MPC?
It's actually quite crude and simple: create a 1920x2160 desktop using say ATI's Eyefinity software with two 1920x1080 projectors hooked up. Each projector will display the top or bottom half of the video.
mariner is offline   Reply With Quote
Old 19th December 2010, 16:35   #59  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Quote:
Originally Posted by nm View Post
Nice. So they support the SEI signaling or how do you specify which format is used?
I encoded them into mkv container and i have to select "left-right" or "top-bottom" on player's 3D Settings window before playing.
rica is offline   Reply With Quote
Old 19th December 2010, 16:37   #60  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by mariner View Post
It's actually quite crude and simple: create a 1920x2160 desktop using say ATI's Eyefinity software with two 1920x1080 projectors hooked up. Each projector will display the top or bottom half of the video.
Yep, that's what I thought. So you'll need to manually switch the desktop layout if you have videos with different frame packing formats.
nm is offline   Reply With Quote
Reply

Tags
stereo-3d, stereoscopic, useless

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 17:59.


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