[FFmpeg-user] Piped Process
Farhad H.Ibragimov
tv at cliptv.az
Thu Aug 17 10:15:31 EEST 2017
Hi All ,
I have script like this
INPUT="udp://@234.5.2.21:1234"
OUTPUT1="239.65.83.1:1234"
OUTPUT2="239.65.84.1:1234"
OUTPUT3="239.65.85.1:1234"
ffmpeg -loglevel warning -y -i "$INPUT?fifo_size=5120000&buffer_size=10485760&overrun_nonfatal=1" -vcodec copy -strict experimental -dts_delta_threshold 1000 -acodec aac -ac 2 -isync -af aresample=async=1000 -ab 128k -f mpegts - |
ffmpeg \
-threads 2 \
-re -y -i - \
-filter_complex "[0:v]yadif=0,split=3[vout1][s2][s3]; [s2]scale=-2:480[vout2]; [s3]scale=-2:360[vout3]" \
-map 0:a -c:a copy -map "[vout1]" -c:v h264_qsv -g 75 -keyint_min 75 -sc_threshold 0 -b:v 1800k -maxrate 1800k -preset fast -bufsize 5400k -f mpegts "udp://@${OUTPUT1}pkt_size=1316&buffer_size=131070&reuse=1&ttl=32" \
-map 0:a -c:a copy -map "[vout2]" -c:v h264_qsv -g 75 -keyint_min 75 -sc_threshold 0 -b:v 1200k -maxrate 1200k -preset fast -bufsize 3600k -f mpegts "udp://@${OUTPUT2}?pkt_size=1316&buffer_size=131070&reuse=1&ttl=32" \
-map 0:a -c:a copy -map "[vout3]" -c:v h264_qsv -g 75 -keyint_min 75 -sc_threshold 0 -b:v 800k -maxrate 800k -preset fast -bufsize 2400k -f mpegts "udp://@${OUTPUT3}?pkt_size=1316&buffer_size=131070&reuse=1&ttl=32"
Everything work fine exept i cant manage PID from that piped process
.
Is that possible to convert that piped process to one ?
Thanks in advance
More information about the ffmpeg-user
mailing list