By LAC Webadmin on Tuesday, 01 November 2016
Posted in Technical Issues
Likes 0
Views 340
Votes 0
Hi There,

I just had the chance to work on installing ffmpeg in our new server and I tried to upload an AVI file and I got an error:

Please upload a valid video file.

- So AVI is not allowed?
- Isn't it that's the whole idea why the need for ffmpeg is for so video can be converted?
- What are the video type allowed?

Thanks,

Jackson
Hey there,

Try download my attached file and replace into JoomlaFolder/administrator/components/com_easysocial/includes/video/video.php and see how it goes?
·
Thursday, 10 November 2016 16:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

I've tried to upload an .avi format video, seems it uploading correctly without hitting any errors.
I've inspected that you still using default FFMPEG path (Settings>Videos>General>Encoding>Path to FFMpeg) http://screencast.com/t/J3q07ig1m5
And as the FFMPEG path is correct, it will show additional setting below it.
Can you consult the FFMPEG path with your server provider regarding this. In addition, you need to use FFMPEG v2.8.x and above as stated in our minimum requirement http://screencast.com/t/odsGhMGsBy6

You can refer the video format supported by ffmpeg here : http://www.ffmpeg.org/general.html#Video-Codecs
·
Tuesday, 01 November 2016 11:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fadhli,

I forgot to mention that I was testing it in our staging and using ES v2.x but anyhow I now set it up in our live site. Also changed the ffmpeg path to /usr/bin/ffmpeg.

Although, I installed ffmpeg v2.2.1 is that a problem?

You can try it yourself, it is not working even on ES v1.2.x.

Thanks,

Jackson
·
Wednesday, 02 November 2016 02:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

As you stated above, seems like you'r using FFMPEG v2.2.1 which is not match with our minimum requirement for FFMPEG version
Can you consult with your web hosting provider to upgrade the FFMPEG to v2.8.x ?

Thanks for understanding
·
Wednesday, 02 November 2016 10:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fadhli,

OK, I just installed the latest version of FFMPEG from github and it still does not accept AVI file. Why? Is there a setting which video file types are accepted?

It does accept a .3GP, FLV, MKV, MP4 files though except AVI. Can you check with your developers please.

Thanks,

Jackson
·
Friday, 04 November 2016 01:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jackson,
We have checked this issue and found out that avi video format is not supported while uploading videos and there is no setting to allow it.
We strongly advise you to not allow such settings as this would only add more confusions to your end users and this is the biggest reason why we don’t allow this to happen.

When a user tries to upload a video, they won't know the result of the uploaded video format, if it’s an avi, mp4 or the encoding of the video. They just want to upload the video
·
Friday, 04 November 2016 16:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

Exactly my point is like you said "They just want to upload the video" but if users will upload AVI video file and they get an error that defies what you just said, isn't it?

I don't have an issue with the error message "Please select a supported video file." I agree with you that the video file type need not to be mentioned since users doesn't really have to know what are those. I just want to know why is AVI not allowed? Or what are the video files types allowed by ES, so I have an answer to users when they ask. Any reason?

So, I guess FFMPEG version is not an issue after all it just took me an hour to research and to upgrade it by compiling from source just to tell me that AVI is not actually supported by ES.

Thanks,

Jackson
·
Saturday, 05 November 2016 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am sorry for the delay of this reply,

I did do a test in my locally, it seems it should support AVI video format, perhaps you can provide us with your following details so we can better have a check?
- FTP access
- SSH access
- AVI video file
·
Monday, 07 November 2016 15:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

I don't have FTP service sorry in our server but can you try to download the AVI here:

https://cinelerra-cv.org/footage.php

I just tried bars_100.avi and I got "Please upload a valid video file."

Please check my site details for our staging site and you test it there.

Thanks,

Jackson
·
Tuesday, 08 November 2016 02:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

I've tried to upload an avi video that you've provided above in your test site. Seems I'm hitting the error "Please upload a valid video file." as well. Can I know the exact FFMPEG version that you've using currently. So we can try replicate it locally as you cannot provide us with your FTP and SSH access
·
Wednesday, 09 November 2016 10:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fadhli,

Here's my ffmpeg info:


ffmpeg version N-82218-g31d6571 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
configuration: --prefix=/opt/ffmpeg --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags='-L/opt/ffmpeg/lib -ldl' --bindir=/opt/ffmpeg/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
libavutil 55. 35.100 / 55. 35.100
libavcodec 57. 66.100 / 57. 66.100
libavformat 57. 57.100 / 57. 57.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 66.100 / 6. 66.100
libswscale 4. 3.100 / 4. 3.100
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100


Can you replicate it in your test server using ffmpeg v2.8.1?

Thanks,

Jackson
·
Wednesday, 09 November 2016 11:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

so AVI file type is not allowed after all, but thanks for the patch it does work now.

I still want to know why the dev team did not include AVI file type as allowed video file. Any reason?

By the way, I would assume that it will be included in the later release of ES? Maybe it would be nice to have a setting in the backend that would let Admins to choose which video file type is allowed rather than hard code it.

Thanks again,

Jackson
·
Friday, 11 November 2016 01:09
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome, glad to heard your issue resolved.

By the way, thanks for your suggestion, by right all the common video format should be allowed upload in Easysocial, I believe we missed this in earlier, and this fix will included in next release version.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Friday, 11 November 2016 09:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post