why does the flashvideo module ONLY wants to use the usr/bin/ffmpeg path. i have installed ffmpeg to a different location (/home/racer1/bin/ffmpeg) and when putting that path in flashvideo, it refuses to find or use that path.
through SSH, if I only enter ffmpeg, it knows to go to /home/racer1/bin/ffmpeg but if I only put ffmpeg through flash video, it uses /usr/bin/ffmpeg
is there anyone that can help me with this.
Comments
Comment #1
travist commentedI am actually looking into this right now... I will be checking in a new version to CVS that you can try out to see if it is fixed. Nothing that I see, though it obvious why this is happening, but I will try my best to get this resolved.
Thanks,
Travis.
Comment #2
themiadude commentedthanks so much Travis...if there is ANYTHING I can do to help please let me know
Comment #3
travist commentedI have actually tried to replicate this and cannot... Have you checked your Flashvideo system table and look for any variables called "flashvideo_global_binpath". If you have more than one of these then that might be your problem. Please let me know.
Thanks,
Travis.
Comment #4
themiadude commentedhi Travis,
Ok this might be the problem. Instead of having "flashvideo_global_binpath" more than once, I dont see it at all. Can you let me know where I should be looking for this. I looked in the mySQL database, and I dont see a flashvideo system table. I also checked the flashvideo.module and flashvideo.install and I dont see "flashvideo_global_binpath" in there either. Please let me know.
Thanks,
Ralph
Comment #5
travist commentedI meant to say the "variable" table.... this stores all the settings that you save in your Drupal system, including the FlashVideo variables. Look for any "flashvideo_..." variable. Let me know any variable that looks like "flashvideo_...._binpath". where you would just replace the "..." with anything in between.
Thanks,
Travis.
Comment #6
themiadude commentedflashvideo_binpath s:23:"/home/racer1/bin/ffmpeg";
this is what i see inthe variable's table. there is only one reference to the bin path
Comment #7
travist commentedThen for some reason, it seems it cant find it.... hmmm. Will you do this for me? In the flashvideo.module file, look for the following line..
And replace it with this....
Then, upload another video, run the cron through administrator Administer >> Reports >> Status Report, and tell me what it print out on the screen.
Comment #8
themiadude commentedOk...here is the result of the cron. It says that it did it but no jpeg or flv gets created
* /home/racer1/bin/ffmpeg -y -i "/mnt/local/home/racer1/racerfriends.com/sites/default/files/test10_5.mpeg" -vframes 1 -ss "00:00:02" -an -vcodec mjpeg -f rawvideo -s ""130x100"" "/mnt/local/home/racer1/racerfriends.com/sites/default/files/test10_5.jpg"
* Command: /home/racer1/bin/ffmpeg -y -i "/mnt/local/home/racer1/racerfriends.com/sites/default/files/test10_5.mpeg" -vframes 1 -ss "00:00:02" -an -vcodec mjpeg -f rawvideo -s ""130x100"" "/mnt/local/home/racer1/racerfriends.com/sites/default/files/test10_5.jpg"
* /home/racer1/bin/ffmpeg -i "/mnt/local/home/racer1/racerfriends.com/sites/default/files/test10_5.mpeg" -f flv -acodec libmp3lame -ar 22050 -ab 64k -ac 1 "/mnt/local/home/racer1/racerfriends.com/sites/default/files/test10_5.flv"
* Command: /home/racer1/bin/ffmpeg -i "/mnt/local/home/racer1/racerfriends.com/sites/default/files/test10_5.mpeg" -f flv -acodec libmp3lame -ar 22050 -ab 64k -ac 1 "/mnt/local/home/racer1/racerfriends.com/sites/default/files/test10_5.flv"
* Cron ran successfully.
Comment #9
mariusooms commentedAs we have to exact same issue and host, this is what my recent log entry read:
"Invalid argument supplied for foreach() in /home/.author/myaccount/www.mysite.com/modules/flashvideo/flashvideo.module on line 1058."
Can you verify that as well themiadude?
Does that help at all?
Regards,
Marius
Comment #10
themiadude commentedyes that happens on the new beta version of 6.x-1.4-beta but not on 6.x-1.3 version
Comment #11
themiadude commentedHey Marius,
While we're waiting for a response to this issue, can you tell me what setting you have that your videos actually convert?
Ralph
Comment #12
travist commentedHmmm..... not much has changed from version 1.3 to 1.4 beta that would cause this issue to appear. And from what you showed me in your previous post from the output during a Cron run, it says that the path is /home/racer1/bin/ffmpeg... what you want it to be. Another issue might be that you have the PHP execution time set to a really low value and the conversion times out. In the FlashVideo Settings, what is the value for your Max execution time?
Comment #13
travist commentedComment #14
themiadude commentedits the same as the recommended settings:
* Recommended Settings:
o post_max_size=100M
o upload_max_filesize=100M
o max_execution_time=1000
o max_input_time=1000
* Your current Settings:
o post_max_size=100M
o upload_max_filesize=100M
o max_execution_time=1000
o max_input_time=1000
Comment #15
mrfelton commentedI don't know if this is related, but I pulled up this thread by searching for the error message I'm faced with. When I try to upload a new video, I get this error:
warning: Invalid argument supplied for foreach() in /home/tom/public_html/drupal-6.x/public/sites/emusic.tv/modules/flashvideo/flashvideo.module on line 1058.
The video uploads successfully, and I can display it without any problems using the [video] tag.
Comment #16
travist commentedWhat version of FlashVideo are you using, mrfelton?
Comment #17
mrfelton commented6.x-1.4-beta
Comment #18
opel commentedreplace <? to <?php in *.modules or change php configuration
Comment #19
lfhubcom commentedI have the same warning as mrfelton and .modules s already at <?php and my configuration is correct...unless you are referring to something else in the configuration other than that which is in the guide.
Comment #20
themiadude commentedComment #21
xAaronAx commentedComment #22
xAaronAx commentedComment #23
attheshow commentedWhen I first started using the module, I was able to run a command line command of "ffmpeg ..." and saw a successful conversion happen. I discovered later that my ffmpeg binary actually lived at "/usr/bin/ffmpeg". Drupal couldn't run the conversions successfully until I set my "ffmpeg Path" to the latter. I'd recommend double-checking the path to FFMPEG by running "locate ffmpeg" from the command line. Not sure if you can run such a command on a shared host or not...
Comment #24
attheshow commentedSince the discussion surrounding this support request seems to have stopped, I'm going to close out this issue.