小编Duk*_*gal的帖子

FFmpeg 以除 1920x1080 之外的任何分辨率从 uvc /dev/video0 捕获

基本上问题是 FFmpeg 不会在我的 Linux 系统上捕获 1920x1080,而其他视频捕获应用程序会,但 FFmpeg 将成功地从同一系统上的同一设备捕获其他分辨率。诡异的。我尝试了很多 FFmpeg 命令行的组合,并念了很多咒语,但都没有解决问题。

我在具有 16GB RAM 的 Ryzen 2200G 的 Ubuntu 19.04 桌面上使用 FFmpeg。

我的目标是创建一个可以在 Web 浏览器中显示的 H264 mp4 视频,数据来自 USB UVC 设备。生成的文件应该可以在 Windows 上的 QuickTime 播放器和 Web 浏览器中正常播放。

以下是有关我的设置和已知用法的一些事实:

  1. 我有一个 HDMI UVC 转 USB 设备,能够输入 4K 视频。
  2. 当我使用 FFmpeg 以除 1920x1080 之外的任何分辨率捕获视频时,FFmpeg 都可以正常工作
  3. FFmpeg 还可以很好地捕获 4k 输入以及所有较低分辨率
  4. gstreamer 似乎能够捕获数据 - 它创建了一个巨大的文件(参见下面的附录 1 输出)
  5. Ubuntu 的桌面 guvcview 程序可以毫无问题地显示来自 uvc 设备的视频,并且不需要特殊配置即可执行此操作。
  6. 我在命令行模式下使用 Ubuntu 的桌面 guvcview 程序从 uvc 设备捕获 1920x1080 的视频,它处理得很好。

附录1:uvc设备

ubuntu@render001:~$ ls /dev/vid* …
Run Code Online (Sandbox Code Playgroud)

ffmpeg

8
推荐指数
1
解决办法
2万
查看次数

Ubuntu 仍然说软件包需要在更新后更新

我做了 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)

ubuntu

4
推荐指数
1
解决办法
6061
查看次数

Python 3.6 不能在 Windows 10 上运行

使用 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)

windows powershell python windows-10

-1
推荐指数
1
解决办法
1万
查看次数

标签 统计

ffmpeg ×1

powershell ×1

python ×1

ubuntu ×1

windows ×1

windows-10 ×1