<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v7.0.2-29470">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>AW: [Libav-user] how to handle missing pts values to keep audio sync (mpegts->mp4)</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Hello</p><p> </p><p>I have tested a newer Version of the application ffmpeg.</p><p> </p><p>Now it is in sync! But not fix my problem. I need sync with my application.</p><p> </p><p>Now I have to take a look what i did different then the application ffmpeg.</p><p>Update the ffmpeg libs for my application will be the next step.</p><p> </p><p>Regards</p><p>Patrick</p><p> </p><p> </p><p>/tmp/ffmpeg -i  ~/Videos/defekte_streams/asyncron_1.ts   test.mp4<br />ffmpeg version N-54234-gef90639 Copyright (c) 2000-2013 the FFmpeg developers<br />  built on Jun 28 2013 05:26:06 with gcc 4.6 (Debian 4.6.3-1)<br />  configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx<br />  libavutil      52. 37.101 / 52. 37.101<br />  libavcodec     55. 17.100 / 55. 17.100<br />  libavformat    55. 10.100 / 55. 10.100<br />  libavdevice    55.  2.100 / 55.  2.100<br />  libavfilter     3. 77.101 /  3. 77.101<br />  libswscale      2.  3.100 /  2.  3.100<br />  libswresample   0. 17.102 /  0. 17.102<br />  libpostproc    52.  3.100 / 52.  3.100<br />[mp3 @ 0x323e980] Header missing<br />[mpegts @ 0x3239ec0] Could not find codec parameters for stream 3 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec<br />Consider increasing the value for the 'analyzeduration' and 'probesize' options<br />[mpegts @ 0x3239ec0] Could not find codec parameters for stream 4 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec<br />Consider increasing the value for the 'analyzeduration' and 'probesize' options<br />[NULL @ 0x323ff00] start time is not set in estimate_timings_from_pts<br />[NULL @ 0x3240940] start time is not set in estimate_timings_from_pts<br />[mpegts @ 0x3239ec0] PES packet size mismatch<br />Input #0, mpegts, from '/home/patrick/Videos/defekte_streams/asyncron_1.ts':<br />  Duration: 00:03:53.70, start: 94926.112233, bitrate: 3423 kb/s<br />  Program 130 <br />    Stream #0:0[0x1411]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc<br />    Stream #0:1[0x1412](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s<br />    Stream #0:2[0x1414](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)<br />    Stream #0:3[0x87c]: Unknown: none ([11][0][0][0] / 0x000B)<br />    Stream #0:4[0xa6e]: Unknown: none ([5][0][0][0] / 0x0005)<br />File 'test.mp4' already exists. Overwrite ? [y/N] y<br />[libx264 @ 0x325c920] using SAR=16/11<br />[libx264 @ 0x325c920] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2<br />[libx264 @ 0x325c920] profile High, level 3.0<br />[libx264 @ 0x325c920] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00<br />Output #0, mp4, to 'test.mp4':<br />  Metadata:<br />    encoder         : Lavf55.10.100<br />    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 704x576 [SAR 16:11 DAR 16:9], q=-1--1, 12800 tbn, 25 tbc<br />    Stream #0:1(deu): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s<br />Stream mapping:<br />  Stream #0:0 -> #0:0 (mpeg2video -> libx264)<br />  Stream #0:1 -> #0:1 (mp2 -> libvo_aacenc)<br />Press [q] to stop, [?] for help<br />[mp2 @ 0x323e980] Header missing<br />Error while decoding stream #0:1: Invalid data found when processing input<br />skipped MB in I frame at 25 32e=    1350kB time=00:00:15.58 bitrate= 709.6kbits/s dup=22 drop=0    <br />[mpeg2video @ 0x323df40] skipped MB in I frame at 1 33<br />[mpeg2video @ 0x323df40] ac-tex damaged at 0 34<br />[mpeg2video @ 0x323df40] ac-tex damaged at 0 35<br />[mpeg2video @ 0x323df40] Warning MVs not available<br />[mpeg2video @ 0x323df40] concealing 176 DC, 176 AC, 176 MV errors in I frame<br />[mp2 @ 0x323e980] Header missing<br />Error while decoding stream #0:1: Invalid data found when processing input<br />PES packet size mismatch.0 size=   39788kB time=00:03:51.63 bitrate=1407.2kbits/s dup=89 drop=0    <br />[mpeg2video @ 0x323df40] ac-tex damaged at 36 13<br />[mpeg2video @ 0x323df40] Warning MVs not available<br />[mpeg2video @ 0x323df40] concealing 1012 DC, 1012 AC, 1012 MV errors in B frame<br />[mp2 @ 0x323e980] incomplete frame<br />Error while decoding stream #0:1: Invalid data found when processing input<br />frame= 5852 fps= 77 q=-1.0 Lsize=   40659kB time=00:03:54.00 bitrate=1423.4kbits/s dup=89 drop=0    <br />video:36892kB audio:3605kB subtitle:0 global headers:0kB muxing overhead 0.400476%<br />[libx264 @ 0x325c920] frame I:58    Avg QP:21.03  size: 27793<br />[libx264 @ 0x325c920] frame P:3257  Avg QP:23.95  size:  9350<br />[libx264 @ 0x325c920] frame B:2537  Avg QP:25.95  size:  2251<br />[libx264 @ 0x325c920] consecutive B-frames: 31.6% 26.6% 15.3% 26.5%<br />[libx264 @ 0x325c920] mb I  I16..4: 22.1% 72.5%  5.4%<br />[libx264 @ 0x325c920] mb P  I16..4:  5.5% 15.2%  0.7%  P16..4: 37.8% 11.1%  5.8%  0.0%  0.0%    skip:23.8%<br />[libx264 @ 0x325c920] mb B  I16..4:  0.4%  0.9%  0.0%  B16..8: 31.4%  3.1%  0.6%  direct: 1.6%  skip:61.9%  L0:39.0% L1:52.0% BI: 9.0%<br />[libx264 @ 0x325c920] 8x8 transform intra:70.9% inter:81.6%<br />[libx264 @ 0x325c920] coded y,uvDC,uvAC intra: 51.5% 55.1% 15.8% inter: 19.8% 18.9% 1.4%<br />[libx264 @ 0x325c920] i16 v,h,dc,p: 45% 32%  9% 14%<br />[libx264 @ 0x325c920] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 19% 33%  3%  4%  5%  3%  5%  4%<br />[libx264 @ 0x325c920] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 23% 16%  4%  7%  9%  5%  6%  4%<br />[libx264 @ 0x325c920] i8c dc,h,v,p: 51% 24% 21%  4%<br />[libx264 @ 0x325c920] Weighted P-Frames: Y:10.6% UV:6.0%<br />[libx264 @ 0x325c920] ref P L0: 62.0% 14.9% 16.2%  6.5%  0.4%<br />[libx264 @ 0x325c920] ref B L0: 79.9% 18.3%  1.8%<br />[libx264 @ 0x325c920] ref B L1: 92.7%  7.3%<br />[libx264 @ 0x325c920] kb/s:1291.07<br /><br /><br /> </p><blockquote style="border-left: 2px solid #325FBA; padding-left: 5px;margin-left:5px;">-----Ursprüngliche Nachricht-----<br /><strong>An:</strong>  libav-user@ffmpeg.org; <br /><strong>Von:</strong>    Carl Eugen Hoyos <cehoyos@ag.or.at><br /><strong>Gesendet:</strong>     Do 18.07.2013 11:15<br /><strong>Betreff:</strong>    Re: [Libav-user] how to handle missing pts values to keep audio sync (mpegts->mp4)<br />Patrick Fischer <pfischer@...> writes:<br /><br />> If i use the application ffmpeg i got also an async mp4:<br />>  <br />> ffmpeg -i  ~/Videos/defekte_streams/asyncron_1.ts test.mp4<br />> ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1<br /><br />You did not test FFmpeg but an intentionally <br />broken version that contains several hundred <br />known bugs and regressions not reproducible <br />with FFmpeg, including some issues that are <br />security-relevant. Please understand that <br />we cannot support such versions here.<br /><br />Please test current FFmpeg from <br />http://ffmpeg.org/download.html and report <br />back.<br /><br />If you want more information on why you are <br />forced by your distribution to use a known <br />to be broken version of FFmpeg, please read <br />http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html<br /><br />Carl Eugen<br /><br />_______________________________________________<br />Libav-user mailing list<br />Libav-user@ffmpeg.org<br />http://ffmpeg.org/mailman/listinfo/libav-user<br /></blockquote>
</body>
</html>