基本上问题是 FFmpeg 不会在我的 Linux 系统上捕获 1920x1080,而其他视频捕获应用程序会,但 FFmpeg 将成功地从同一系统上的同一设备捕获其他分辨率。诡异的。我尝试了很多 FFmpeg 命令行的组合,并念了很多咒语,但都没有解决问题。
我在具有 16GB RAM 的 Ryzen 2200G 的 Ubuntu 19.04 桌面上使用 FFmpeg。
我的目标是创建一个可以在 Web 浏览器中显示的 H264 mp4 视频,数据来自 USB UVC 设备。生成的文件应该可以在 Windows 上的 QuickTime 播放器和 Web 浏览器中正常播放。
以下是有关我的设置和已知用法的一些事实:
ubuntu@render001:~$ ls /dev/vid* …Run Code Online (Sandbox Code Playgroud) 我做了 sudo apt-get update 和 sudo apt-get upgrade 这导致:
Hit http://security.ubuntu.com saucy-security/universe Translation-en
Ign http://security.ubuntu.com saucy-security/main Translation-en_US
Ign http://security.ubuntu.com saucy-security/universe Translation-en_US
Fetched 8,843 kB in 6s (1,422 kB/s)
Reading package lists... Done
ubuntu@core01:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-headers-generic linux-headers-virtual linux-image-virtual linux-virtual python3-distupgrade ubuntu-release-upgrader-core
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
ubuntu@core01:~$
Run Code Online (Sandbox Code Playgroud)
所以我做了:
sudo do-release-upgrade
Checking for a new …Run Code Online (Sandbox Code Playgroud) 使用 Windows 10。
首先,我卸载任何现有版本的 Python 3 或 Python 2.0
https://www.python.org/ftp/python/3.6.0/python-3.6.0-amd64.exe
然后我运行上面的程序,Windows好像安装好了(我选择“Add Python 3.6 to the path”)。我点击“立即安装”。
我运行 Windows Powershell。
我输入 python3 并没有任何反应。
PS C:\Users\d> python
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable progr
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException …Run Code Online (Sandbox Code Playgroud)