Active
Project:
FFmpeg Wrapper
Version:
6.x-1.1-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2010 at 14:45 UTC
Updated:
11 Dec 2010 at 22:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
HonorsGrad commentedI'm getting the same with PHP 5.2.
Comment #2
HonorsGrad commentedLooks like it is an issue with this set of code:
The substr is returning an empty string, which results in an empty array for the subsequent foreach (a few lines down). Ultimately, this then returns an empty array to line 371.
Comment #3
HonorsGrad commentedFFMPEG Vitals
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
built on Dec 4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
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-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --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
Comment #4
arthurf commentedCan you confirm this under the 6.2.x branch?
Comment #5
HonorsGrad commentedLooks like the command to ffmpeg has changed parameters. It should be "-codecs" vs. "-formats". Patch is attached.
Steps to Resolve:
1. Upload Patch [formatspatch.patch] to ffmpeg_wrapper
2. Apply Patch (within ffmpeg_wrapper directory)
patch < formatspatch.patch3. Clear Cache (command below for drush-enabled sites)
drush cache-clear all4. Test
Comment #6
HonorsGrad commented@arthurf
No, I'm using 6.x-1.1-beta2
Comment #7
arthurf commentedCan you try the 6.2.x branch and confirm this? If you look at class_ffmpeg_wrapper, get_codecs() this change should be correctly accounted for.
Comment #8
arthurf commentedSorry, seems like we keep overlapping one another in posts here.
In the dev version of 6.1.x this should be correctly handled. ffmpeg_wrapper_get_codecs() checks for the version before trying to do formats or codecs. If you could testwith the 6.2.x branch though- that's where all future work will go- that'd be awesome as I would like to drop the 6.1.x as soon as possible.
Comment #9
HonorsGrad commentedBased on inspecting the CVS, it looks to be appropriately handled in 6.2.x (much more elegantly than the patch does, I might add). I'll test and report back.
How close/stable is -dev? I really need this module for a site going to production by end of year and that was the reason for choosing the alpha over dev. Does the 6.2.x branch have an alpha/beta/official release in the works?
Comment #10
arthurf commentedThe 6.2.x should be no more/less stable than the 6.1.x. The main difference is in some of the UI functionality which allows for testing transcoding of files. In terms of their architectural differences, 6.2.x is redone, but basically using the same functions from 6.1.x. I think they are pretty much compatible.
Comment #11
ayalsule commentedthanks for quick reply I applied the Patch in #5 and The Error disappear but the conversion failed and the message say:There were errors during the conversion!
Comment #12
HonorsGrad commented@ayalsule
Did you clear cache, etc? What is the file format you're converting from and to? Does the ffmpeg install (not the drupal module) handle it? Are you using default settings? I was able to successfully move several video files (mainly avi) to flv without issue. As arthurf noted, 2.x dev may be a better alternative - or 1.x dev.
@arthurf
I tested 6.2.x dev without success. The AJAX call is failing on the conversion - still investigating why.
Thanks for the help and info.
Comment #13
ayalsule commentedDear @HonorsGrad
dp 6.19 / FFMPEG_WRAPPER 6.x-1.1-beta2
I cleared the cache and run cron , FFMPEG installed
wmv -> flv
any way I was testing ffmpeg converting because FlashVideo conversion failed
The Error was caused by (mp3):
-i @input -f flv -acodec mp3 -ar 22050 -ab 64k -ac 1 @outputI replaced mp3 with libmp3lame :
-i @input -f flv -acodec libmp3lame -ar 22050 -ab 64k -ac 1 @outputand It`s worked.
Thanks