-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Show duration (in hours) next to the video title #259
Comments
Will add this in #253 |
Currently, there is no video duration stored in our db The way we can do this is whenever the admin adds the video metadata (which has the video url), we can use ffmpeg to get the video duration from the url and pass it along in the metadata. In the videometadata table, duration column is already present, which will be mapped to whatever the duration we get from ffmpeg P.S. I'm not sure how slow will ffmpeg work for large file. The other option is to let the admin add duration itself. @hkirat please let me know if this the correct approach? |
Tried fluent-ffmpeg, but it requires ffmpeg to be installed on the machine. Will we be able to install it on the server? @hkirat |
there should be duration in the db - https://github.com/code100x/cms/blob/main/prisma/schema.prisma#L104 |
How Is it getting added in prod db though? @hkirat |
@hkirat, could you please make sure if the duration is not null in the db, as it's allowed as null. if the video duration isn't there in the db, for this, we would need to use Please assign me the issue if this is the correct approach |
yeah people are adding it manually |
Okay, cool, thanks! |
In the sidebar
The text was updated successfully, but these errors were encountered: