Opened 4 years ago

Last modified 3 years ago

#5245 new defect

Video on SDI output of DeckLink freezes

Reported by: meni Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: cus@passwd.hu, atze@fem.tu-ilmenau.de Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Video on SDI output of DeckLink? perioically frezees/drop frames. I saw it when connect SDI output to the monitor.
ffmpeg output:

% ffmpeg version N-78351-ga25c5db Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/home/meni/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/meni/ffmpeg_build/include --extra-ldflags=-L/home/meni/ffmpeg_build/lib --bindir=/home/meni/bin --enable-decklink --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 17.100 / 55. 17.100
  libavcodec     57. 24.101 / 57. 24.101
  libavformat    57. 24.101 / 57. 24.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 30.100 /  6. 30.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpeg, from '17_02_16.mpg':
  Duration: 00:16:14.26, start: 0.248867, bitrate: 9408 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
[decklink @ 0x2c68160] Found Decklink mode 720 x 576 with rate 25.00(i)
Output #0, decklink, to 'DeckLink SDI':
  Metadata:
    encoder         : Lavf57.24.101
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.24.101 rawvideo
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 7.1, s16, 6144 kb/s
    Metadata:
      encoder         : Lavc57.24.101 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> rawvideo (native))
  Stream #0:1 -> #0:1 (mp2 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[decklink @ 0x2c68160] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[decklink @ 0x2c68160] Encoder did not produce proper pts, making some up.

How to solve the freezes issue and warnings?

[decklink @ 0x2c68160] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[decklink @ 0x2c68160] Encoder did not produce proper pts, making some up.

Had same trouble on two machines under Ubuntu and CentOS with latest ffmpeg from git-master compiled with DeckLink? support (DeckLink? SDK 10.5.4).

Change History (8)

comment:1 Changed 4 years ago by meni

  • Summary changed from Video on SDI output of DeckLink frezees to Video on SDI output of DeckLink freezes

comment:2 Changed 4 years ago by cus

  • Cc cus@passwd.hu added

What is the command line you tried?

Also, what if you provide proper timestamps? (e.g. with the setpts filter). What if you use video only?

comment:3 Changed 4 years ago by meni

I'l tried command:

ffmpeg -i http://10.8.1.10/stream/hls.m3u8 -vf "format=uyvy422" -r 25000/1000 -f decklink 'DeckLink SDI'

comment:4 Changed 4 years ago by meni

Warning's still exist with video only (-an) and/or with providing timestamps (setpts=PTS-STARTPTS).

Last edited 4 years ago by meni (previous) (diff)

comment:5 Changed 4 years ago by meni

But without audio (-na) video looks fine (without lags/freezes).

comment:6 Changed 4 years ago by cus

To correctly generate PTS aren't you supposed to use these filters?

-vf setpts='N/(25*TB)' -af asetpts='N/SR/TB'

comment:7 Changed 4 years ago by meni

Had the same lags/freezes with using filters.

ffmpeg -i test.mpg -vf "format=uyvy422,setpts='N/(25*TB)'" -af asetpts='N/SR/TB' -f decklink 'DeckLink SDI'

comment:8 Changed 3 years ago by atze

  • Cc atze@fem.tu-ilmenau.de added

Had a very similar issue with a MPEG-TS input. This was fixed by a commit end of February. Could you try with current git version?

Note: See TracTickets for help on using tickets.