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

Multiplexed stream is not present in OriginMapStore Redis db #1577

Open
maruf-cs opened this issue Apr 2, 2024 · 1 comment
Open

Multiplexed stream is not present in OriginMapStore Redis db #1577

maruf-cs opened this issue Apr 2, 2024 · 1 comment
Assignees
Labels
investigating Being checked

Comments

@maruf-cs
Copy link

maruf-cs commented Apr 2, 2024

Suppose I want to multiplex ('mux') 'stream720' and 'stream480' into 'stream'. However, upon inspection, I noticed that 'stream' is not present in Redis, while 'stream720' and 'stream480' are.

To Reproduce
Steps to reproduce the behavior:

  1. Set Server.xml as follows
         <OriginMapStore>
		<RedisServer>
			<Host>mydomain.com:6379</Host>
		</RedisServer>
		<OriginHostName>ome-dev.mydomain.com</OriginHostName>
	</OriginMapStore>

       <Multiplex>
	       <MuxFilesDir>.</MuxFilesDir>
       </Multiplex>
  1. With Encoder OBS Studio 30.0.02 64bit
  2. Call /v1/vhosts/default/apps/app/multiplexChannels with body
{
  "outputStream": {
    "name": "stream"
  },
  "sourceStreams": [
    {
      "name": "720",
      "url": "stream://default/app/stream720",
      "trackMap": [
        {
          "sourceTrackName": "bypass_video",
          "newTrackName": "video_720"
        },
        {
          "sourceTrackName": "aac_audio",
          "newTrackName": "aac_audio"
        }
      ]
    },
    {
      "name": "480",
      "url": "stream://default/app/stream480",
      "trackMap": [
        {
          "sourceTrackName": "bypass_video",
          "newTrackName": "video_480"
        },
        {
          "sourceTrackName": "aac_audio",
          "newTrackName": "aac_audio"
        }
      ]
    }
  ],
  "playlists": [
    {
      "name": "LLHLS ABR",
      "fileName": "playlist",
      "options": {
        "webrtcAutoAbr": true,
        "hlsChunklistPathDepth": 0
      },
      "renditions": [
        {
          "name": "720",
          "video": "video_720",
          "audio": "aac_audio"
        },
        {
          "name": "480",
          "video": "video_480",
          "audio": "aac_audio"
        }
      ]
    }
  ]
}
  1. The api call produces stream.mux file which contains
<?xml version="1.0"?>
<Multiplex>
	<OutputStream>
		<Name>stream</Name>
	</OutputStream>
	<SourceStreams>
		<SourceStream>
			<Name>720</Name>
			<Url>stream://default/app/stream720</Url>
			<TrackMap>
				<Track>
					<SourceTrackName>aac_audio</SourceTrackName>
					<NewTrackName>aac_audio</NewTrackName>
				</Track>
				<Track>
					<SourceTrackName>bypass_video</SourceTrackName>
					<NewTrackName>video_720</NewTrackName>
				</Track>
			</TrackMap>
		</SourceStream>
		<SourceStream>
			<Name>480</Name>
			<Url>stream://default/app/stream480</Url>
			<TrackMap>
				<Track>
					<SourceTrackName>aac_audio</SourceTrackName>
					<NewTrackName>aac_audio</NewTrackName>
				</Track>
				<Track>
					<SourceTrackName>bypass_video</SourceTrackName>
					<NewTrackName>video_480</NewTrackName>
				</Track>
			</TrackMap>
		</SourceStream>
	</SourceStreams>
	<Playlists>
		<Playlist>
			<Name>LLHLS ABR</Name>
			<FileName>playlist</FileName>
			<Options>
				<WebRtcAutoAbr>true</WebRtcAutoAbr>
				<HlsChunklistPathDepth>0</HlsChunklistPathDepth>
			</Options>
			<Rendition>
				<Name>720</Name>
				<Video>video_720</Video>
				<Audio>aac_audio</Audio>
			</Rendition>
			<Rendition>
				<Name>480</Name>
				<Video>video_480</Video>
				<Audio>aac_audio</Audio>
			</Rendition>
		</Playlist>
	</Playlists>
</Multiplex>

Expected behavior
When started streaming, redis db should have 3 stream including the multiplexed stream. But it shows two streams only
image

Logs
ovenmediaengine.log

Server (please complete the following information):

  • OS: Ububtu 22.04
  • OvenMediaEngine Version: 0.16.5
  • Branch: released version [https://github.com/AirenSoft/OvenMediaEngine/archive/v0.16.5.tar.gz]

Originally posted by @maruf-cs in #1489 (reply in thread)

@getroot getroot self-assigned this Apr 4, 2024
@getroot getroot added the investigating Being checked label Apr 4, 2024
Copy link

stale bot commented Jun 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 4, 2024
@getroot getroot removed the stale label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Being checked
Projects
None yet
Development

No branches or pull requests

2 participants