-
Notifications
You must be signed in to change notification settings - Fork 30
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
Video-JS and mobile #125
Comments
Thanks for reporting. |
I REALLY appreciate you taking a look at this, and I had seen those other posts, but I'm still a little confused. I get the impression from other locations on here (https://github.com/Piwigo/Piwigo-Mobile/wiki/How-to-Upload-and-Stream-Video) that you can upload video from the iPhone/iPad... if not the native videos, what/how can you upload video in general? I have a GoPro, which does record in MP4 format, and I tried uploading something that I had saved to the camera role using that... same issue (here is the capture):
Thank you again for all your work! If you ever need a tester, let me know! |
I understand why you thought the iOS app should work with videos. The wiki page has been written in 2015 and that was surely working fine at that time. I should update it... I've started working on this project recently and discovered many bugs, some of them due to the evolution of the iOS SDK. So I fix them step by step whilst migrating deprecated libraries. I will be pleased to add you to the list of beta testers. Just send me your name/email using my email address. |
You are now added to the list of TestFlight testers. Thank you for your willing to help. |
I just made a test with TestFlight version 2.0.4(25) and I get quite an unexpected result. Piwigo-VideoJS is activated and I have this in my local configuration:
The iOS app let me upload a video. And at the very end of the upload, I get "Video Upload Error - You need to add the extension "VideoJS"....". |
VideoJS only accepts these formats: mp4, ogg, webm or MP4, OGG, WEBM as explained here. So the app replaces the .MOV extension with .MP4 as suggested. When downloading, it does the reverse to allow storing the video file in the Photos app. The iOS app checks that VideoJS is installed at start if the user has admin rights but cannot check the web config. I guess I should update the alert and invite to check the configuration. |
@plegall, could you please tell me which formats are accepted by your server as shown here ? |
jpg, jpeg, png, gif, mov, ogg, ogv, mp4, m4v, webm, webmv {ogg, ogv, mp4, m4v, webm, webmv} are automatically added by Piwigo-VideoJS |
To my understanding, you should have "jpg, jpeg, png, gif" provided by Piwigo and "ogg, ogv, mp4, m4v, webm, webmv" added by Piwigo-VideoJS. mov is added by your local configuration and should not because it won't be managed by Piwigo-VideoJS My configuration is: |
I encounter the issue with the demo server (but not mine) and hope to get a fix soon. |
@plegall, here is the error I get at the end of the upload with the demo server: In fact, the demo server returns an empty message:
While my server returns a JSON object:
In both cases, the upload is successful (status code 200) but the absence of response from the demo server leads to an error. Could you please have a look at the logs ? The only significative difference I see between the servers is that mediainfo and ffmpeg are not installed on the demo server. |
@plegall, have you had a chance to look into this? |
Hi @EddyLB
|
|
@plegall I get the following error on the dev server: |
@plegall, can you please update MediaInfo 0.7.58 to version 0.7.64 or higher? That is requested for using VideoJS and probably the reason for which the uploads fail. |
I just deactivated this test in piwigo-videojs (as far as I know, this test is useless) |
Same result with the iOS app. With regard the web interface, the uploaded video has no icon (an image of 0x0 pixels) and I get the message: |
@plegall, the iOS app v2.0.4 build 40 has now been tested successfully with two Piwigo servers on which MediaInfo and ffmpeg are correctly installed. If you could update MediaInfo 0.7.58 on the dev server, I am pretty sure that will work with that one too. |
This is fixed according to several TestFlight testers so I close this issue. |
I feel like I'm missing something obvious. Using IOS and Piwigo Mobile 2.0.2(17). I'm trying to upload a .MOV file, but instead, only a small .jpg get uploaded instead. It appears that this "conversion" is happening at the client side. I've enabled everything in local/config/config.inc.php:
$conf['upload_form_all_types'] = true;
$conf['file_ext'] = array('jpg','JPG','jpeg','JPEG','png','PNG','gif','GIF','mpg','zip','avi','mp3','ogg','mov','MOV');
When I upload using a browser on a computer, videos upload, and playback works on both IOS and desktop. Just can't upload video from IOS. From tcpdump, here is header showing the content type being uploaded:
POST /ws.php?format=json&method=pwg.images.upload HTTP/1.1
Host:
Content-Type: multipart/form-data; boundary=Boundary+DF3C0F0AE091BB22
Cookie: pwg_id=3e6mupc42ovjgnddc1pgk8is27
Connection: keep-alive
Accept: /
User-Agent: piwigo/2.0.2 (iPhone; iOS 10.3.1; Scale/2.00)
Accept-Language: en-US;q=1, de-DE;q=0.9
Content-Length: 141544
Accept-Encoding: gzip, deflate
Via: HTTP/1.1 nycnz0231msp1ts10.wnsnet.attws.com
--Boundary+DF3C0F0AE091BB22
Content-Disposition: form-data; name="file"; filename="IMG_8371.MOV"
Content-Type: image/jpeg
(BOLD added).
Also, when I go to upload, it is clear it is uploading only an image due to the speed at which it does it.
Is this not a supported feature? I get the impression it is from the documentation.
The text was updated successfully, but these errors were encountered: