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

handlers: force mp4 override for source URLs #75

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

emranemran
Copy link
Collaborator

Studio is not expected to know the extension types of the files uploaded by the end user. As such, Studio can provide urls without any file extensions like mp4/mov. However, Mist requires file extensions to guess what type of input process to spawn (e.g. MistInMP4).

For now, we only care about mp4/mov file input - so we force all input URLs to mp4 format by using the "mp4:" override in front of an URL identifier so the it reads: "mp4:s3+http://example-url.com/video"

Studio is not expected to know the extension types of the files uploaded
by the end user. As such, Studio can provide urls without any file
extensions like mp4/mov. However, Mist requires file extensions to guess
what type of input process to spawn (e.g. MistInMP4).

For now, we only care about mp4/mov file input - so we force all input
URLs to mp4 format by using the "mp4:" override in front of an URL
identifier so the it reads: "mp4:s3+http://example-url.com/video"
@@ -112,6 +112,8 @@ func (d *CatalystAPIHandlersCollection) UploadVOD() httprouter.Handle {
}

func (d *CatalystAPIHandlersCollection) processUploadVOD(streamName, sourceURL, targetURL string) error {
// TODO: remove this logic to force input URLs to mp4/mov format
sourceURL = "mp4:" + sourceURL
Copy link
Member

Choose a reason for hiding this comment

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

Will mist handle mp4:https:// fine?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep it discards mp4: and uses it to know that the source URL is an mp4/mov file

@emranemran emranemran merged commit f83ea85 into main Oct 19, 2022
@thomshutt thomshutt deleted the emran/force-mp4-on-source-urls-for-mist branch October 19, 2022 21:42
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

Successfully merging this pull request may close these issues.

3 participants