avconvの代わりにffmpegを使う

avconvの代わりにffmpegを使う

使用したい2つのbashスクリプトがあり、avconvが必要です。

スクリプトを実行するとエラーが発生します。

bash: avconv: command not found

ところで、pacmanやcowerでavconvがどこにあるのかわからないので、ffmpegを使用するようにスクリプトを変更できるかどうか疑問に思います。

これは私のスクリプトです。

stream.sh

#!/bin/bash
avconv -re -v error -fflags +genpts -i "$1" -c copy -f mpegts pipe:1

ライブ放送.sh

#!/bin/bash
livestreamer -O "$1" best | avconv -re -v error -fflags +genpts -i pipe:0 -bsf h264_mp4toannexb -vcodec libx264 -acodec ac3 -f mpegts pipe:1

ベストアンサー1

おすすめ記事