Hello,
I have imported fancybox into my dadabik application so that when i open pictures it enlarges and is able to be manipulated etc. Now I would like to be able to import videos. however, this will be much more complicated than pictures as they will typically need to be converted to .mp4 so that they can be played natively on html5. Because of this I would need to alter the upload process that dadabik uses.
I am unable to do that since it seems that the code for uploading a file is within an encrypted file. I could be wrong but even if it wasnt encrypted I would still like any suggestions on whether or not I would need to actually change the code for uploading.
Any suggestions on how I could implement this into dadabik?
I know a simple solution would be using ffmpeg and a code like
[pre]
ffmpeg -i {input}.mov -vcodec h264 -acodec aac -strict -2 {output}.mp4
[/pre]
PHP Version: 7.2.14-1+ubuntu16.04.1+deb.sury.org+1
postgres version: 10.6 (Ubuntu 10.6-1.pgdg16.04+1)
Web server: Apache/2.4.18 (Ubuntu)
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
I have imported fancybox into my dadabik application so that when i open pictures it enlarges and is able to be manipulated etc. Now I would like to be able to import videos. however, this will be much more complicated than pictures as they will typically need to be converted to .mp4 so that they can be played natively on html5. Because of this I would need to alter the upload process that dadabik uses.
I am unable to do that since it seems that the code for uploading a file is within an encrypted file. I could be wrong but even if it wasnt encrypted I would still like any suggestions on whether or not I would need to actually change the code for uploading.
Any suggestions on how I could implement this into dadabik?
I know a simple solution would be using ffmpeg and a code like
[pre]
ffmpeg -i {input}.mov -vcodec h264 -acodec aac -strict -2 {output}.mp4
[/pre]
PHP Version: 7.2.14-1+ubuntu16.04.1+deb.sury.org+1
postgres version: 10.6 (Ubuntu 10.6-1.pgdg16.04+1)
Web server: Apache/2.4.18 (Ubuntu)
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36