小编Noj*_*741的帖子

Linux sh 脚本抛出“#!/bin/sh: not found”

我有一个脚本

#!/bin/sh

# Automatically remove a torrent and delete its data after a specified period of
# time (in seconds).

TARGET=/var/www/transmission/completed
USER=name
PASS=pass
BIN="/usr/bin/transmission-remote"

# The default is 5 minutes (in seconds).
CUTOFF=`expr 100 \* 3`

##############################################
### You shouldn't need to edit below here. ###
##############################################

# Tokenise over newlines instead of spaces.
OLDIFS=$IFS
IFS="
"

for ENTRY in `$BIN -n $USER:$PASS -l | grep 100%.*Done.*Finished`; do

    # Pull the ID out of the listing.
    ID=`echo $ENTRY | sed …
Run Code Online (Sandbox Code Playgroud)

linux bash sh ubuntu

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

仅使用 ffmpeg 按语言转换特定视频和音频轨道

例如,如果我的视频有 3 个音频流:1 个英语、1 个德语、1 个立陶宛语。对于每个视频,它可以按随机顺序排列,如果我不知道女巫编号是立陶宛语音频,我将如何转换文件并仅选择立陶宛语?因此,对于一个视频,立陶宛语将是第三个音轨,而对于顺序,它将是第二个音轨,依此类推(随机)。

audio video language ffmpeg

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

标签 统计

audio ×1

bash ×1

ffmpeg ×1

language ×1

linux ×1

sh ×1

ubuntu ×1

video ×1