Replies: 1 comment 1 reply
-
Which i did is #!/bin/bash
ffmpeg -i rtsp://localhost:$RTSP_PORT/$MTX_PATH \
-vf scale=w=640:h=360:force_original_aspect_ratio=decrease \
-c:v h264 \
-sc_threshold 0 -g 48 -keyint_min 48 \
-profile:v main \
-b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k \
-max_muxing_queue_size 1024 \
-f rtsp rtsp://localhost:$RTSP_PORT/360p_$G1 &
ffmpeg -i rtsp://localhost:$RTSP_PORT/$MTX_PATH \
-vf scale=w=842:h=480:force_original_aspect_ratio=decrease \
-c:v h264 \
-sc_threshold 0 -g 48 -keyint_min 48 \
-profile:v main \
-b:v 1400k -maxrate 1498k -bufsize 2100k -b:a 128k \
-max_muxing_queue_size 1024 \
-f rtsp rtsp://localhost:$RTSP_PORT/480p_$G1 &
ffmpeg -i rtsp://localhost:$RTSP_PORT/$MTX_PATH \
-vf scale=w=1280:h=720:force_original_aspect_ratio=decrease \
-c:v h264 \
-sc_threshold 0 -g 48 -keyint_min 48 \
-profile:v main \
-b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k \
-max_muxing_queue_size 1024 \
-f rtsp rtsp://localhost:$RTSP_PORT/720p_$G1 api: yes
authMethod: http
externalAuthenticationURL: http://localhost:1337/streams/auth
hlsPartDuration: 500ms
paths:
"~^.+p_(.{36})$":
"~^(.{36})$":
runOnReady: /opt/mediamtx/scripts/mediamtx-concurrent-compression.sh
runOnReadyRestart: yes
runOnNotReady: rm -f /thumbnails/$G1.jpg But i dont know how to compute multiple streams into main |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I have followed file:
My current logic is:
What i want is: multiple qualities, so i can configure my frontend clients to choose between them.
But also might bot good to keep thumbnails feature i used.
Beta Was this translation helpful? Give feedback.
All reactions