由于 Plex 服务器和松下电视之间的兼容性错误,使其正常工作的唯一方法是将所有内容重新混合到 MKV,直接复制所有流(视频、音频、字幕)
看起来很简单:
avconv -i "input.avi" -c copy "output.mkv"
Run Code Online (Sandbox Code Playgroud)
除了:
avconv version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:00:59 with gcc 4.6.3
[mpeg4 @ 0x8422140] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'input.avi':
Metadata:
encoder : VirtualDubMod 1.5.4.1 (build 2117/release)
Duration: 00:27:38.52, start: 0.000000, bitrate: 1173 kb/s
Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 640x352 [PAR 1:1 DAR 20:11], 25 tbr, 25 tbn, 25 tbc
Stream …Run Code Online (Sandbox Code Playgroud) 我必须桥接千兆网络接口。
/etc/network/interfaces 是:
auto lo
iface lo inet loopback
# Set up interfaces manually, avoiding conflicts with, e.g., network manager
iface eth0 inet manual
iface eth1 inet manual
# Bridge setup
auto br0
iface br0 inet static
bridge_ports eth0 eth1
address 192.168.88.2
broadcast 192.168.88.255
netmask 255.255.255.0
gateway 192.168.88.254
dns-nameservers 192.168.88.254
Run Code Online (Sandbox Code Playgroud)
但是MTU只有1500
myth@myth:~$ traceroute --mtu 192.168.88.1
traceroute to 192.168.88.1 (192.168.88.1), 30 hops max, 65000 byte packets
1 RoboStation.local (192.168.88.1) 0.278 ms F=1500 0.279 ms 0.287 ms
Run Code Online (Sandbox Code Playgroud)
如果我运行以下命令:
myth@myth:~$ sudo ifconfig eth0 …Run Code Online (Sandbox Code Playgroud) 我有一个带有已发布 Windows 共享的 Synology Diskstation。在服务器和客户端(Ubuntu 12.04)上,我都有用户名和密码匹配的用户帐户。(神话/神话)
该共享安装有:
//192.168.88.1/plex /mnt/plex cifs username=myth,password=xxxx 0 0
Run Code Online (Sandbox Code Playgroud)
我可以在共享上创建、读取和删除文件。我无法编辑或覆盖它们。
它们被创建为:
-rw-rw-r-- 1 1026 users 725178368 Mar 18 13:12
Run Code Online (Sandbox Code Playgroud)
服务器(Synology DiskStation,运行 DSM4.1,他们自己的 Linux 风格)有一个名为 myth 的用户。客户端 (Ubuntu 12.04) 有一个名为 myth 的用户。两个帐户具有相同的密码。
所以,似乎我需要将 uid 1026 映射到用户神话?我怎么做?
来自 DiskStation 的 smb.conf:
[global]
printcap name=cups
winbind enum groups=yes
security=user
local master=no
realm=*
passdb backend=smbpasswd
printing=cups
winbind enum users=yes
load printers=yes
workgroup=WORKGROUP
[plex]
invalid users=nobody,nobody
valid users=nobody,guest,admin,myth,nobody
comment="Storage Location For PlexMediaServer"
path=/volume1/plex
guest ok=yes
browseable=yes
fileindex=yes
mediaindex=no
edit synoacl=no
enable …Run Code Online (Sandbox Code Playgroud) 在 Ubuntu 12.04 中,我编写了以下 udev 规则来修复/devUSB RF 遥控器的名称。
这些曾经是:
KERNEL=="event[0-9]*", ATTRS{name}=="BTC USB Multimedia Cordless Keyboard", ATTRS{phys}=="usb-0000:00:1a.0-1.2/input0", NAME="input/rfremote0"
KERNEL=="event[0-9]*", ATTRS{name}=="BTC USB Multimedia Cordless Keyboard", ATTRS{phys}=="usb-0000:00:1a.0-1.2/input1", NAME="input/rfremote1"
Run Code Online (Sandbox Code Playgroud)
这有效,启动时总是有/dev/input/rfremote[0, 1]
然后我升级到 14.04,这些停止工作并出现以下错误:
[ 15.540765] systemd-udevd[382]: NAME="input/rfremote0" ignored, kernel device nodes can not be renamed; please fix it in /etc/udev/rules.d/99-emprex.rules:3
[ 15.673842] systemd-udevd[382]: NAME="input/rfremote1" ignored, kernel device nodes can not be renamed; please fix it in /etc/udev/rules.d/99-emprex.rules:4
Run Code Online (Sandbox Code Playgroud)
如何让规则再次发挥作用?
我已将 Ubuntu PC 从 10.04 升级到 12.04。
问题是主文件夹上的所有权限都是错误的。
所以,我做了以下事情:
sudo chown -R james:james /home/james/*
sudo chown -R james:james /home/james/.*
sudo chown -R htpc:htpc /home/htpc/*
sudo chown -R htpc:htpc /home/htpc/.*
Run Code Online (Sandbox Code Playgroud)
但是您最终会在 james:james 或 htpc:htpc 中的两个文件夹中获得所有文件,具体取决于您运行命令的方式。
如何成为链接,我该如何解决?
按照要求:
james@htpc:~$ ls -l /home
total 8
drwxr-xr-x 41 james james 4096 May 20 19:32 htpc
drwxr-xr-x 31 james james 4096 May 20 20:04 james
james@htpc:~$ ls -l /home/htpc
total 236
drwxr-xr-x 4 james james 4096 Nov 25 13:19 Desktop
drwxr-xr-x 2 james james 4096 …Run Code Online (Sandbox Code Playgroud) 我有一个 MKV,我用它来使用 DeVeDe 创建 DVD
MKV 嵌入了 vobsub 格式的字幕,DeVeDe 不支持(或被窃听,不确定)
我决定使用额外的 ffmpeg 参数选项将字幕刻录到输出中,我从这里获取:
https://trac.ffmpeg.org/wiki/How%20to%20burn%20subtitles%20into%20the%20video
所以我已经更新到最新的 ffmpeg 并添加了以下额外参数:
-filter_complex "[0:v][0:s]overlay[v]" -map [v] -map 0:a
所以完整的命令是:
ffmpeg -i ~/Input.mkv -vf scale=720:412,fifo,pad=720:576:0:82:0x000000 -y -target pal-dvd -sn -acodec copy -g 12 -t 60.0 -ac 2 -s 720x576 -threads 3 -trellis 1 -mbd 2 -b 2616000 -aspect 16:9 /var/tmp/previewfile_01_01.mpg -filter_complex "[0:v][0:s]overlay[v]" -map [v] -map 0:a
Run Code Online (Sandbox Code Playgroud)
但从 DeVeDe 我得到:
[AVFilterGraph @ 0xa744ca0] No such filter: '"'
Run Code Online (Sandbox Code Playgroud)
在 shell 中运行它会得到:
Output pad "default" with type video of …Run Code Online (Sandbox Code Playgroud)