[Libav-user] how to handle missing pts values to keep audio sync (mpegts->mp4)

Patrick Fischer pfischer at como.com
Thu Jul 18 11:29:19 CEST 2013


>

Hello

 
I have tested a newer Version of the application ffmpeg.

 
Now it is in sync! But not fix my problem. I need sync with my application.

 
Now I have to take a look what i did different then the application ffmpeg.

Update the ffmpeg libs for my application will be the next step.

 
Regards

Patrick

 
 
/tmp/ffmpeg -i  ~/Videos/defekte_streams/asyncron_1.ts   test.mp4
ffmpeg version N-54234-gef90639 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 28 2013 05:26:06 with gcc 4.6 (Debian 4.6.3-1)
  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
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 17.100 / 55. 17.100
  libavformat    55. 10.100 / 55. 10.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mp3 @ 0x323e980] Header missing
[mpegts @ 0x3239ec0] Could not find codec parameters for stream 3 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x3239ec0] Could not find codec parameters for stream 4 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[NULL @ 0x323ff00] start time is not set in estimate_timings_from_pts
[NULL @ 0x3240940] start time is not set in estimate_timings_from_pts
[mpegts @ 0x3239ec0] PES packet size mismatch
Input #0, mpegts, from '/home/patrick/Videos/defekte_streams/asyncron_1.ts':
  Duration: 00:03:53.70, start: 94926.112233, bitrate: 3423 kb/s
  Program 130 
    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
    Stream #0:1[0x1412](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:2[0x1414](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:3[0x87c]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:4[0xa6e]: Unknown: none ([5][0][0][0] / 0x0005)
File 'test.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0x325c920] using SAR=16/11
[libx264 @ 0x325c920] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x325c920] profile High, level 3.0
[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
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf55.10.100
    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
    Stream #0:1(deu): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> libvo_aacenc)
Press [q] to stop, [?] for help
[mp2 @ 0x323e980] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
skipped MB in I frame at 25 32e=    1350kB time=00:00:15.58 bitrate= 709.6kbits/s dup=22 drop=0    
[mpeg2video @ 0x323df40] skipped MB in I frame at 1 33
[mpeg2video @ 0x323df40] ac-tex damaged at 0 34
[mpeg2video @ 0x323df40] ac-tex damaged at 0 35
[mpeg2video @ 0x323df40] Warning MVs not available
[mpeg2video @ 0x323df40] concealing 176 DC, 176 AC, 176 MV errors in I frame
[mp2 @ 0x323e980] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
PES packet size mismatch.0 size=   39788kB time=00:03:51.63 bitrate=1407.2kbits/s dup=89 drop=0    
[mpeg2video @ 0x323df40] ac-tex damaged at 36 13
[mpeg2video @ 0x323df40] Warning MVs not available
[mpeg2video @ 0x323df40] concealing 1012 DC, 1012 AC, 1012 MV errors in B frame
[mp2 @ 0x323e980] incomplete frame
Error while decoding stream #0:1: Invalid data found when processing input
frame= 5852 fps= 77 q=-1.0 Lsize=   40659kB time=00:03:54.00 bitrate=1423.4kbits/s dup=89 drop=0    
video:36892kB audio:3605kB subtitle:0 global headers:0kB muxing overhead 0.400476%
[libx264 @ 0x325c920] frame I:58    Avg QP:21.03  size: 27793
[libx264 @ 0x325c920] frame P:3257  Avg QP:23.95  size:  9350
[libx264 @ 0x325c920] frame B:2537  Avg QP:25.95  size:  2251
[libx264 @ 0x325c920] consecutive B-frames: 31.6% 26.6% 15.3% 26.5%
[libx264 @ 0x325c920] mb I  I16..4: 22.1% 72.5%  5.4%
[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%
[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%
[libx264 @ 0x325c920] 8x8 transform intra:70.9% inter:81.6%
[libx264 @ 0x325c920] coded y,uvDC,uvAC intra: 51.5% 55.1% 15.8% inter: 19.8% 18.9% 1.4%
[libx264 @ 0x325c920] i16 v,h,dc,p: 45% 32%  9% 14%
[libx264 @ 0x325c920] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 19% 33%  3%  4%  5%  3%  5%  4%
[libx264 @ 0x325c920] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 23% 16%  4%  7%  9%  5%  6%  4%
[libx264 @ 0x325c920] i8c dc,h,v,p: 51% 24% 21%  4%
[libx264 @ 0x325c920] Weighted P-Frames: Y:10.6% UV:6.0%
[libx264 @ 0x325c920] ref P L0: 62.0% 14.9% 16.2%  6.5%  0.4%
[libx264 @ 0x325c920] ref B L0: 79.9% 18.3%  1.8%
[libx264 @ 0x325c920] ref B L1: 92.7%  7.3%
[libx264 @ 0x325c920] kb/s:1291.07


 
-----Ursprüngliche Nachricht-----
An:libav-user at ffmpeg.org; 
Von:Carl Eugen Hoyos <cehoyos at ag.or.at>
Gesendet:Do 18.07.2013 11:15
Betreff:Re: [Libav-user] how to handle missing pts values to keep audio sync (mpegts->mp4)
Patrick Fischer <pfischer at ...> writes:

> If i use the application ffmpeg i got also an async mp4:
>  
> ffmpeg -i  ~/Videos/defekte_streams/asyncron_1.ts test.mp4
> ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1

You did not test FFmpeg but an intentionally 
broken version that contains several hundred 
known bugs and regressions not reproducible 
with FFmpeg, including some issues that are 
security-relevant. Please understand that 
we cannot support such versions here.

Please test current FFmpeg from 
http://ffmpeg.org/download.html and report 
back.

If you want more information on why you are 
forced by your distribution to use a known 
to be broken version of FFmpeg, please read 
http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html

Carl Eugen

_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130718/3ed7aebe/attachment.html>


More information about the Libav-user mailing list