Hello,
I'm trying to convert the following command/script for running with vaapi hardware acceleration , but i can't!
Is it possible for multiple inputs?
Thank u!
#!/bin/bash
ffmpeg -loglevel fatal \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.80:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.81:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.82:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.83:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.84:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.85:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.86:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.87:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-rtsp_transport udp -r 25 -analyzeduration 0 -thread_queue_size 512 -i rtsp://192.168.204.88:554/user=monitor_password=pass_channel=1_stream=0.sdp \
-filter_complex "color=s=1920x1080:c=gray [base];\
[0:v] setpts=PTS-STARTPTS, scale=637x357 [0];\
[1:v] setpts=PTS-STARTPTS, scale=637x357 [1];\
[2:v] setpts=PTS-STARTPTS, scale=637x357 [2];\
[3:v] setpts=PTS-STARTPTS, scale=637x357 [3];\
[4:v] setpts=PTS-STARTPTS, scale=637x357 [4];\
[5:v] setpts=PTS-STARTPTS, scale=637x357 [5];\
[6:v] setpts=PTS-STARTPTS, scale=637x357 [6];\
[7:v] setpts=PTS-STARTPTS, scale=637x357 [7];\
[8:v] setpts=PTS-STARTPTS, scale=637x357 [8];\
[base][0] overlay=shortest=0:x=2:y=2 [tmp1];\
[tmp1][1] overlay=shortest=0:x=642:y=2 [tmp2];\
[tmp2][2] overlay=shortest=0:x=1282:y=2 [tmp3];\
[tmp3][3] overlay=shortest=0:x=2:y=362 [tmp4];\
[tmp4][4] overlay=shortest=0:x=642:y=362 [tmp5];\
[tmp5][5] overlay=shortest=0:x=1282:y=362 [tmp6];\
[tmp6][6] overlay=shortest=0:x=2:y=722 [tmp7];\
[tmp7][7] overlay=shortest=0:x=642:y=722 [tmp8];\
[tmp8][8] overlay=shortest=0:x=1282:y=722"\
-c:v libx264 -preset ultrafast -b:v 8M -maxrate 8M -bufsize 4M -metadata service_provider=ESCAM -metadata service_name=Camera-Mosaic -f mpegts pipe:1