{"id":3883,"date":"2014-03-30T06:10:49","date_gmt":"2014-03-30T06:10:49","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-mpeg2-ts-collection-of-common-programming-errors\/"},"modified":"2014-03-30T06:10:49","modified_gmt":"2014-03-30T06:10:49","slug":"problem-about-mpeg2-ts-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-mpeg2-ts-collection-of-common-programming-errors\/","title":{"rendered":"problem about mpeg2-ts-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fe26819682bbc8ad3de3eb8498b16230?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChristian P.<br \/>\nc h.264 libav mpeg2-ts<br \/>\nI have written some C code that takes an mp4 file with h264-encoded video and AAC-encoded audio and writes it to segmented .ts files.The code can be seen here: http:\/\/pastebin.com\/JVdgjM9GThe problem is that the code chokes on audio packets. Because I am converting from h264, I have to use the &#8220;h264_mp4toannexb&#8221; which I finally got working for video frames. However, as soon as the program reaches the first audio packet (stream 1 below) it crashes.Sample output:Output #0, mpegts, to &#8216;testvideo&#8217;:S<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/620c409a3b4c5935a3baf81b19153fdd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2401229<br \/>\nandroid mpeg2-ts<br \/>\nI&#8217;m using an Android application (On Android 4.1.2) which get a ts stream in input but i have only the audio and don&#8217;t have the video. I think it is due to this message: avc_utils( 1040): found AVC codec config (480 x 270, Baseline-profile level 2.1) OMXNodeInstance( 1040): OMX_GetExtensionIndex failedW\/ ( 2591): Warning message AMessage(what = &#8216;omx &#8216;, target = 5) = {W\/ ( 2591): int32_t type = 0W\/ ( 2591): void *node = 0x1W\/ ( 2591): int32_t event = 3W\/ (<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Christian P. c h.264 libav mpeg2-ts I have written some C code that takes an mp4 file with h264-encoded video and AAC-encoded audio and writes it to segmented .ts files.The code can be seen here: http:\/\/pastebin.com\/JVdgjM9GThe problem is that the code chokes on audio packets. Because I am converting from h264, I have to use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3883","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3883"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3883\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}