{"id":5213,"date":"2014-03-30T19:45:42","date_gmt":"2014-03-30T19:45:42","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ffmpeg-muxing-overhead-after-900-seconds-h264-acc-from-axis-camera-to-flv-rtmp-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:45:42","modified_gmt":"2014-03-30T19:45:42","slug":"ffmpeg-muxing-overhead-after-900-seconds-h264-acc-from-axis-camera-to-flv-rtmp-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ffmpeg-muxing-overhead-after-900-seconds-h264-acc-from-axis-camera-to-flv-rtmp-collection-of-common-programming-errors\/","title":{"rendered":"FFmpeg MUXING OVERHEAD after 900 seconds h264 &amp; ACC (from Axis Camera) to flv rtmp-Collection of common programming errors"},"content":{"rendered":"<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e7d727e11abb6f5c4bb6d15be45d4267?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2672844<\/p>\n<p><strong>Audio and Video works for 900 seconds and then ,muxing Overhead!!!<\/strong><\/p>\n<pre><code>video:1889kB audio:1825kB global headers:0kB muxing overhead 2.162866%\n<\/code><\/pre>\n<p><strong>AXIS IP CAM -&gt; ffmpeg -&gt; nginx<\/strong><\/p>\n<pre><code>ffmpeg -v verbose -i rtsp:\/\/root:pass@192.168.0.106\/axis-media\/media.amp -itsoffset 00:00:05 -acodec copy -ac 1 -ab 64k -ar 16000 -f flv -r 5 -qscale 1 -b 128kB rtmp:\/\/192.168.0.107\/myapp\/test\n<\/code><\/pre>\n<p>I test many Commands with this one , i have the best resoults !!<\/p>\n<p><strong>Console Output after start the Command:<\/strong><\/p>\n<pre><code>    ffmpeg -v verbose -i rtsp:\/\/root:pass@192.168.0.106\/axis-media\/media.amp -itsoffset 00:00:05 -acodec copy -ac 1 -ab 64k -ar 16000 -f flv -r 5 -qscale 1 -b 128kB rtmp:\/\/192.168.0.107\/myapp\/test \nffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers\n  built on Mar 30 2013 22:20:06 with gcc 4.7.2\n  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.6-1ubuntu2' --libdir=\/usr\/lib\/x86_64-linux-gnu --prefix=\/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=\/usr\/lib\/x86_64-linux-gnu --enable-shared --disable-static\n  libavutil    51. 22. 1 \/ 51. 22. 1\n  libavcodec   53. 35. 0 \/ 53. 35. 0\n  libavformat  53. 21. 1 \/ 53. 21. 1\n  libavdevice  53.  2. 0 \/ 53.  2. 0\n  libavfilter   2. 15. 0 \/  2. 15. 0\n  libswscale    2.  1. 0 \/  2.  1. 0\n  libpostproc  52.  0. 0 \/ 52.  0. 0\n*** THIS PROGRAM IS DEPRECATED ***\nThis program is only provided for compatibility and will be removed in a future release. Please use avconv instead.\n[rtsp @ 0x63fb20] SDP:\nv=0\no=- 1376246125522976 1376246125522976 IN IP4 192.168.0.106\ns=Media Presentation\ne=NONE\nb=AS:50064\nt=0 0\na=control:*\na=range:npt=0.000000-\nm=video 0 RTP\/AVP 96\nc=IN IP4 0.0.0.0\nb=AS:50000\na=framerate:5.0\na=transform:-1,0,0;0,-1,0;0,0,1\na=control:trackID=1\na=rtpmap:96 H264\/90000\na=fmtp:96 packetization-mode=1; profile-level-id=4D0029; sprop-parameter-sets=Z00AKeKQKD9gLcBAQGkHiRFQ,aO48gA==\nm=audio 0 RTP\/AVP 97\nc=IN IP4 0.0.0.0\nb=AS:64\na=control:trackID=2\na=rtpmap:97 mpeg4-generic\/16000\/1\na=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1408; sizeLength=13; indexLength=3; indexDeltaLength=3; profile=1; bitrate=64000;\n\n[rtsp @ 0x63fb20] Estimating duration from bitrate, this may be inaccurate\n\nSeems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000\/1) -&gt; 90000.00 (180000\/2)\nInput #0, rtsp, from 'rtsp:\/\/root:pass@192.168.0.106\/axis-media\/media.amp':\n  Metadata:\n    title           : Media Presentation\n  Duration: N\/A, start: 0.062063, bitrate: N\/A\n    Stream #0.0: Video: h264 (Main), yuvj420p, 320x240 [PAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 180k tbc\n    Stream #0.1: Audio: aac, 16000 Hz, mono, s16\nIncompatible pixel format 'yuvj420p' for codec 'flv', auto-selecting format 'yuv420p'\n[buffer @ 0x641aa0] w:320 h:240 pixfmt:yuvj420p\n[avsink @ 0x6512a0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'\n[scale @ 0x645540] w:320 h:240 fmt:yuvj420p -&gt; w:320 h:240 fmt:yuv420p flags:0x4\nOutput #0, flv, to 'rtmp:\/\/192.168.0.107\/myapp\/test':\n  Metadata:\n    title           : Media Presentation\n    encoder         : Lavf53.21.1\n    Stream #0.0: Video: flv, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 1024 kb\/s, 1k tbn, 5 tbc\n    Stream #0.1: Audio: aac, 16000 Hz, mono\nStream mapping:\n  Stream #0.0 -&gt; #0.0\n  Stream #0.1 -&gt; #0.1\nPress ctrl-c to stop encoding\nframe= 1185 fps=  5 q=1.0 Lsize=    3794kB time=236.80 bitrate= 131.2kbits\/s    \nvideo:1889kB audio:1825kB global headers:0kB muxing overhead 2.162866%\n<\/code><\/pre>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>user2672844 Audio and Video works for 900 seconds and then ,muxing Overhead!!! video:1889kB audio:1825kB global headers:0kB muxing overhead 2.162866% AXIS IP CAM -&gt; ffmpeg -&gt; nginx ffmpeg -v verbose -i rtsp:\/\/root:pass@192.168.0.106\/axis-media\/media.amp -itsoffset 00:00:05 -acodec copy -ac 1 -ab 64k -ar 16000 -f flv -r 5 -qscale 1 -b 128kB rtmp:\/\/192.168.0.107\/myapp\/test I test many Commands with [&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-5213","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5213","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=5213"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5213\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}