flutter-elinux-plugins icon indicating copy to clipboard operation
flutter-elinux-plugins copied to clipboard

Support RTSP or RTMP

Open suyulin opened this issue 3 years ago • 5 comments

suyulin avatar Oct 13 '21 06:10 suyulin

any news?

Allan-Nava avatar Dec 10 '21 17:12 Allan-Nava

I support RTP like this

gst-launch-1.0 -v rtspsrc location=rtsp://jetson-desktop.local:8554/test \
  ! rtph264depay \
  ! h264parse \
  ! decodebin \
  ! videoconvert \
  ! autovideosink sync=false

Was it helpful to you?

suyulin avatar Dec 11 '21 01:12 suyulin

@HidenoriMatsubayashi , Hi, Here's fix for this issue https://github.com/Kofhein/flutter-elinux-plugins/commit/80e47bc297b7ed5dd3afa1388d62abecafeeb9a6 I didn't checked throughout which function actually cause issue, but this fixes issue with live streams playback... For some reason one of the function breaks pipeline when livestream pipeline is being built. This can be checked on m3u8 stream ( I made it main video link in my fork ) - before it was just completely freezing player and you couldn't even start playback. Now issue gone, as per rtmp - it was also preventing from successful playback after few secodns stream was stopping. Here's m3u8 test link 'http://sample.vodobox.net/skate_phantom_flex_4k/4k/skate_phantom_flex_4k_8288_2160p.m3u8', And rtmp one rtmp://matthewc.co.uk/vod/scooter.flv Also in order to play livestream it's required to not use VideoProgressIndicator in dart. I also tested on rtp stream - streaming video from VLC, sometimes it fails ( but it also fails in console ), so more or less good.

Kofhein avatar Jan 21 '23 23:01 Kofhein

I support RTP like this

gst-launch-1.0 -v rtspsrc location=rtsp://jetson-desktop.local:8554/test \
  ! rtph264depay \
  ! h264parse \
  ! decodebin \
  ! videoconvert \
  ! autovideosink sync=false

Was it helpful to you?

I have a pipeline similar to this I'd like to display using the eLinux video player. How did you implement this pipeline into the plugin to make it work? Currently, when I try to show the stream, I can see there is movement but it's all scrambled and discolored. Do I need to replace everything in gts_video_player.cc?

ethantabbert avatar Mar 19 '24 14:03 ethantabbert

Now is working?

Allan-Nava avatar Mar 19 '24 14:03 Allan-Nava