Video-Bay ownCloud Video App

With the lack of a Video Gallery for ownCloud comes out “Video-Bay” an APP made for ownCloud to showcase and playback user’s videos under a specialized “Navigation Tab” making it easy for users to quickly access and play their videos.

Video-Bay_Preview_1Video-Bay_Preview_2

Video-Bay uses JWPlayer as its HTML5/Flash player to playback video files of .mp4, .flv, and more formats, in addition it uses ffmpeg to generate thumbnails for such videos (which must be install in order to see video previews). This APP scans the users collection and looks for files of ‘video’ mime-type then without structure puts this videos in the “Videos Tab”.

Currently this APP can be downloaded from the following sources:

apps.owncloud and github

Live DEMO here:

Username: guest
Password: pass1234

Video-Bay app showcase:

This next video shows our internal custom ownCloud installation using this app for video STREAMING instead of playback.

Our goal was to make video streaming easier, we accomplish this by installing an rtmp server on our ownCloud server called crtmpserver

This, however, had it’s limitations. It could only play certain file formats. Instead of hacking the source for crtmpserver to allow for additional file formats(which would be ideally but time-costly) we managed to hook every video upload to a “POST-PROCESSING” function which will take those video formats that are not playable under crtmpserver and convert them using HandBrakeCLI to mp4 videos.

The benefit of streaming videos for use was to decrease bandwidth requirements for each video and as a perk you also get faster video playbacks.

 

  • RC Maples

    You have a tutorial on installing centos 6.4 and you have this nice video bay app. However, the play back doesn’t seem to be working on my install and the thumbnails aren’t being created. I’m fairly confident I have ffmpeg installed, but is there anyway you could give some insight on how to configure CentOS 6.4 x64 and ownCloud to work inconjunction with video bay? Please!

    • flopex

      Double check your folder permissions, I’ve done multiple fresh installs with CentOS 6.4 x64 + ‘Video-Bay’ and has worked fine. App folders must be writable by the apache group with correct permisions.

      • RC Maples

        Just for giggles I did a chmod -R 775 and a chown -R apache and chgrp -R apache on the entire owncloud installation folder (/var/www/html/owncloud/) … I double-checked ownership, groups, and perms using ls -all everything appears to be wide open for the apache user/group. Then I restarted httpd. However video still isn’t playing and thumbnails aren’t being created. How can I check to make sure any dependencies (ffmpeg?) are installed and working correctly?

        • flopex

          The current player I’m using supports some file-extensions.

          http://www.longtailvideo.com/support/jw-player/28836/media-format-support/

          This is why in my custom installation of ownCloud I have all video non mp4 and flv to be converted to mp4(and also streamed instead of playback).

          As for the ffmpeg, run this command on a directory with a video file

          ffmpeg -y -ss 5 -i “video.mp4” -vcodec png -vframes 1 -an -f rawvideo -vf scale=320:-1 “out.png”

          • RC Maples

            [root@owncloud Share 1]# ffmpeg -y -ss 5 -i “trick ride 6 pm show.mp4” -vcodec png -vframes 1 -an -f rawvideo -vf scale=320:-1 “out.png”
            FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
            built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
            configuration: –prefix=/usr –libdir=/usr/lib64 –shlibdir=/usr/lib64 –mandir=/usr/share/man –incdir=/usr/include –disable-avisynth –extra-cflags=’-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC’ –enable-avfilter –enable-avfilter-lavf –enable-libdc1394 –enable-libdirac –enable-libfaac –enable-libfaad –enable-libfaadbin –enable-libgsm –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-librtmp –enable-libschroedinger –enable-libspeex –enable-libtheora –enable-libx264 –enable-gpl –enable-nonfree –enable-postproc –enable-pthreads –enable-shared –enable-swscale –enable-vdpau –enable-version3 –enable-x11grab
            libavutil 50.15. 1 / 50.15. 1
            libavcodec 52.72. 2 / 52.72. 2
            libavformat 52.64. 2 / 52.64. 2
            libavdevice 52. 2. 0 / 52. 2. 0
            libavfilter 1.19. 0 / 1.19. 0
            libswscale 0.11. 0 / 0.11. 0
            libpostproc 51. 2. 0 / 51. 2. 0
            [mov,mp4,m4a,3gp,3g2,mj2 @ 0x123e670]max_analyze_duration reached
            Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘trick ride 6 pm show.mp4’:
            Metadata:
            major_brand : mp42
            minor_version : 1
            compatible_brands: isommp423gp5
            title : 6pmShow.mp4.MP4
            artist : created with SUPER(C).v2012.bld.51
            encoder : eRightSoft
            comment : 16:51:29
            Duration: 00:04:00.00, start: 0.000000, bitrate: 604 kb/s
            Stream #0.0(und): Video: mpeg4, yuv420p, 640×480 [PAR 1:1 DAR 4:3], 535 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
            Stream #0.1(und): Audio: aac, 44100 Hz, mono, s16, 64 kb/s
            Stream #0.2(und): Data: mp4s / 0x7334706D, 0 kb/s
            Stream #0.3(und): Data: mp4s / 0x7334706D, 0 kb/s
            Unrecognized option ‘vf’

          • flopex

            hmmm… maybe a ffmpeg version issue as vf is a valid option in my system. Try removing ffmpeg and using this tutorial to install it

            https://www.digitalocean.com/community/articles/how-to-convert-videos-with-ffmpeg-on-centos-6

          • RC Maples

            That fixed the thumbnail creation problem 🙂 Now then, still not playing mp4s… but we’re getting closer!

          • flopex

            yeah I sometimes have issues playing mp4(as playback) with this player, could be an incorrect video codec on the file. Not sure. I’m looking to see if I can make an easy to install crtmpserver for video streaming, will certainly solve all of our video problems.

          • RC Maples

            Sounds good. Let me know if you do. Right now, it looks like nginx isn’t running properly, not sure if video-bay uses it for jwplayer or not. But i’m trying to troubleshoot it there for now.

  • Aki

    Hi

    I have installed this plugin on my ownCloud on my local iMac over MAMP, but sadly I can’t get this plugin to work.

    I got no video preview or a running video delivered.

    I have installed ffmpeg on my mac over this manual: http://www.renevolution.com/how-to-install-ffmpeg-on-mac-os-x/

    and I also try to follow some steps on this manual:
    https://drupal.org/node/1464236

    But the last manual confusing me totally.

    The video file is a mp4.

    So when you have any tips or hints, your’e welcome 🙂

    • flopex

      The only other environment I have tested this on has been on windows running WAMP and with partial success. App worked fine but could not get ffmpeg working with WAMP and ownCloud for reasons of lib issues (ffmpeg being compiled with VC6 instead of VC9) Not sure how to fix this on a MAC as I have no way to test it.

  • o2xav

    hi,

    i just uploaded the pluggin, set the correct permissions for www-data on the app’s folder, but it’s not working, in the owncloud logs, i can see :

    SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘owncloud.oc_filecache’ doesn’t exist at /var/www/owncloud/lib/db.php#1077

  • hello, i have installed and it shows the Thumbsnails but the Player wont work..

    i have running Ubuntu 12.04 LTS with php 5.3.10. ffmpeg and crtmpserver is installed.

    greets from germany

    • flopex

      I think your issue might be OS with flash compatibility, have not tested this app with linux. Will be rewriting this app in the following weeks.

      • matt

        you could use videojs instead of JWPlayer? this would be awesome!

  • Ha Wa

    Hi all , I have installed and how to upload FLV,MP4 to Video-Bay app in owncloud.

    help me please,

    • over the upload button for the files

      • Ha Wa

        Hi Jars, My Video-Bay app don’t have upload button for the files,
        I have try upload via ssh to vids folder but can not find video file.

      • Ha Wa

        Thank u,

    • flopex

      Videos are not read from this app’s folder, all you need to do is upload them to your regular folder and the app will read them.

  • Cong

    Hey guys,
    I installed the apps but hitting with an error message:

    Error Loading Media: File Not Found!
    I still be able to play that video via default ownCloud player

  • joe gormanly

    Im having problems even getting my video bay to load up heres what i get ?

  • Carlo

    I’m trying to get this to work on OwnCloud 7.0.4, but it is not finding any videos. Is this supposed to be working for version 7?

    • I have not tested with newer versions.

      • Carlo

        Is this still in development? Any info I can provide to help debug?

  • redscarlach

    I can’t get MOVs to play. MP4s will play just fine. Will there be an update that is able to play MOVs?