Problem with ffmpeg/Flowplayer after Oneiric upgrade

windracer

Joined: 2007-03-05
Posts: 107
Posted: Wed, 2011-12-14 03:48

The other day I noticed that when trying to view videos in my Gallery, Flowplayer was appearing as just a vertical narrow bar instead of the normal-sized player and the video was not playing. If I right-clicked on the bar and opened the link in a new tab, the MP4 would play just fine via the QuickTime plugin.

Working backwards, I found that videos uploaded before October 15 were fine but anything after that had the problem. From that I deduced that when I upgraded my server from Ubunty Natty to Oneiric, something must have messed up ffmpeg with regards to G3.

To test, I pointed G3 to the copy of ffmpeg I had saved from before the upgrade. If I then uploaded a video into the gallery, Flowplayer appeared normally. Checking the two different versions of ffmpeg, I don't really see much of a difference, and both versions can properly identify the resolution of my MP4 videos (normally just 640x480). I checked the items table and the width column seems to be properly set.

Does anyone know of a way to "fix" the non-working videos without having to re-upload them to G3? I checked the items table and can't really see what would be missing/invalid due to the newer version of ffmpeg that came with Oneiric. I'm going to try re-building from scratch to see if that helps going forward but in the meantime I'm looking for a way to get Flowplayer to correctly play the videos I uploaded after October 15.

Thoughts?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7936
Posted: Wed, 2011-12-14 12:34
 
windracer

Joined: 2007-03-05
Posts: 107
Posted: Wed, 2011-12-14 21:40

Ah, thanks! That helped me find the problem. I had somehow missed seeing the "height" column on the items table. For the affected videos, the height was set to 31637661 instead of 480. I used SQL to fix the rows with problems and that seems to have worked. I guess I need to figure out why ffmpeg isn't setting that dimension correctly when the videos are uploaded.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7936
Posted: Wed, 2011-12-14 22:10

Looks like its setting the duration as height.
from shell try:
ffmpeg -i /path/to/one/of/your/movies.mp4

output should look something like this.

Report your output here.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Rachelle

Joined: 2003-04-26
Posts: 33
Posted: Sun, 2012-03-04 22:18

This is the problem I am having, duration set as height, whats the fix please

Quote:
ffmpeg version N-37197-ga8ae00b Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 28 2012 00:34:01 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-pic --enable-libx264 --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, flv, from '/var/www/vhosts/mysite.com/httpdocs/archives/var/modules/transcode/flv/511/436x240.flv':
Duration: 00:03:41.64, start: 0.000000, bitrate: 152 kb/s
Stream #0:0: Video: flv1, yuv420p, 436x240, 25 tbr, 1k tbn, 1k tbc
At least one output file must be specified