getcwd() in windows , it output c:\XXXX\XXX , "http://www.w3school.com.cn/php/func_directory_getcwd.asp"
and if in *nux , it output /pub/XXXX , "http://cn2.php.net/getcwd"
just a hypothesis , i know little about php.
i just have to dig into the code , because i try a million time to config it .
and during that time , i have already configure right "ffmpeg_wrapper" , and this module told me that my ffmpeg works fine. so …… , i doubt it is about flashvideo , maybe i doesn't win
if my hypothesis is correct , could anybody help to fix
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | flashvideo.rar_.zip | 56.94 KB | haojiang |
Comments
Comment #1
haojiang commentedi follow the input from flashvideo and find that drupal use a """"escapeshellarg(str_replace('/'"""" to handle but flashvideo did not .
Comment #2
haojiang commentedhere is the module getid3 use it to handle :
escapeshellarg(str_replace('/', DIRECTORY_SEPARATOR, $file)).
but flashvideo didn't
still guess, and i am now trying to great a new drupal contain flashvideo and its necessary modules only to test
Comment #3
haojiang commentedyeah, i am sure i am right now
i use tool "search and replace" to find all getcwd function in flashvideo and the change the string with another php function str_replace('/', DIRECTORY_SEPARATOR,"all string type using getcwd() in line")
and now , my site have finally work with flashvideo .
and in the attachment , i upload my flashvideo.rar here (i have to chane is name to *.zip due to the upload limit)
you can diff what changes i have done (i just change the line which have getcwd,and do nothing else)
and another thing you should do is to create a new site to test if your origin site have once install flashvideo , because i found another strange thing is that i can't fully uninstall this module and thus my origin site still not support this.
by the way
winXP-sp3,drupal6,flashvideo-rc2
i just change two configuration in "admin/settings/flashvideo/edit/global"
1."""ffmpeg Command: *""" "-i @input -f flv -acodec libmp3lame -ar 22050 -ab 64k -ac 1 @output" , notice that mp3-->libmp3lame
2."""ffmpeg Path: *""" "C:\server\FFmpeg\ffmpeg.exe"
and leave the other thing default
enable Page-contentype and test. looking sites\default\files after submit your node , and you'll have a *.flv
i hope this would help someone who want to use the awesome module and dash_player in windows , and please forgive my poor english.
Comment #4
travist commentedHas this been tested for non-windows installs? I will not commit this unless it is tested on all platforms.
Comment #5
haojiang commentedsorry , travist , i know little about *nix, and i just test it in windows , and i am sure it's not fit for *nix .
and i am not a coder and don't know how to write a patch for it
Comment #6
haojiang commentedi think if *nix , just use the origin program is ok
great , i found that you have relase the final edition of flashvideo ,
thank you for your great job and share
Comment #7
attheshow commented