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

[bug] Trancoding occurs even when the client supports the video and audio codecs #67

Open
jonjomckay opened this issue Aug 17, 2023 · 2 comments

Comments

@jonjomckay
Copy link

When trying to stream any channel from my DVB-S tuner, Jellyfin wants to transcode it into H264 and AAC, even though the channel usually already is.

I think this may be down to this chunk of code, that doesn't return any stream information - only that the video stream is a video, and the audio stream is audio:

return new MediaSourceInfo
{
Id = channelId,
Path = _htsConnectionHandler.GetHttpBaseUrl() + ticket.Url,
Protocol = MediaProtocol.Http,
MediaStreams = new List<MediaStream>
{
new MediaStream
{
Type = MediaStreamType.Video,
// Set the index to -1 because we don't know the exact index of the video stream within the container
Index = -1,
// Set to true if unknown to enable deinterlacing
IsInterlaced = true
},
new MediaStream
{
Type = MediaStreamType.Audio,
// Set the index to -1 because we don't know the exact index of the audio stream within the container
Index = -1
}
}
};

Some of the missing information (stream index, codec, language) is available from Tvheadend, using the /api/service/streams endpoint, so I think fetching that data might help solve this, assuming that missing info is the cause.

@jonjomckay jonjomckay changed the title Trancoding occurs even when the client supports the video and audio codecs [bug] Trancoding occurs even when the client supports the video and audio codecs Aug 17, 2023
@djtomybcn
Copy link

djtomybcn commented Mar 6, 2024

Same situation, all livetv streams are transcoded. I have tried forcing different stream profiles in Tvheadend with the same result.

@Sh3rl0ck83
Copy link

Same for me. Only workaround I found to prevent transcoding and to enable direct stream / remuxing is using the Jellyfin m3u tuner with the TVH m3u channel list (which also support stream profile selection) e.g /playlist/channels.m3u?profile=pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants