Нужна помощь для воспроизведения TV RTP Streams - PullRequest
0 голосов
/ 01 июня 2019

Мне нужна помощь для воспроизведения RTP TV Streams, мой реальный конвейер не дает мне изображения обратно. Я пробую так много примеров, которые я нашел здесь и в Интернете, но безуспешно.

Я надеюсь, что некоторые из них могут помочь мне, это неправильно в моей линии.

gst-launch-1.0 -v udpsrc buffer-size="5000" port=10000 multicast-group="239.186.68.1" caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! avdec_h264 ! autovideosink

Вывод из ffprobe:

Input #0, rtp, from 'rtp://239.186.68.1:10000':
  Duration: N/A, start: 50822.743589, bitrate: N/A
  Program 1 
    Metadata:
      service_name    : SRF 1 HD
      service_provider: Swisscom
    Stream #0:2: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:3: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:4: Unknown: none ([12][0][0][0] / 0x000C)
    Stream #0:1(deu,deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:0(deu): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
    Stream #0:5(log): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 93 kb/s
    Stream #0:6(deu): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 92 kb/s
Unsupported codec with id 94215 for input stream 1
Unsupported codec with id 0 for input stream 3
Unsupported codec with id 0 for input stream 4

Теперь у меня есть некоторые результаты, чтобы играть с rtp, но я думаю, что они еще не идеальны

RTP Play:
gst-launch-1.0 -v udpsrc address=239.186.68.1 port=10000 buffer-size=20000000 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2T-ES" ! rtpmp2tdepay ! tsdemux ! decodebin ! videoconvert ! videoscale ! ximagesink sync=false 

or

gst-launch-1.0 -v udpsrc address=239.186.68.2 port=10000 buffer-size=20000000 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2T-ES" ! rtpjitterbuffer ! rtpmp2tdepay ! tsdemux ! decodebin ! autovideoconvert ! videorate ! videoscale ! autovideosink

RTP Dump:
gst-launch-1.0 -v udpsrc address=239.186.68.244 port=10000 buffer-size=20000000 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2T-ES" ! rtpmp2tdepay ! filesink location=dump.ts

Play Dump:
gst-launch-1.0 filesrc location=./dump.ts ! tsdemux ! decodebin ! videoconvert ! videoscale ! autovideosink

or

gst-launch-1.0 filesrc location=./dump.ts ! tsdemux ! decodebin ! autovideoconvert ! videorate ! videoscale ! autovideosink
...