mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 22:46:55 -05:00
[Enhancement]: Video Podcast Support #2545
Labels
No labels
authentication
awaiting release
backlog
bug
chapter editor
config-issue
ebooks
encoding/embedding
enhancement
help wanted
listening sessions & progress
planned
possible plugin
progress sync
sorting/filtering/searching
unable to reproduce
upload
users & permissions
waiting
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/audiobookshelf-advplyr#2545
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AdrianEdelen on GitHub (Feb 5, 2025).
Type of Enhancement
Server Backend
Describe the Feature/Enhancement
Add video podcast support for podcasts, as a stretch goal, add video podcast playback in the web UI.
Currently, when adding a video podcast, it is converted to an audio only. A minimum implementation would be to keep the video metadata and include it with the RSS feeds created by ABS ('Open RSS feed') to serve the videos. This way podcast clients that support video can play them.
Why would this be helpful?
Video podcasts are common and are often served through RSS feeds.
Future Implementation (Screenshot)
I propose a backend implementation only to begin with, to avoid the extra challenge of UI implementation.
Audiobookshelf Server Version
v2.19.0
Current Implementation (Screenshot)
This is generally a backend change.
@nichwall commented on GitHub (Feb 5, 2025):
Duplicate of https://github.com/advplyr/audiobookshelf/issues/2196
Video support within the clients is not likely to be implemented.
@AdrianEdelen commented on GitHub (Feb 5, 2025):
I don't think this would require a change in the client, at least not initially.
as it stands, video files can be uploaded, so I think
github.com/advplyr/audiobookshelf@0cf7a6abec/server/utils/podcastUtils.js (L146-L153)could be replaced with something like:though I haven't tested this yet, and am working on that. that should just result with the type in the feed data being set correctly, and would allow clients that support video to use it.
@advplyr commented on GitHub (Feb 5, 2025):
That change would be for downloading MRSS feed episodes (recently added https://github.com/advplyr/audiobookshelf/pull/3732)
I don't think that is what you are looking for. Is this not a duplicate of #2196?
@AdrianEdelen commented on GitHub (Feb 5, 2025):
yes it seems so, though I wouldn't call it a bug, rather, its just not something ABS supports currently. Would you prefer I close this issue and add comments to that issue?
It may be in the wrong spot, I am still learning the codebase, I just started looking at it today / getting environment up so I can step through. What I was looking for is when a podcast is downloaded from its source feed to ABS, and then later rebroadcast with the feed generated by ABS.
I believe that keeping the
github.com/advplyr/audiobookshelf@24d6e390f0/server/models/PodcastEpisode.js (L38)of PodcastEpisode.js (as well as probably modifying the feed generator as"video/mp4"it would allow 3rd party clients to use the video while just playing the audio from the video on the ABS client or apps (which is the current behavior if you upload a video).You are right that that what i showed is specific to mrss, though I think it would need to be updated as well, since a video can be in a
<media:content>tag.here is the scenario I am looking at:
here is a more concrete example:
This is a podcast that I created via ABS, by moving the file directly into a podcast folder and scanning. the file gets imported correctly, however ABS treats it as audio.
we can see when we probe the file with ffmpeg via ABS that it is a video:
so my updated proposal is that when creating the ABS RSS feed for the item, since we can detect that it is video we set the type correctly. For this example it wouldn't change functionality for the client at all, as the video will just play as an audio podcast.
then possibly later, the second part would be detecting the video type enclosures on podcasts that get downloaded to ABS from a feed, which I think would potentially have more side effects.
@advplyr commented on GitHub (Feb 5, 2025):
This is a bit more complicated to change since the mime type is coming from the file extension only. We aren't storing anywhere on the audio file whether it has a video stream or not so we would have to save that with the audio file on the initial scan.
The reason is because we don't want to run an ffprobe for every audio file when a feed is created/updated.