- πΊπΈUnited States sidgrafix
OK, So now some more questions.
I've found there to be another widget for form display for a video field "Video Upload & Convert" which uploads a video pretty much the same as "Video Upload" however when using it there are no options after the video has uploaded to transcode nor does it provide any thumbnails. There also isn't any other node/display options of the field format other than "URL to video" which really isn't very useful (at least in any respect needed) - Shouldn't there at least be a way to display the video in an html5 video player like when the upload widget is set to "Upload Video"? Also being the form widget is for upload and convert (I'm assuming convert by transcoding but I may be wrong) shouldn't there be a way to configure the transcoding for the field and get thumbnails as well?
Worst case scenario one could take the provided url which isn't even a link that is clickable (in the current fields state) and use some jQuery to get the video by using the URL and place it on the page replacing the URL if absolutely had to. But in reality if convert doesn't actually work just setting the form display widget to "Upload video" and then on node display use the option for "HTML5Video Player Compact" would be simpler.
There is also an error produced for maximum upload size if you try to set the "Max upload size" when the widget is set to "Video Upload & Convert" the manage-fields form display just won't accept any input and a php error is logged in DBlog (haven't looked to see if it has been reported yet under another issue)
Error: Class "Drupal\video_transcode\Plugin\Field\FieldWidget\Bytes" not found in Drupal\video_transcode\Plugin\Field\FieldWidget\VideoUploadTranscodeWidget::validateMaxFilesize() (line 31 of /var/www/html/web/modules/contrib/video/modules/video_transcode/src/Plugin/Field/FieldWidget/VideoUploadTranscodeWidget.php)
- However I did find if I set the widget to "Upload Video" and then set a "Maximum upload size" and update/save it that way, I could then switch the widget back to "Upload Video & Convert" and the "Maximum upload size / Max filesize:" limit would stay set and no error is produced.
Other than that what exactly is this widget (Upload Video & Convert) option supposed to be used for? Is it for transcoding or is "convert" meant for something else?
Now also seeing that alternatively when using form widget "Upload Video" where display format has the option for HTML5 video player - I see there is also the option for "URL to Video" and now having written through these additional questions I'm wondering is there a way to use the URL produced by Upload Video & Convert widget or if chosen "Video Upload" widget and display format "URL to Video" in another way or rule to process transcoding and thumbnails.
I'm guessing most of this isn't working yet (and there is still a significant amount of bugs to get worked out) - but I'm still hopeful someone will graciously help me to fill in some blanks!
- π§πͺBelgium flyke
+1, I was also expecting that I could for example create a Media type 'video' with a 'video' field with the upload and transcode widget and that users could create a new Video Media file, upload an AVI video, and that the website would upload it, transcode it (to mp4?) and that it could then be displayed on the website via some field formatter.
But the truth is there is no transcoding happening, and I have no idea if either this functionality is present and working but documentation is severely lacking, or that this is not working at all.If anyone gets automatic transcoding to work, please let us know and document how to.
Otherwise the scope of this function should be 'bug' instead of 'documentation' ? - π§πͺBelgium flyke
Ok so I found out this is still on the roadmap:
https://www.drupal.org/project/video/issues/2637338 βThe main transcoding for Drupal 8 and up issue is here:
https://www.drupal.org/project/video/issues/2637682 π Transcode video to support HTML5 Active - πΊπΈUnited States NicholasS
Thanks for those links, was just struggling with this as well, couldn't figure out what I am doing wrong, but based on those links it looks like the module does not offer that anymore huh? Kind of seems abandoned since I had to apply 2 other patches for D9 just to get the config screens of the module to work.
- πΊπΈUnited States sidgrafix
@NicholaS, @flyke,
I've given up on this module in favor of a module that actually works called "streaming." I just finished adding a sub-module to streaming as a new feature here https://www.drupal.org/project/streaming/issues/3393523#comment-15384408 β¨ Feature: streaming_transcode_queue Active which needs testing.
If anyone is interested the module I added to streaming, "streaming_transcode_queue" provides options and similarities to how transcoding worked for the video module in Drupal 7. Plus a bunch of extra tools and a manual queue processing display table.
- The only unfortunate is I haven't included any kind of upgrade/migrate path to go from video to streaming, that's a bit outside my scope of skillsets at the moment.If you give it a try and need any help getting things set up let me know. Until it is merged into streaming you will need to use the merge request as a patch to streaming version 2.0, I've been using it myself primarily without any issue for months now.
- πΊπΈUnited States wilblakefcpl
Hi @sidgrafix,
Thanks for the recommendation. I have also struggled with the Video module after a relatively easier experience with the Drupal 7 version. I will try the streaming module shortly. Its home page warns that it is not covered by the Drupal security advisory policy- will the streaming module eventually adopt the Drupal security policy? - πΊπΈUnited States sidgrafix
@wilblakefcpl
In regards to the security advisory, I think it is planned as the dev version of streaming was updated with that intent to use git cli, If I remember correctly - but I can't say for sure! I'm not the developer for the module I just submitted the streaming_transcode_queue sub module as a new feature. I actually need to post an update for that feature (as is, it should work just fine, but I ran into a rare event that could cause some confusion if a video fails to transcode completely or a fatal error interrupts the transcoding process.) I should be able to get that done sometime this week, hopefully within the next day or two!
If you do try the streaming module, post any questions to the feature request issue thread and I'd be happy to help get you setup and rolling with it... https://www.drupal.org/project/streaming/issues/3393523#comment-15384408 β¨ Feature: streaming_transcode_queue Active
- πΊπΈUnited States sidgrafix
@wilblakefcpl
I Just updated the feature issue with a new patch addressing the errors I previously noted. So should be good to go at least for now..