我在使用X264 Fourcc编解码器的VideoWrite时遇到了ffmpeg错误.我已经安装了所有依赖项.如何解决这个问题.我一直使用的示例代码如下.
VideoWriter oVideoWriter ("path.mp4", CV_FOURCC('X','2','6','4'), 15, frameSize, false);
Run Code Online (Sandbox Code Playgroud)
操作系统:64位Ubuntu 14.04
控制台错误:
[libx264 @ 0x8d6220] broken ffmpeg default settings detected
[libx264 @ 0x8d6220] use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x8d6220] preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 0x8d6220] speed presets are listed in x264 --help
[libx264 @ 0x8d6220] profile is optional; x264 defaults to high
Could not open codec 'libx264': Unspecified errorOpenCV Error: Unsupported format or combination of formats (Your version of Gstreamer doesn't support this …Run Code Online (Sandbox Code Playgroud) 我在这个网站上安装了我的ubuntu中的rockmongo .当我试图从浏览器打开rockmongo时,它显示出致命的错误,如下所述.
错误:
Fatal error: ini_set(): To prevent data corruption, you are not allowed to turn on the mongo.native_long setting on 32-bit platforms in Unknown on line 0
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题,任何人都可以为我解决这个问题.
我在文本文件中有文件名列表,需要使用scp命令将每个文件传输到服务器.我正在从Read.sh读取文件名并将每个文件名传递给transfer.sh脚本,但scp没有在此传输脚本中执行命令.如果我单独运行transfer.sh并传递args它的工作正常.
LIST.TXT
/home/kittu/file1.txt
/home/kittu/file2.txt
/home/kittu/file3.txt
Run Code Online (Sandbox Code Playgroud)
Read.sh
#!/bin/bash
while read p; do
echo $p
./transfer.sh "$p"
done <List.txt
Run Code Online (Sandbox Code Playgroud)
transfer.sh
#!/usr/bin/expect -f
# get filename from command-line
set f [lindex $argv 0]
spawn scp "$f" user@192.168.4.151:/home/user/Desktop/
expect "password"
send "123\r"
interact
Run Code Online (Sandbox Code Playgroud)
我只是运行Read.sh
>./Read.sh
Run Code Online (Sandbox Code Playgroud)
输出:
/home/user/Desktop/file1.txt
spawn scp /home/mbox140/Desktop/test.sh mbox140@192.168.4.151:/home/mbox140/Desktop/videos/
user@192.168.4.151's password:
Run Code Online (Sandbox Code Playgroud)
它没有执行下一个声明.请给我任何解决方案.
我想知道如何使用Jquery在Android数字小键盘上检测"下一步"按钮事件.请给我解决方法如何触发该按钮事件.