[tsubame]python[AssertionError: Cannot find installation of real FFmpeg]
2017-11-24 20:13
651 查看
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 ##...
相关文章推荐
- configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
- windows下python 安装igraph库报错 Cannot find the C core of igraph on this system using pkg-config.的解决
- windows下python 安装igraph库报错 Cannot find the C core of igraph on this system using pkg-config.的解决
- python3 爬虫TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be
- ubuntu 创建Django工程出现:Cannot find installed version of python-django or python3-django.
- Cannot find installed version of python-django or python3-django
- Python Theano TypeError: Cannot convert Type TensorType(float64, vector) (of Variable Subtensor{int64:int64:}.0) into Type TensorType(float64, matrix)
- Uncaught TypeError: Cannot read property 'substring' of undefined
- 编译PHP时:configure: error: Cannot find MySQL header files under /usr/mysql
- Could not load file or assembly 'App_Web_xxxx' or one of its dependencies. The system cannot find the file specified.
- Error: Cannot find module 'core-js/library/fn/get-iterator'解决方案
- .Net Framework Initialization Error – Unable to find a version of the runtime to run this applicati
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'xml-bod
- nodeJs启动的时候:Error: Cannot find module '../build/Release/bson'的解决办法
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- react injectTapEventPlugin.js:23 Uncaught Error: Cannot find module "react/lib/EventPluginHub"
- 编译出错configure: error: Cannot find SNMP headers.
- Error:The number of method references in a .dex file cannot exceed 64K......
- configure: error: Cannot find ldap libraries in /usr/lib
- checking for SSL headers... configure: error: Cannot find ssl headers