[FFmpeg-user] MPEG-TS file to x264 TS (dropped packets?)

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Nov 26 11:17:36 CET 2013


Henk D. Schoneveld <belcampo <at> zonnet.nl> writes:

> > Can somebody confirm that they get the same results 
> > (The input file is linked below)
>
> With an OSX ffmpeg binary I do get the same results. 
> All video frames are dropped.

> ffmpeg binary
> ffmpeg version 1.2-tessus Copyright (c) 2000-2013 the FFmpeg developers

Why are you using such an old version?
Anyway, it works fine here with both 1.0 and 1.2

Carl Eugen

$ md5sum test.ts
9db69f2943900bdca4ace303dcae5316  test.ts
$ ffmpeg -analyzeduration 1000000 -i test.ts -c:v libx264 -preset superfast
-g 25 -crf 15 -maxrate 9000k -bufsize 1500k -filter:v yadif -c:a libfdk_aac
-b:a 96k -f mpegts test-x264.ts
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 26 2013 11:14:28 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --enable-libx264 --enable-libfdk-aac
--enable-nonfree
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mpeg2video @ 0x2ad5f40] 0x0 is invalid
    Last message repeated 7 times
[mpegts @ 0x2ad1560] max_analyze_duration 1000000 reached at 1008000
microseconds
[NULL @ 0x2ad6940] start time is not set in estimate_timings_from_pts
[mpegts @ 0x2ad1560] PES packet size mismatch
    Last message repeated 1 times
Input #0, mpegts, from 'test.ts':
  Duration: 00:00:28.76, start: 20348.268500, bitrate: 2848 kb/s
  Program 1
    Stream #0:1[0x45]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x46](fin): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:3[0x47](eng): Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels
  No Program
    Stream #0:0[0x44](fin): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 224 kb/s
[libx264 @ 0x2b14f00] using SAR=64/45
[libx264 @ 0x2b14f00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x2b14f00] profile High, level 3.0
Output #0, mpegts, to 'test-x264.ts':
  Metadata:
    encoder         : Lavf54.63.104
    Stream #0:0: Video: h264, yuv420p, 720x576 [SAR 64:45 DAR 16:9],
q=-1--1, 90k tbn, 25 tbc
    Stream #0:1(fin): Audio: aac, 48000 Hz, stereo, s16, 96 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video -> libx264)
  Stream #0:0 -> #0:1 (mp2 -> libfdk_aac)
Press [q] to stop, [?] for help
slice mismatchs=300 q=13.0 size=    5376kB time=00:00:12.08
bitrate=3645.7kbits/s dup=11 drop=0
[mpeg2video @ 0x2ad5f40] 00 motion_type at 0 25
[mpeg2video @ 0x2ad5f40] 00 motion_type at 12 26
[mpeg2video @ 0x2ad5f40] [mpeg2video @ 0x2ad5f40] 00 motion_type at 18 16
[mpeg2video @ 0x2ad5f40] 00 motion_type at 0 20
[mpeg2video @ 0x2ad5f40] 00 motion_type at 0 21
[mpeg2video @ 0x2ad5f40] invalid cbp -1 at 0 22
[mpeg2video @ 0x2ad5f40] 00 motion_type at 34 23
[mpeg2video @ 0x2ad5f40] 00 motion_type at 25 12
[mpeg2video @ 0x2ad5f40] skip with previntra
[mpeg2video @ 0x2ad5f40] ac-tex damaged at 8 32
[mpeg2video @ 0x2ad5f40] 00 motion_type at 8 13
[mpeg2video @ 0x2ad5f40] 00 motion_type at 0 33
[mpeg2video @ 0x2ad5f40] 00 motion_type at 1 14
[mpeg2video @ 0x2ad5f40] 00 motion_type at 0 34
[mpeg2video @ 0x2ad5f40] 00 motion_type at 0 15
[mpeg2video @ 0x2ad5f40] [mpeg2video @ 0x2ad5f40] 00 motion_type at 0 17
invalid cbp 0 at 0 35
[mpeg2video @ 0x2ad5f40] 00 motion_type at 9 28
00 motion_type at 32 11
[mpeg2video @ 0x2ad5f40] 00 motion_type at 0 29
[mpeg2video @ 0x2ad5f40] 00 motion_type at 12 30
[mpeg2video @ 0x2ad5f40] ac-tex damaged at 4 31
[mpeg2video @ 0x2ad5f40] [mpeg2video @ 0x2ad5f40] 00 motion_type at 0 10
00 motion_type at 5 18
[mpeg2video @ 0x2ad5f40] invalid mb type in B Frame at 5 11
[mpeg2video @ 0x2ad5f40] 00 motion_type at 1 19
[mpeg2video @ 0x2ad5f40] Warning MVs not available
[mpeg2video @ 0x2ad5f40] concealing 1170 DC, 1170 AC, 1170 MV errors in B frame
PES packet size mismatch.0 size=    7403kB time=00:00:26.00
bitrate=2332.5kbits/s dup=20 drop=0
[mpegts @ 0x2ad1560] PES packet size mismatch
[mp2 @ 0x2ad5540] incomplete frame
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg2video @ 0x2ad5f40] ac-tex damaged at 8 19
[mpeg2video @ 0x2ad5f40] Warning MVs not available
[mpeg2video @ 0x2ad5f40] concealing 765 DC, 765 AC, 765 MV errors in P frame
frame=  718 fps=333 q=-1.0 Lsize=   15164kB time=00:00:28.64
bitrate=4337.5kbits/s dup=20 drop=0
video:13801kB audio:170kB subtitle:0 global headers:0kB muxing overhead
8.540675%
[libx264 @ 0x2b14f00] frame I:34    Avg QP: 8.61  size: 51644
[libx264 @ 0x2b14f00] frame P:272   Avg QP: 8.85  size: 29258
[libx264 @ 0x2b14f00] frame B:412   Avg QP:12.57  size: 10723
[libx264 @ 0x2b14f00] consecutive B-frames: 18.9% 12.0%  5.0% 64.1%
[libx264 @ 0x2b14f00] mb I  I16..4: 12.3% 30.5% 57.2%
[libx264 @ 0x2b14f00] mb P  I16..4: 12.8% 13.6%  4.5%  P16..4: 65.7%  0.0% 
0.0%  0.0%  0.0%    skip: 3.5%
[libx264 @ 0x2b14f00] mb B  I16..4:  1.2%  1.0%  0.2%  B16..8: 52.0%  0.0% 
0.0%  direct:29.5%  skip:16.0%  L0:35.1% L1:38.4% BI:26.5%
[libx264 @ 0x2b14f00] 8x8 transform intra:40.3% inter:46.7%
[libx264 @ 0x2b14f00] coded y,uvDC,uvAC intra: 77.1% 75.4% 69.5% inter:
49.0% 46.5% 14.0%
[libx264 @ 0x2b14f00] i16 v,h,dc,p: 54% 16% 24%  6%
[libx264 @ 0x2b14f00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 11% 26%  5%  3%  6%
 3%  6%  4%
[libx264 @ 0x2b14f00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 16% 11%  5%  5%  7%
 4%  7%  5%
[libx264 @ 0x2b14f00] i8c dc,h,v,p: 43% 15% 32% 10%
[libx264 @ 0x2b14f00] Weighted P-Frames: Y:32.4% UV:15.4%
[libx264 @ 0x2b14f00] kb/s:3936.49



More information about the ffmpeg-user mailing list