Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I alter my FFMPEG command to make my HTTP Live Streams more efficient?
    primarykey
    data
    text
    <p>I want to reduce the muxing overhead when creating .ts files using FFMPEG.</p> <p>Im using <a href="http://www.ffmpeg.org/" rel="noreferrer">FFMPEG</a> to create a series of <a href="http://en.wikipedia.org/wiki/MPEG_transport_stream" rel="noreferrer">transport stream</a> files used for <a href="https://developer.apple.com/library/ios/#documentation/networkinginternet/conceptual/streamingmediaguide/Introduction/Introduction.html" rel="noreferrer">HTTP live streaming</a>. </p> <pre><code>./ffmpeg -i myInputFile.ismv \ -vcodec copy \ -acodec copy \ -bsf h264_mp4toannexb \ -map 0 \ -f segment \ -segment_time 10\ -segment_list_size 999999 \ -segment_list output/myVarientPlaylist.m3u8 \ -segment_format mpegts \ output/myAudioVideoFile-%04d.ts </code></pre> <p>My input is in ismv format and contains a video and audio stream:</p> <pre><code>Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 320x240, 348 kb/s, 29.97 tbr, 10000k tbn, 59.94 tbc Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 63 kb/s </code></pre> <p>There is an issues related to <a href="http://en.wikipedia.org/wiki/Multiplexing" rel="noreferrer">muxing</a> that is causing a large amout of overhead to be added to the streams. This is how the issue was described to me for the audio:</p> <p><img src="https://i.stack.imgur.com/o0Xm4.png" alt="enter image description here"></p> <p>So for a given aac stream, the overhead will be 88% (since 200 bytes will map to 2 x 188 byte packets).</p> <p>For video, the iframe packets are quite large, so they translate nicely into .ts packets, however, the diffs can be as small as an audio packet, therefore they suffer from the same issue.</p> <p>The solution is to combine several aac packets into one larger stream before packaging them into .ts. Is this possible out of the box with FFMPEG?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload