Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen poster fail,due to the error "output" folder #161

Open
luyaotang opened this issue Jan 29, 2020 · 1 comment
Open

gen poster fail,due to the error "output" folder #161

luyaotang opened this issue Jan 29, 2020 · 1 comment

Comments

@luyaotang
Copy link

ERROR Message:

Error poster running ffmpeg/avconv, try it manually, check your webserver error log:
D:/www/Apache_MySQL_PHP/ffmpeg/bin/ffmpeg -ss 4 -i "./galleries/Photo_图像1/英特尔杯上海之旅(2006.05)/2006intel杯获奖队伍展示/DSCN3364.mp4" -vcodec mjpeg -vframes 1 -an -f rawvideo -y "./galleries/Photo_图像1/英特尔杯上海之旅(2006.05)/2006intel杯获奖队伍展示/pwg_representative/2006intel杯获奖队伍展示/DSCN3364.jpg"

due to the operation guess the wrong output folder ,suppse to be "./galleries/Photo_图像1/英特尔杯上海之旅(2006.05)/2006intel杯获奖队伍展示/pwg_representative/DSCN3364.jpg", it fails

@luyaotang
Copy link
Author

pathinfo has bug on processing chinese char,replce the pathinfo by below:

function mb_pathinfo($filepath) {
preg_match('%^(.?)[\\/](([^/\\\\]?)(.([^\.\\\\/]+?)|))[\\/.]$%im',$filepath,$m);
if($m[1]) $ret['dirname']=$m[1];
if($m[2]) $ret['basename']=$m[2];
if($m[5]) $ret['extension']=$m[5];
if($m[3]) $ret['filename']=$m[3];
return $ret;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant