Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROTOCOL: Support push MPEGTS over TCP. #861

Closed
pkviet opened this issue Apr 27, 2017 · 9 comments
Closed

PROTOCOL: Support push MPEGTS over TCP. #861

pkviet opened this issue Apr 27, 2017 · 9 comments
Assignees
Labels
EnglishNative This issue is conveyed exclusively in English. Feature It's a new feature.
Milestone

Comments

@pkviet
Copy link

pkviet commented Apr 27, 2017

Hello
great work on mpeg-ts udp ingest.
Two suggestions:

  1. allow for mpeg-ts tcp ingest : ffmpeg can listen to tcp mpegts

  2. more importantly, for mpeg-ts programs with several video and audio tracks, it would be nice to be able to select video and audio through their PID .
    Wowza can do it (since 2011) : check [https://www.wowza.com/docs/how-to-select-mpeg-ts-stream-by-program-id-and-also-audio-language-by-pid] ;

maybe this is already possible ? I looked only cursorily the source code written by midok winlin and others for udp mpeg-ts .

@winlinvip
Copy link
Member

I didn't get your point.
😭

@pkviet
Copy link
Author

pkviet commented May 14, 2017

Ok sorry. Let me elaborate. I am suggesting a series of new features:

  1. Support ingest of mpeg-ts in tcp in addition to udp.
    There are two options, both being desireable:
    Ingest in push or in pull.
    Either the mpeg-ts encoder pushes to ossrs, or ossrs pulls from encoder.
    For instance wowza implemented only a few months ago tcp pull.
    I have the impression that such a feature would not be too far fetched to achieve because ffmpeg can do that, either pull or receive a push from encoder.
  2. Mpeg ts stream can support several programs and within programs several streams which can be several videos, different audio streams for different languages (think international broadcast in Europe with translation in english french german; or movie with original language track and second track for the dubbing , third track with director comment as in dvd). The audio tracks are identified by their pid.
    When a client in uk or france connects to the server, it would be nice to have a mechanism to request the right language.
    Wowza can do that and remuxes the mpegts ingest stream in rtmp, hls , mpegdash with correct language.
    I hope this is clearer ! 😀

@winlinvip
Copy link
Member

For SRS to pull stream by FFMPEG from other servers, read https://github.com/ossrs/srs/wiki/v1_EN_Ingest.

For others to push to SRS, you can use RTMP(featured) or RTSP(experiment). For RTSP, please read https://github.com/ossrs/srs/wiki/v2_EN_Streamer

@pkviet
Copy link
Author

pkviet commented May 21, 2017 via email

@winlinvip winlinvip changed the title mpeg-ts udp ingest PROTOCOL: Support push RTSP over TCP. May 21, 2017
@winlinvip winlinvip changed the title PROTOCOL: Support push RTSP over TCP. PROTOCOL: Support push MPEGTS over TCP. May 21, 2017
@winlinvip
Copy link
Member

winlinvip commented May 21, 2017

So, I rename this issue title, it seems we only need to support push MPEGTS over TCP to SRS, right? With PID select feature.

@winlinvip winlinvip reopened this May 21, 2017
@winlinvip winlinvip added the Feature It's a new feature. label May 21, 2017
@winlinvip winlinvip added this to the srs 4.0 release milestone May 21, 2017
@winlinvip
Copy link
Member

I think this feature needs more vote and research, so assign to SRS4.

@winlinvip
Copy link
Member

Fixed, maybe need some refactor and improve.

@winlinvip
Copy link
Member

Dup to #2611 , support push HTTP-TS.

@winlinvip winlinvip self-assigned this Sep 17, 2021
@winlinvip
Copy link
Member

Dup to #250

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English. Feature It's a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants