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

ffmpeg配置问题:Couldn‘t find ffmpeg or avconv - defaulting to ffmpeg, but may not work 环境: win10 python:3.6 1.安装 ffmpeg。通过pip安装的 ffmpeg 是源文件,不可执行。因此我们需要去 https://www.gyan.dev/ffmpeg/builds/ 下载对应文件。 2.下载后解压文件,得到 ffmpeg build 文件。 3.为 ffmpeg 添加系统变量。将 ffmpeg/bin 路径放到 系统环境 path 中。 4.如果到第三步,你在cmd 中输入 ffmpeg -version 还是报错,那么你需要执行以下操作: ( 阅读详情

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

##...
ffmpeg-4.2.2-win64-static.rar(找不到64位ffmpeg.exe的小朋友往这里看) FFmpeg是一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。采用LGPL或GPL许可证。它提供了录制、转换以及流化音视频的完整解决方案。它包含了非常先进的音频/视频编解码库libavcodec,为了保证高可移植性和编解码质量,libavcodec里很多code都是从头开发的。 ffprobe 查看媒体文件头信息的工具 ffplay 以 FFmpeg 框架为基础,外加渲染音视频库 libSDL 来构建的媒体文件播放器 立即下载

相关推荐

ffmpeg-20190616-1c3ed11-win64-static.zip

ffmpeg Java 视频格式转换器,包含263,264等库,2019年6月最新版

生成式 AI——ChatGPT、Dall-E、Midjourney 等算法理念探讨

将人类创造力与机器计算相结合,已经成为一种宝贵的工具,平台如ChatGPT和DALL-E 2正在不断突破我们想象力的边界。它们不仅能够制作文本内容,还能够创造出视觉艺术作品,应用范围广泛且多样化。 然而,与任何技术一样,其道德影响也是至关重要的。尽管生成式人工智能带来了无限的创造潜力,但我们也必须负责任地使用它,并意识到其潜在的偏见和数据操控能力。随着像ChatGPT这样的工具变得越来越易于使用,现在正是尝试和实验的最佳时机。无论你是艺术家、程序员还是技术爱好者,生成式人工智能领域都充满了等待被探索的

知来者逆的博客 2831

PCB布线避坑指南:为什么你的差分线等长总调不好?AD19蛇形等长技巧详解

本文详细解析了AD19环境下PCB差分线等长调整的核心技巧与常见问题。从差分信号等长的底层逻辑到AD19规则配置,再到蛇形等长高级技巧和信号完整性验证,帮助工程师解决差分线等长调整中的难题,提升高速PCB设计的信号质量。

weixin_28738397的博客 385

Genicious:用于洞察发现的情境化Few-shot提示

数据和洞察发现对于现代组织的决策至关重要。我们介绍了Genicious,这是一个基于LLM的接口,使用户能够与表格数据集交互并用自然语言提出复杂查询。通过对比多种提示策略和语言模型,我们开发了一个端到端工具,利用情境化Few-shot提示,在延迟、准确性和可扩展性方面表现出色。Genicious赋予利益相关者高效探索、分析和可视化其数据集的能力,同时通过基于角色的访问控制和Text-to-SQL方法确保数据安全。在当今的数字时代,数据已成为一种关键资源。

栖客 726

深度学习中 Internal Covariate Shift 问题以及 Batch Normalization 的作用

深度学习中 Internal Covariate Shift 问题以及 Batch Normalization 的作用前言一、Batch Normalization是什么?1.1 Internal Covariate Shift1.2 Internal Covariate Shift 带来的影响1.3 如何减缓 Internal Covariate Shift 问题带来的影响白化(Whitening)白化存在的问题二、Batch Normalization2.1 传统 Normalization2.2 改进

一扣解千愁的博客 4297

SAP中错记虚拟利润中心的调整,冲销处理实例

我非CO专业顾问。工作中遇到的问题,也会找资料,分析,测试。有时这个过程会拿到结果,解决问题。遂将过程记录下来备查。读者请谨慎参考!EC-PCA: 利润中心记账流程_9ke0-优快云博客。

专注SAP应用技术文章写作,致力于拉近用户与系统间的距离; 1796

成功解决AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe).

🎬遇到“Cannot find installation of real FFmpeg”的头疼问题吗?别担心,这里有你需要的解决方案!🔧 🌳在问题描述部分,我们会深入了解这个AssertionError的背后原因。🔍 🌳在解决方案部分,我们将一步步指导你如何正确安装并配置FFmpeg,确保你的项目能够顺利运行。🛠️ 🤝最后,我们鼓励你在阅读完本文后,积极分享你的经验,并与我们一同探讨更多关于FFmpeg的知识。💬 #FFmpeg #AssertionError #安装配置 #解决方案

创作高质量博文,分享知识,共同进步! 2006

DC算法竞赛——北京PM2.5浓度回归分析

北京PM2.5浓度回归分析 比赛结果(118/1150) 一. 概述 1、项目来源:https://www.dcjingsai.com/static_page/cmpList.html 2、给定数据字段如下: 3、使用方法:回归算法 4、目的:预测北京pm2.5值,使平均预测误差越小越好。 二、分析过程 setwd("E:/R数据源") #读入数据 data <- read.csv('p...

玻璃球的博客 3475

解决Cannot find installation of real FFmpeg (which comes with ffprobe)问题

1.问题描述 File "test.py", line 125, in <module> vid = skvideo.io.vread('fire1.jpg') File "C:\Users\fguby\Anaconda3\lib\site-packages\skvideo\io\io.py", line 133, in vread assert _HAS_FFMPEG, "Cannot find installation of real FFmpeg (which...

6450

整车 EOL下线 测试系统介绍

整车下线(EOL)测试专门针对整车进行设计开发,是车企将组装好的整车交付客户前的 最后一道检测工序。EOL 测试针对的是整车下线测试,不同于零部件下线,是整车级别的下线 测试,测试过程关系整车的每个零部件,其测试质量直接影响到整车的质量好坏。因此,整车EOL测试是整车下线必不可少的测试过程.

王小奎的博客 5490

RK3568移植AP6256

本文主要是记录RK3568移植正基的AP6256的WIFIBT模块,感兴趣的朋友可以一起学习!!!提示:以下是本篇文章正文内容,下面案例可供参考。

qq_24093081的博客 3715

AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe).

1、参考博客:https://www.cnblogs.com/freeweb/p/6897907.html 2、可以看到解压的文件夹下有一个configure文件,使用notepad或其他的工具打开它,搜索 build settings 将下面的代码修改如下(参考博客:https://blog.youkuaiyun.com/a_thousand_miles/article/details/81171457...

qq_35711921的博客 5077

OpenHarmony RK3568 从 32 位切换到 64 位用户空间指南

修改了编译参数(如修复 Q5 后),但 ThinLTO 缓存中保留了旧参数编译的 bitcode。这是一种节省内存的设计(32 位指针占 4 字节 vs 64 位占 8 字节),但在某些场景下需要切换为纯 64 位。切换到 64 位用户空间后,CPU 全程运行在 AArch64 状态,不再需要 AArch32 兼容模式。内核本身已经是 64 位(aarch64),切换用户空间位数不影响内核。(32 位兼容层)在纯 64 位系统中不再需要,可以关闭以减小内核体积。这两个参数对 64 位编译毫无意义,配合。

程小二的博客 690

[tsubame]

install using pippython install --user xxxssd2 TB SSD is installed as local scratch area in each compute node4.4.3.Local scratch area Each node has SSD as local scratch disk space available to your job

apsvvfb的专栏 373

第六节 LLaVA模型数据处理源码解读(input_ids/labels/attention_mask/image,上篇)

本篇文章直接介绍llava模型数据加工部分,整体结构说明llava多模态模型输入数据格式,其中包含input_ids/labels/attention_mask与image格式,并给出对应代码位置与整个数据加工流程。最重要,通过debug给出数据解释与代码解读,也通过一个真实数据给出模型输入格式说明。当你阅读完此篇文章,绝对透彻理解llava数据加工过程与内容。显然,一篇博客是无法呈现整个数据细节,我将继续下篇博客呈现数据细节处理。result = input.ne(3) # torch.ne函数调用。

weixin_38252409的博客 3194

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Cannot find installation of real FFmpeg (which comes with ffprobe).

说一下我走过的坑吧。 我是用在pycharm,一开始报错说没有FFmpeg,我就在设置里面下载了。 但是显示Cannot find installation of real FFmpeg (which comes with ffprobe). 看过很多博客,说是路径没有配好。 我就在自己这个项目相关的环境里找ffmpeg,发现并没有ffmpeg/bin这个路径。(虽然有ffmpeg....

哟哟哟哟哟哟 4130

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

关于Cannot find installation of real FFmpeg (which comes with ffprobe)问题

遇到Cannot find installation of real FFmpeg (which comes with ffprobe)问题 目标,将视频水平翻转 以下是代码

qq_34551518的博客 946

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe)

AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe) 问题描述: import skvideo.io vid = skvideo.io.vread('20211205220849.mp4') 这段代码会报错。 解决方案: 第一步 安装conda-forge conda-forge是编译的ffmpeg视频编解码库,它可直接对视频读存取 `conda install ffmpeg -c con

weixin_48192256的博客 2007

【win64中FFmpegReader报错:Cannot find installation of real FFmpeg (which comes with ffprobe).】

在自建kinetics-skeleton行为识别数据集训练时遇到了报错。发生在openpose制作json数据集的脚本中。

Jiagym的博客 540

python库ffmpeg的错误解决方法:“Couldn‘t find ffmpeg or avconv - defaulting to ffmpeg, but may not work“

python库ffmpeg的错误解决方法:"Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work"

一名在读学生 3万+

前端mp3文件转wav文件的实现

运行test.js文件,报错“An error occurred: Error: Cannot find ffmpeg”,如下图所示。

yihanzhi的博客 2187

skvideo出现Cannot find installation of ffmpeg问题

安装conda-forge conda-forge是编译的ffmpeg视频编解码库,它可直接对视频读存取 conda install ffmpeg -c conda-forge

smileformylove的博客 2038

FireFox插件安装问题:warning:Failed to find Python installation directory

添加环境变量也不能解决问题环境:win7,addon-sdk-1.17找到addon-sdk-1.17\bin\activate.bat用Notepad++打开搜索set PYTHONINSTALL=一般是下数上最后一个,等号后面为空的,填入你的python位置如:XXXX\py27\python.exe然后再运行bin\activate...

Naturespeaker的专栏 720

[python]时间序列预测

https://blog.youkuaiyun.com/ZVAyIVqt0UFji/article/details/81784639 周期时间序列的预测 (有python代码) 具有周期性特征的序列需要将周期性特征提取出来。python里面的statsmodels工具包里面有针对周期性分解的函数seasonal_decompose,我们可以将序列进行分解。seasonal_decompose这个函数里面...

apsvvfb的专栏 5349
上一篇: [tsubame]install shotdetect
下一篇: [tsubame]
三枚目
博客等级 码龄15年 49粉丝 109原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值