[FFmpeg-user] capturing television rtp

juan carlos Rebate nerus492 at gmail.com
Sat Feb 6 00:03:14 CET 2016


2016-02-02 9:19 GMT+01:00 Moritz Barsnick <barsnick at gmx.net>:
> On Tue, Feb 02, 2016 at 00:41:34 +0100, juan carlos Rebate wrote:
>> I have tried to preserve the codec of video and the quality,
>
> The input stream is H.264, you chose "-vcodec libxvid". That does not
> preserve the codec. I am also quite convinced that the resulting video
> will look bad, judging by the resulting bitrate.
>
> The easiest way to preserve codec and quality is to use "-vcodec copy".
>
>> the subtitles track to reduce the size of the file, nevertheless I
>> obtain multiple bugs that I believe they are related to the audio, I
>> have realized the input of the following departure:
>
> Which bugs are you referring to? Do you mean the warning messages?
>
> All your warning messages relate to video - note the "[h264 @" at the
> beginning.
>
>> [h264 @ 0000005d32a21620] non-existing SPS 0 referenced in buffering period
>> [h264 @ 0000005d32a21620] non-existing PPS 0 referenced
>> [h264 @ 0000005d32a21620] non-existing SPS 0 referenced in buffering period
>> [h264 @ 0000005d32a21620] non-existing PPS 0 referenced
>> [h264 @ 0000005d32a21620] decode_slice_header error
>> [h264 @ 0000005d32a21620] no frame!
>
> I think this often happens when beginning at an arbitrary position in
> MPEG transport streams. No need to worry.
>
>> [h264 @ 0000005d3347fb80] co located POCs unavailable
>> [h264 @ 0000005d33480000] reference picture missing during reorder
>> [h264 @ 0000005d33480000] Missing reference picture, default is 65660
>> [h264 @ 0000005d3347fb80] mmco: unref short failure
>> [h264 @ 0000005d33480000] mmco: unref short failure
>> [mpegts @ 0000005d329fa840] PES packet size mismatch4:59.28 bitrate= 515.2kbits/s
>> [h264 @ 0000005d32e60a80] error while decoding MB 23 32, bytestream -48
>> [h264 @ 0000005d32e60a80] concealing 206 DC, 206 AC, 206 MV errors in P frame
>
> I think this is an error in the received stream. Either the connection
> got bad, or it was created incorrectly.
>
> Biggest question: Does your resulting file play fine, or does it not?
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
the original file (freshly caught) plays correctly, but using ffmpeg
is when they start errors,
when attempting to copy the following happens encoder;
>ffmpeg -i imput1.ts -vcodec copy -b:v 2282 -acodec mp3 -ac 0 -sn output1.avi
ffmpeg version N-77137-gff6dd58 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libdcadec
--enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-libzimg --enable-lzma --enable-decklink
--enable-zlib
  libavutil      55. 10.100 / 55. 10.100
  libavcodec     57. 17.100 / 57. 17.100
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 20.100 /  6. 20.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] non-existing SPS 0 referenced in buffering period
[h264 @ 000000e0e23016e0] non-existing PPS 0 referenced
[h264 @ 000000e0e23016e0] decode_slice_header error
[h264 @ 000000e0e23016e0] no frame!
[h264 @ 000000e0e23016e0] mmco: unref short failure
    Last message repeated 1 times
[mpegts @ 000000e0e22da900] PES packet size mismatch
    Last message repeated 1 times
Input #0, mpegts, from 'imput1.ts':
  Duration: 01:05:00.66, start: 73624.381267, bitrate: 2304 kb/s
  Program 105
    Stream #0:0[0x65]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt470bg), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 25 tbr,
90k tbn, 50 tbc
    Stream #0:1[0xc9](esp): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 192 kb/s (clean effects)
    Stream #0:2[0xca](VO): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 128 kb/s (clean effects)
    Stream #0:3[0x191](esp): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Output #0, avi, to 'output1.avi':
  Metadata:
    ISFT            : Lavf57.19.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 720x576
[SAR 16:11 DAR 20:11], q=2-31, 25 fps, 25 tbr, 50 tbn, 50 tbc
    Stream #0:1(esp): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055),
48000 Hz, stereo, s16p (clean effects)
    Metadata:
      encoder         : Lavc57.17.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (mp2 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[mpegts @ 000000e0e22da900] PES packet size mismatch04:55.08
bitrate=1872.0kbits/s
frame=102717 fps=519 q=-1.0 Lsize=  897040kB time=01:05:00.24
bitrate=1884.1kbits/s
video:827702kB audio:60936kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.945630%
the audio is out of sync.


More information about the ffmpeg-user mailing list