while true; do
if kill -0 $pid ; then
sleep 10
else
ffmpeg -shortest -re -y -err_detect aggressive -i \
rtmp://127.0.0.1/movies/my.stream timeout=10 -codec copy \
-map 0 -bsf:v h264_mp4toannexb,dump_extra -f segment \
-segment_time 60 -progress /tmp/ffmpeg.log /video/my.stream#%09d.ts &
pid=$!
fi
done
--extra-version=3.1.3-by-jidckii --libdir=/usr/lib/ffmpeg --shlibdir=/usr/lib/ffmpeg --arch=amd64 --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvpx --enable-libxvid --enable-x11grab --enable-decklink --extra-cflags=-I/usr/lib/Blackmagic_DeckLink_SDK_10.8/Linux/include/ --extra-ldflags=-L/usr/lib/Blackmagic_DeckLink_SDK_10.8/Linux/include/
--extra-libs
ничего не нашел в интернетах.ffmpeg -f decklink -i 'DeckLink HD Extreme 3D+@9' -c:v h264 -b:v 4M -maxrate 4000k -bufsize 4000K -c:a copy -f mpegts udp://239.100.111.102:1234
-bsf:v h264_mp4toannexb
Bitstream filters:
aac_adtstoasc
chomp
dump_extra
dca_core
h264_mp4toannexb
hevc_mp4toannexb
imxdump
mjpeg2jpeg
mjpegadump
mp3decomp
mpeg4_unpack_bframes
mov2textsub
noise
remove_extra
text2movsub
vp9_superframe
Router#sh ip ospf ?
<1-65535> Process ID number
border-routers Border and Boundary Router Information
database Database summary
interface Interface information
neighbor Neighbor list
virtual-links Virtual link information