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 30th July 2008, 15:07   #1  |  Link
elguaxo
Registered User
 
elguaxo's Avatar
 
Join Date: Jun 2006
Posts: 260
x264's SAR or MKV's DAR?

If I encode with x264 to MKV and use a custom SAR is it really stored in the AVC stream or is MKV's DAR used instead?

I did an anamorphic encode via MeGUI which resulted in a weird AR (it's a documented bug of the MeGUI version I'm currently using). I wanted to fix it via MKVToolnix remuxing and setting the correct DAR. Then I thought something weird might happen if the stream has one SAR and the container is specifying a different AR via DAR. But if I extract the rawstream out of the MKV with weird AR and open it via DGAVCIndex I get: SAR: Unspecified. So I wonder if the AR was stored just at the container level.
elguaxo is offline   Reply With Quote
Old 30th July 2008, 15:17   #2  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
in the avc stream.
mkvmerge removes the AR from the stream and places it into the container.
Sharktooth is offline   Reply With Quote
Old 30th July 2008, 15:20   #3  |  Link
martino
masktools2 (ab)user
 
martino's Avatar
 
Join Date: Oct 2006
Location: PAL-I :(
Posts: 235
Does it really remove it? I was in the through that it is kept, so even after doing AVC (w/ --sar) -> MKV/MP4 -> AVC -> MKV/MP4 the correct AR would be still kept since it's present in the AVC stream... Or is my memory going bad. :/
martino is offline   Reply With Quote
Old 30th July 2008, 15:21   #4  |  Link
elguaxo
Registered User
 
elguaxo's Avatar
 
Join Date: Jun 2006
Posts: 260
Quote:
Originally Posted by Sharktooth View Post
mkvmerge removes the AR from the stream and places it into the container.
that solves the mystery! thanks.
elguaxo is offline   Reply With Quote
Old 30th July 2008, 15:32   #5  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
or you can use the --engage keep_bitstream_ar_info in mkvmerge

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 30th July 2008, 15:35   #6  |  Link
elguaxo
Registered User
 
elguaxo's Avatar
 
Join Date: Jun 2006
Posts: 260
good to know. thanks buzzqw!
elguaxo is offline   Reply With Quote
Old 30th July 2008, 15:42   #7  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Quote:
Originally Posted by martino View Post
Does it really remove it? I was in the through that it is kept, so even after doing AVC (w/ --sar) -> MKV/MP4 -> AVC -> MKV/MP4 the correct AR would be still kept since it's present in the AVC stream... Or is my memory going bad. :/
it removes the AR from the bitstream and places it in the container, how many times i have to repeat that?
you can do as buzzqw sugested to change the default behaviour
Sharktooth is offline   Reply With Quote
Old 30th July 2008, 15:50   #8  |  Link
martino
masktools2 (ab)user
 
martino's Avatar
 
Join Date: Oct 2006
Location: PAL-I :(
Posts: 235
Quote:
Originally Posted by Sharktooth View Post
it removes the AR from the bitstream and places it in the container, how many times i have to repeat that?
Ugh calm down... I was merely saying something, nothing more... :V
martino is offline   Reply With Quote
Old 30th July 2008, 15:53   #9  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
k, np. sorry. however search before posting. that info is already available in other threads too.
Sharktooth is offline   Reply With Quote
Old 31st July 2008, 00:34   #10  |  Link
Brother John
(schein)heilig
 
Brother John's Avatar
 
Join Date: Jun 2003
Location: Germany
Posts: 512
The removal doesn’t happen for all input types, though, as mosu explained some time ago in the German forum. I’m sure about raw AVC input and I think it was MP4 as well, but not other formats.
__________________
Brother John

When lost in BeSweet's options, have a look at the Commandline Reference.
DVD nach MPEG-4 klappt nicht? Verzweifelt? Auf zum Encodingwissen!
Brother John is offline   Reply With Quote
Reply

Tags
dar, mkv, sar, x264

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:13.


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