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 15th May 2013, 19:16   #1  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,112
Encoding with --frame-packing 3 and slices?

I've got some interesting 3D content lying around and thought I'd take a whack and encoding and playing it. I had encoded a bunch of stereo 3D with Expression Encoder for the Silverlight stereo 3D player several years ago, but I've never done it with x264.

First question: does --frame-packing 3 only set a metadata flag, or does it have some impact on the encoding process itself?

It occurs to me that it may be preference to encode each eye's image as an individual slice, to reduce the risk of prediction crossing the frame border and causing some weirdness around the edge. Also, a decoder could then decode left/right in parallel.

To that end, is there any way in x264 to specify the shape of the slices? I presume setting --slices 2 would give me a top/bottom split as long as the frame height is mod32. But how about a left/right split? I see lots of options to control slice size etcetera, but none that seem to apply to location.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 15th May 2013, 20:35   #2  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,667
Slices consist of consecutive macroblocks; they cannot be "split left-right" because that's not how H.264 works.*


*FMO would allow this, but it's only in Baseline and nothing, literally nothing, supports it.
Dark Shikari is offline   Reply With Quote
Old 15th May 2013, 20:43   #3  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,112
Quote:
Originally Posted by Dark Shikari View Post
Slices consist of consecutive macroblocks; they cannot be "split left-right" because that's not how H.264 works.*

*FMO would allow this, but it's only in Baseline and nothing, literally nothing, supports it.
I must have been recollecting FMO.

I suppose this would be a slight pro for top/bottom encoding over left/right. However, consumer 3D display technologies tend to reduce horizontal detail a lot more than vertical detail, so it probably wouldn't be worth it.

Anyway, are there any actual encoding changes caused by encoding with --frame-packing, or does it just set a metadata flag?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 15th May 2013, 21:08   #4  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,667
Except for --frame-packing 5, it's just metadata.
Dark Shikari is offline   Reply With Quote
Old 15th May 2013, 21:23   #5  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,112
Quote:
Originally Posted by Dark Shikari View Post
Except for --frame-packing 5, it's just metadata.
Okay, thanks. That's what I figured. As long as I stick to mod32 width (so that the eye boundary is also between macroblocks) I imagine it'll encode fine. That worked for VC-1 stereo 3D.

Anyone know offhand of devices that will honor that bitstream flag and "do the right thing" when attached to a 3D display?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 9th July 2014, 07:34   #6  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
The Sony Bravia W8 series and the PlayStation 3 can play --frame-packing 5 from USB storage in 3D (see here),
I haven't tested frame-packing 3.
tal.aloni is offline   Reply With Quote
Reply

Tags
frame-packing, slices, stereo 3d, stereoscopic

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 09:14.


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