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

travist’s picture

I 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.

themiadude’s picture

thanks so much Travis...if there is ANYTHING I can do to help please let me know

travist’s picture

I 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.

themiadude’s picture

hi 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

travist’s picture

I 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.

themiadude’s picture

flashvideo_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

travist’s picture

Then 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..

$command = $params['cmd_path'] . ' ' . str_replace($markup, $actual, $command); 

And replace it with this....

$command = $params['cmd_path'] . ' ' . str_replace($markup, $actual, $command); 
drupal_set_message($command);

Then, upload another video, run the cron through administrator Administer >> Reports >> Status Report, and tell me what it print out on the screen.

themiadude’s picture

Ok...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.

mariusooms’s picture

As 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

themiadude’s picture

yes that happens on the new beta version of 6.x-1.4-beta but not on 6.x-1.3 version

themiadude’s picture

Hey 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

travist’s picture

Hmmm..... 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?

travist’s picture

Status: Active » Postponed (maintainer needs more info)
themiadude’s picture

its 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

mrfelton’s picture

I 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.

travist’s picture

What version of FlashVideo are you using, mrfelton?

mrfelton’s picture

6.x-1.4-beta

opel’s picture

replace <? to <?php in *.modules or change php configuration

lfhubcom’s picture

I 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.

themiadude’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
xAaronAx’s picture

Version: 6.x-1.4-beta6 » 6.x-1.3
xAaronAx’s picture

Version: 6.x-1.3 » 6.x-1.4-beta6
Status: Closed (fixed) » Active
attheshow’s picture

Status: Active » Postponed (maintainer needs more info)

When 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...

attheshow’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Since the discussion surrounding this support request seems to have stopped, I'm going to close out this issue.