Skip to Content Skip to Menu

Video compressing

  • fioresns
  • fioresns
  • OFFLINE
  • Posts: 75
  • Thanks: 7
  • Karma: 0
1 day 1 hour ago #340433 by fioresns
Video compressing was created by fioresns
Hello!
I've been trying to make a script for video compressing, working with ffmpeg. The script intercepts the video during upload, compresses it, and ahould replace the uploaded one with the compressed one. The first part seems to work: the video is intercepted, reduced, and saved in a folder. What is not working is the swapping of the uploaded video. Basically, in the backend, the video is the one I uploaded, not the reduced one. I noticed that videos in CB are renamed and placed in a folder like:
/var/www/html/images/comprofiler/plug_cbgallery/168/videos/
except that the number (168) is random (is it?), and there are many numeric folders.
What I am asking is: is thera criteria for assigning the folder and file namer? How could I solve or work around the problem of the script not overwriting?
 

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48865
  • Thanks: 8349
  • Karma: 1449
21 hours 2 minutes ago #340434 by krileon
Replied by krileon on topic Video compressing
CB Gallery 3.0.0 that's currently in development will have ffmpeg support. So if you can wait a bit longer I'd recommend just waiting instead of having to implement this yourself.

Regarding your question. The number isn't random it's the user id of the user that uploaded the file.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • fioresns
  • fioresns
  • OFFLINE
  • Posts: 75
  • Thanks: 7
  • Karma: 0
20 hours 43 minutes ago #340435 by fioresns
Replied by fioresns on topic Video compressing
I've been waiting but I've seen a new release a couple ok weeks ago that didn't touch it, so I guess it will take long for the new feature... Will it?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48865
  • Thanks: 8349
  • Karma: 1449
19 hours 25 minutes ago #340441 by krileon
Replied by krileon on topic Video compressing
CB Gallery 3.0.0 is a complete rewrite into stored galleries (similar to CB Activity into stored streams). It's roughly half way done. We don't provide timeframes here, but I wouldn't expect it to take longer than a few more weeks at this point unless I run into problems. I do have to of course frequently stop work to handle support requests, etc.. so there's a lot of unknowns and is why we don't provide timeframes. If you need this now then I suppose you'll need to implement it yourself though.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum