Streaming video in Gallery

simply_zero

Joined: 2008-12-06
Posts: 4
Posted: Sat, 2008-12-06 02:41

I downloaded the lastest version of Gallery, and am wanting to setup a section of my gallery that will stream video files that I have uploaded. I have the ffmpeg plugin installed and configured correctly, but when clicking on a video that was uploaded to gallery, the only thing that I get is a link that says "Download movie".

I'm trying to resemble the functionality of the following gallery: http://www.zefrank.com/theshow/gallery/v/sports+racer+intros/

Clicking on any one of those videos in that particular section will auto load and play the video. I would like to be able to set the dimensions of the video as I please as well.

Anyone have any ideas? I'm kind of stumped as to what to do to make this work.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-12-06 03:25

All ffmpeg does is detect the movie dimensions and creates a thumb, if the format is supported.

You can edit the movie and give it dimensions if your version of ffmpeg does not detect the size properly.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
simply_zero

Joined: 2008-12-06
Posts: 4
Posted: Sat, 2008-12-06 03:27

But will ffmpeg enable the functionality of allowing the video to be streamed like in the link I referenced? That's what I am overall trying to achieve.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-12-06 04:14

Log into gallery, under the movie there is a link called edit movie. Click that.
There you will be able to add dimensions to the movie since it sounds like your version of ffmeg does not detect the dimensions.
I can't tell as you did not provide a url to your gallery.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
simply_zero

Joined: 2008-12-06
Posts: 4
Posted: Sat, 2008-12-06 04:20

Okay, I set the dimensions in that area. However, is there an automatic way for this to be done? I'd like not to have to go through that process for every single video that is uploaded.

It appears that a thumbnail is also not being generated for gallery videos either. It's located at http://www.filmreelproductions.com/gallery

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-12-06 04:43

it would appear that your video does not show anything:
http://www.filmreelproductions.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=18
I get quicktime to play but there is no video or audio.
Do you have a example that I can download to see if my version of ffmpeg detects your dimensions.

I think you might consider using flashmovies as they are more cross browser compatible.
Here is a example: http://www.flashyourweb.com/media/index.php?g2_itemId=30

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-12-06 04:57

I noticed you had another item added. I downloaded that item and added it to my test gallery:
http://4megs.com/gallery2/main.php?g2_itemId=11374 that leads to: http://4megs.com/gallery2/main.php?g2_itemId=12867
my version of ffmpeg detects the dimensions and gets a thumb as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
simply_zero

Joined: 2008-12-06
Posts: 4
Posted: Sat, 2008-12-06 05:21

I'm not sure why the first video that you tried did not have video or audio, as it does for me. Maybe that was the flash version that I later deleted, as I had to convert one to .AVI and re-upload it to gallery.

The second one that you downloaded from me and uploaded to your test gallery is exactly how I want the videos to behave. Where have I gone wrong? I'm getting no automatic thumbnail nor auto defined dimensions.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-12-06 05:35

perhaps your ffmpeg is not up to date.
here is my version info from site admin-> ffmpeg

Quote:
FFMPEG binary test results
Binary Name Pass/Fail
ffmpeg Passed

Supported MIME Types
The FFMPEG module can decode files of the following MIME types

video/x-ms-asf
video/x-msvideo
video/x-flv
video/quicktime
video/mp4
video/mpeg
video/x-ms-wmv

The FFMPEG module can encode files to the following MIME types

video/x-flv

Missing required audio codec, encoded videos will not contain sound.

Version Information
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-static --enable-shared --cc=i686-pc-linux-gnu-gcc --disable-altivec --disable-debug --disable-audio-oss --disable-v4l --disable-v4l2 --disable-dv1394 --disable-network --disable-ffplay --disable-opts --enable-gpl --enable-pp --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Oct 17 2008 17:24:31, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.2)
ffmpeg SVN-rUNKNOWN
libavutil 3212288
libavcodec 3352580
libavformat 3345409

FAQ: I am having trouble configuring a graphics toolkit (ImageMagick, NetPBM or ffmpeg). Help?
here are some links to precompiled versions:
http://codex.gallery2.org/Gallery2:Installation_Requirements#ffmpeg

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Elkin Cano
Elkin Cano's picture

Joined: 2008-12-11
Posts: 3
Posted: Wed, 2009-02-04 15:10

Hi.

i have the same problem, the quicktime movie i upload to my server (windows - linux), my gallery2 only show a link that says "Download movie". in both server i cant see my quicktime movie, only i can download.

and i cant build the Thumbnails, because the Mime Types -> video/quicktime -> G2video.jpg, and the ffmpeg is not associate whit that mime type.

if i check the "Movie Size" only see 0 values in the fields, i dont know whats is the problem whit my gallery installations, because my version info from site admin-> ffmpeg is

Quote:
FFMPEG binary test results
Binary Name Pass/Fail
ffmpeg
Passed
Supported MIME Types

The FFMPEG module can decode files of the following MIME types

video/x-ms-asf
video/x-msvideo
video/x-flv
video/quicktime
video/mp4
video/mpeg

The FFMPEG module can encode files to the following MIME types

video/x-flv
Missing required audio codec, encoded videos will not contain sound.
Version Information

FFmpeg version SVN-r16404, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration:
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 9. 0 / 52. 9. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
built on Dec 31 2008 14:05:54, gcc: 4.1.2 20071124 (Red Hat 4.1.2-42)

And

Quote:
Tipos MIME soportados

El módulo de FFMPEG puede decodificar ficheros con los siguientes tipos MIME

video/x-ms-asf
video/x-msvideo
video/x-flv
video/quicktime
video/mp4
video/mpeg

El módulo de FFMPEG puede codificar ficheros con los siguientes tipos MIME

video/x-flv
No se encuentra el codec de audio necesario, los vídeos codificados no contendrán sonido.
Información de Versión

FFmpeg version SVN-r15815, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-postproc --enable-swscale --enable-gpl --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --disable-vhook --enable-avisynth --enable-pthreads
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 3. 0 / 52. 3. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Nov 13 2008 10:28:29, gcc: 4.2.4 (TDM-1 for MinGW)

My Gallery

Quote:
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.8 apache2handler
Webserver = Apache/2.2.3 (Red Hat)
Database = mysqlt 5.0.45, lock.system=flock
Toolkits = Exif, Gd, Ffmpeg, NetPBM, Thumbnail, ArchiveUpload, SquareThumb, ImageMagick
Acceleration = partial/21600, partial/1800
Operating system = Linux 2.6.18-92.1.22.el5 #1 SMP Fri Dec 5 09:28:22 EST 2008 x86_64
Default theme = degallery
gettext = disabled
Locale = es_ES
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Rows in GalleryAccessMap table = 186
Rows in GalleryAccessSubscriberMap table = 1013
Rows in GalleryUser table = 59
Rows in GalleryItem table = 1004
Rows in GalleryAlbumItem table = 219
Rows in GalleryCacheMap table = 625

Please help me.

El Kin Cano
Cartagena de Indias
My Colombia

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-02-05 00:53
Quote:
if i check the "Movie Size" only see 0 values in the fields

Give it the correct dimensions and save.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Elkin Cano
Elkin Cano's picture

Joined: 2008-12-11
Posts: 3
Posted: Thu, 2009-02-05 14:07

Ok...thanks ;-)

Thats work, but my gallery not build the Thumbnails,

what i have to do..=?

El Kin Cano
Cartagena de Indias
My Colombia

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-02-05 21:31

please start a new thread and post an example url of the video you are tying to generate thumbs for.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team