[tsubame]python[AssertionError: Cannot find installation of real FFmpeg]

18 篇文章 0 订阅
5 篇文章 0 订阅

job.sh

#bin/bash

#qsub -g tga-shinoda ./1_genShot.sh

infile=/gs/hs0/tga-xx/xx/annotationFiles/Train-6988-shuffle
out_dir=/gs/hs0/tga-xx/xx/videoshot_iccv/shotFrames
FFMPEG_PATH=/gs/hs0/tga-xx-deep/xx/library/ffmpeg/bin/
PATH=$FFMPEG_PATH:$PATH

for line in `cut -d" " -f1`; do
        clip_name=`basename $line | cut -d"." -f1`
        if [ ! -r ${out_dir}/${clip_name}/*.finish ];then
                echo $clip_name
        fi
done < ${infile} | xargs -L 1 -P 7 python genShot.py --output_dir ${out_dir} --video_name

genShot.py

import commands
import skvideo.io
##...

#a,b=commands.getstatusoutput('shotdetect-cmd -i %s -o %s -s %d -a %s -d 100000000000' %(video_path, out_dir, thresh, video_name)) #won't work, if I add $PATH in .bashrc
commands.getstatusoutput('/gs/hs0/tga-shinoda/15M54105/videoshot_iccv/Shotdetect/build/shotdetect-cmd -i %s -o %s -s %d -a %s -d 100000000000' %(video_path, out_dir, thresh, video_name))


reader = skvideo.io.ffmpeg.FFmpegReader(video_path)
#error:Cannot find installation of real FFmpeg
#solution: in job.sh, write PATH=$FFMPEG_PATH:$PATH

##...
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值