我有一个非常旧的 .AVI 文件,正在尝试使用 FFMPEG 将其转换为 MP4 格式
这是我当前尝试转换的命令:
ffmpeg -i aVideo.avi -s 1980x1080 -c:a copy aNewVideo.mp4
Run Code Online (Sandbox Code Playgroud)
我正在使用版本ffmpeg version 4.2.4-1ubuntu0.1
这是我创建的 sh 脚本,可以轻松地让我转换视频以便与我的朋友分享。这不是我最好的作品...我是 JS 开发者 :O
hutber@hutber:/mnt/users/Downloads/Old$ sd
Select Resolution:
1) 1280x720
2) 1980x1080
#? 1
/mnt/users/Downloads/Old/1011 Random Goal 1.avi
/mnt/users/Downloads/Old/02.12.2021/1011 Random Goal 1.avi_02.12.2021_00.31_SD.mp4
ffmpeg -i /mnt/users/Downloads/Old/1011 Random Goal 1.avi -s 1280x720 -c:a copy /mnt/users/Downloads/Old/02.12.2021/1011 Random Goal 1.avi_02.12.2021_00.31_SD.mp4
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu …Run Code Online (Sandbox Code Playgroud) 环顾四周,找不到有关如何启用 alt+右键单击以调整窗口大小的任何信息?
编辑
我的错
运行 Unity 12.04,我在故障安全图形模式下登录,因为我无法在不安全的情况下启动我的 590GX Nvidida 卡,但这是另一个问题。
目前,我的 alt+click 有效,我可以拖动窗口。
但我目前不能,alt+右键单击以调整大小。
我一直在尝试使用以下命令将我的 DSLR 设置为网络摄像头:gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -threads 0 -f v4l2 /dev/video0但这会导致以下错误:
hutber@hutber:~/v4l2loopback-master$ gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -threads 0 -f v4l2 /dev/video4
ffmpeg version N-49161-g50e194e6e1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora …Run Code Online (Sandbox Code Playgroud) 我使用的是带有内核 5.11.0-25 的 Ubuntu 20.04。如果我连接蓝牙设备(例如,睡觉后的键盘或新的 USB 设备,但不是 SD 卡),系统将冻结大约 5 秒。音频将继续播放,但图像被冻结并且鼠标等将无法工作。
不幸的是我无法展示任何代码或想法。
我怎么解决这个问题?
当前通过 BT 连接到我的机器的设备列表:
hutber@hutber:~$ hciconfig -a
hci0: Type: Primary Bus: USB
BD Address: 5C:F3:70:A7:97:F3 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:1772646 acl:6128 sco:0 events:225073 errors:0
TX bytes:378842911 acl:443999 sco:0 commands:892 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE …Run Code Online (Sandbox Code Playgroud) 我有一些错误创建的文件夹。我想删除这些文件夹。
¬ 636
¬ 636.empty
¬ 637
¬ 638.empty
¬ 639
¬ 639.empty
Run Code Online (Sandbox Code Playgroud)
在这种情况下,我想删除636.empty并保留剩余的非空文件夹。
运行终端命令后,我希望sister删除文件夹中的所有文件夹。
¬ 636
¬ 637
¬ 638.empty
¬ 639
Run Code Online (Sandbox Code Playgroud)
删除的文件夹将是:
¬ 636.empty
¬ 639.empty
Run Code Online (Sandbox Code Playgroud)
我有一些25,000文件夹,其中可能1000 与empty文件夹重复
由于从 8.04->10.04 升级到 12.04,我无法再升级或安装新软件包。
我确实收到了大量错误,但第一个是 resyslog:
root@sub:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up rsyslog (5.8.6-1ubuntu8.6) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of ubuntu-minimal:
ubuntu-minimal depends on …Run Code Online (Sandbox Code Playgroud) 我知道gnome-terminal会打开一个新窗口,我想知道有没有办法打开一个新选项卡,而不仅仅是一个新窗口?
之后,有没有办法将命令传递到新窗口,例如
gnome-terminal && cd /
这将导致
cd /[编辑] 这些答案将说明如何将 cmds 传递到另一个终端,但它不会回答如何打开新TAB。这就是我所追求的,我不想打开多个终端。
问题
所以我从 Ubuntu 服务器 8.04->10.04->12.04 升级后遇到了这个问题。
初始命令
apt-get install -f
dpkg: warning: files list file for package `tcpd' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `python-pkg-resources' missing, assuming package has no files currently installed.
.... Many many more of these warnings
dpkg: warning: files list file for package `libxml-libxml-perl' missing, assuming no files currently installed.
(Reading database ... 1126 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10 (using .../libc6_2.15-0ubuntu10.5_i386.deb) ... …Run Code Online (Sandbox Code Playgroud)