How to build Codec Private Data for H.264 stream using x264 encoder?
Kho Yee Choy <[email protected]> Thu, 15 Mar 2018 00:06:47 +0900
| Newsgroups | gmane.comp.multimedia.matroska.devel |
|---|---|
| Message-ID | <CADXRJ_vySPkhqX6eJuYu1JHqY_etojTwdCLbSHd1wWG=U0Wz=Q@mail.gmail.com> |
--===============0841339797910478726== Content-Type: multipart/alternative; boundary="001a114ab6f65bdb85056760b943" --001a114ab6f65bdb85056760b943 Content-Type: text/plain; charset="UTF-8" Hi, I am using x264 encoder to encode raw images into H.264 video stream based on the following sample code: https://github.com/jesselegg/x264/blob/master/example.c I would like to get Codec Private Data to be used with mkv container, what is the correct way of extracting information from x264 encoder? I found the following post about the data structure of Codec Private Data but am lost relating this to what I can get from the x264 encoder. https://lists.matroska.org/pipermail/matroska-devel/2012-April/004196.html Please advise. Thanks. -- Choy Kho Yee Are you debugging your life? --001a114ab6f65bdb85056760b943 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>I am using x264 encoder to encode r= aw images into H.264 video stream based on the following sample code:</div>= <div><a href=3D"https://github.com/jesselegg/x264/blob/master/example.c">ht= tps://github.com/jesselegg/x264/blob/master/example.c</a><br></div><div><br= ></div><div>I would like to get Codec Private Data to be used with mkv cont= ainer, what is the correct way of extracting information from x264 encoder?= </div><div><br></div><div>I found the following post about the data structu= re of Codec Private Data but am lost relating this to what I can get from t= he x264 encoder.</div><div><a href=3D"https://lists.matroska.org/pipermail/= matroska-devel/2012-April/004196.html">https://lists.matroska.org/pipermail= /matroska-devel/2012-April/004196.html</a></div><div><br></div><div>Please = advise.<br clear=3D"all"><div><br></div><div>Thanks.</div><div><br></div>--= <br><div class=3D"gmail_signature">Choy Kho Yee<br><br>Are you debugging y= our life?</div> </div></div> --001a114ab6f65bdb85056760b943-- --===============0841339797910478726== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWF0cm9za2Et ZGV2ZWwgbWFpbGluZyBsaXN0Ck1hdHJvc2thLWRldmVsQGxpc3RzLm1hdHJvc2thLm9yZwpodHRw czovL2xpc3RzLm1hdHJvc2thLm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWF0cm9za2Et ZGV2ZWwKUmVhZCBNYXRyb3NrYS1EZXZlbCBvbiBHTWFuZTogaHR0cDovL2Rpci5nbWFuZS5vcmcv Z21hbmUuY29tcC5tdWx0aW1lZGlhLm1hdHJvc2thLmRldmVs --===============0841339797910478726==--