You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Video preview (transcoded mp4) in the thumbnails folder #24480
When you uploaded a video in large resolution (4K for example) - video player will not play it smoothly (especially on slow internet connection) - due to the size of video. Similar problem is when your movie is in the format not supported by browsers.
Expected behaviour
We can transcode uploaded movies to smaller size and the correct format and save it in the thumbnails folder (we have to do it async in the background process) then the video player will be playing transcoded video (if available, else original video).
Proposition for transcoding movie (when: 'enable_movie_transcode' => true is enabled in the config file) that should work with ffmpeg and avconv:
(enable preview and set size of preview video)
2. Make sure you have working ffmpeg / avconv in your system (recommended ffmpeg)
3. Upload video - after upload ffmpeg should start in background and then it should create file preview.mp4 in thumbnails/ folder
4. If file preview.mp4 exists - files_videoplayer should use it for preview
Patch:
Tested with current owncloud/master owncloud/files_videoplayer/master video_trancode_patch.zip
Activity
lenz1111 commentedon May 19, 2016
@davitol Try again - I fixed my code:
(enable preview and set size of preview video)
2. Make sure you have working ffmpeg / avconv in your system (recommended ffmpeg)
3. Upload video - after upload ffmpeg should start in background and then it should create file preview.mp4 in thumbnails/ folder
4. If file preview.mp4 exists - files_videoplayer should use it for preview
Patch:
Tested with current owncloud/master owncloud/files_videoplayer/master
video_trancode_patch.zip
Try it
davitol commentedon May 20, 2016
@PVince81 @lenz1111 👍 Following the steps written in your comment #24480 (comment) it WFM 👏
felixboehm commentedon Oct 4, 2016
owncloud/ios-legacy#787
butonic commentedon Apr 19, 2017
patch might need some polish otherwise pretty cool. we could move the preview generation to a background job...