**Reported by xbgmsharp on 4 Apr 2015 11:24**
**Version:** 2.7.4
Hello,
A user report than some video works fine and some other no.
After checking, the limitation is on PWG core upload function.
The variable $ffmpeg_video_exts does not allow m4v file.
File: admin/include/functions_upload.inc.php
Line: 320
**Steps to reproduce:** Upload an MP4 video file and you will have a poster created.
Upload an M4V video file and you won't have a poster.
[Piwigo Bugtracker #3217](http://piwigo.org/bugs/view.php?id=3217)
<!-- github-sync-id:97252333 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported by xbgmsharp on 4 Apr 2015 11:24
Version: 2.7.4
Hello,
A user report than some video works fine and some other no.
After checking, the limitation is on PWG core upload function.
The variable $ffmpeg_video_exts does not allow m4v file.
File: admin/include/functions_upload.inc.php
Line: 320
Steps to reproduce: Upload an MP4 video file and you will have a poster created.
Upload an M4V video file and you won't have a poster.
Piwigo Bugtracker #3217
Comment posted by xbgmsharp on 4 Apr 2015 11:32
I suggest the following:
$ffmpeg_video_exts = array( // extensions tested with FFmpeg
'wmv','mov','mkv','mp4','mpg','flv','asf','xvid','divx','mpeg',
'avi','rm', 'm4v', 'ogg', 'ogv', 'webm', 'webmv',
);
$ffmpeg_video_exts = array_merge ($ffmpeg_video_exts, $ffmpeg_video_exts, array_map('strtoupper', $ffmpeg_video_exts) );
Comment posted by xbgmsharp on 13 Apr 2015 10:20
Works better that way.
$ffmpeg_video_exts = array( // extensions tested with FFmpeg
'wmv','mov','mkv','mp4','mpg','flv','asf','xvid','divx','mpeg',
'avi','rm', 'm4v', 'ogg', 'ogv', 'webm', 'webmv',
);
$ffmpeg_video_exts = array_merge ($ffmpeg_video_exts, array_map('strtoupper', $ffmpeg_video_exts) );
@xbgmsharp I didn't add the array_merge...strtotupper because the next line we check on strtolower...