Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add rtsp plugin#2995

Closed
Billy2011 wants to merge 1 commit into
streamlink:masterfrom
Billy2011:rtsp-plugin
Closed

add rtsp plugin#2995
Billy2011 wants to merge 1 commit into
streamlink:masterfrom
Billy2011:rtsp-plugin

Conversation

@Billy2011

Copy link
Copy Markdown
Contributor

Uses ffmpeg for streaming.

@Billy2011 Billy2011 force-pushed the rtsp-plugin branch 2 times, most recently from 4751f03 to 6444ff6 Compare May 27, 2020 15:57
@codecov

codecov Bot commented May 27, 2020

Copy link
Copy Markdown

Codecov Report

Merging #2995 into master will decrease coverage by 0.11%.
The diff coverage is 40.62%.

@@            Coverage Diff             @@
##           master    #2995      +/-   ##
==========================================
- Coverage   52.57%   52.46%   -0.12%     
==========================================
  Files         251      252       +1     
  Lines       15769    15871     +102     
==========================================
+ Hits         8291     8327      +36     
- Misses       7478     7544      +66     

@back-to

back-to commented May 30, 2020

Copy link
Copy Markdown
Collaborator

there are a lot of the same code as FFMPEGMuxer,
maybe there is a better way without that much code duplication.

Comment thread docs/cli.rst Outdated
MPEG-DASH [2]_ dash://
Real Time Messaging Protocol rtmp:// rtmpe:// rtmps:// rtmpt:// rtmpte://
Progressive HTTP, HTTPS, etc httpstream:// [1]_
Real-Time Streaming Protocol rtspstream://

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just rtsp:// should be enough

Comment thread src/streamlink/plugins/rtsp.py Outdated


class FFMPEGRTSPPlugin(Plugin):
_url_re = re.compile(r"rtspstream://(?P<scheme>rtsp://)?(?P<url>.+)")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just rtsp:// should be enough

Comment thread src/streamlink/plugins/rtsp.py Outdated

class FFMPEGRTSPPlugin(Plugin):
_url_re = re.compile(r"rtspstream://(?P<scheme>rtsp://)?(?P<url>.+)")
_url_schema = validate.Schema(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed if you just use rtsp://

t.daemon = True
t.start()

self.process = subprocess.Popen(self._cmd, stdout=subprocess.PIPE,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't remove stdin

#1502

- Adapted FFMPEGMuxer for muxed / non-muxed streams
@gravyboat

Copy link
Copy Markdown
Member

@back-to Any other input here? If not I want to close this unless it's ready to merge.

@back-to

back-to commented Nov 22, 2020

Copy link
Copy Markdown
Collaborator

I don't like the self.is_muxed part, should be done differently,
so it doesn't interfere that much with future changes.

@Billy2011

Copy link
Copy Markdown
Contributor Author

I don't like that either, which is why I had previously outsourced it to a separate class so that it could possibly be used for other things and would be more flexible.

@Billy2011 Billy2011 closed this Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants