[FFmpeg-user] UDP transport stream unexpected buffer overrun

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Jul 12 19:07:09 EEST 2016


Massimo Battistel <battistel <at> gmail.com> writes:

> This file: https://www.datafilehost.com/d/2370f81c

Works fine here:
$ ffmpeg -re -i bersaglieri_080523.MPG -vcodec mpeg2video -pix_fmt yuv420p
-flags +ildct+ilme -top 1 -aspect 16:9 -b:v 2000k -trellis 2 -g 25 -bf 2
-acodec mp2 -ac 2 -ar 48000 -b:a 128k -f mpegts -flush_packets 0
"udp://127.0.0.1:18000?pkt_size=1316"
ffmpeg version N-80975-ga337cb7 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --enable-gnutls
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 50.100 / 57. 50.100
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpeg, from 'bersaglieri_080523.MPG':
  Duration: 00:01:49.48, start: 0.220000, bitrate: 8020 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR
16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 224 kb/s
[mpegts @ 0x1f6c1a0] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, mpegts, to 'udp://127.0.0.1:18000?pkt_size=1316':
  Metadata:
    encoder         : Lavf57.41.100
    Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR
16:9], q=2-31, 2000 kb/s, 25 fps, 90k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.50.100 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
    Metadata:
      encoder         : Lavc57.50.100 mp2
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native))
Press [q] to stop, [?] for help
[mpeg2video @ 0x1f67e60] ac-tex damaged at 44 200:01:48.88
bitrate=2228.4kbits/s speed=0.999x
[mpeg2video @ 0x1f67e60] Warning MVs not available
[mpeg2video @ 0x1f67e60] concealing 1530 DC, 1530 AC, 1530 MV errors in B frame
Error while decoding stream #0:1: Invalid data found when processing input
frame= 2737 fps= 25 q=2.5 Lsize=   29689kB time=00:01:49.40
bitrate=2223.2kbits/s speed=   1x
video:25476kB audio:1706kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 9.225303%


$ ffplay -autoexit udp://127.0.0.1:18000
ffplay version N-80964-g244d224 Copyright (c) 2003-2016 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --enable-gnutls
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 50.100 / 57. 50.100
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpegts, from 'udp://127.0.0.1:18000':KB sq=    0B f=0/0
  Duration: N/A, start: 1.429978, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 128 kb/s


Sorry, Carl Eugen



More information about the ffmpeg-user mailing list