Replies: 2 comments 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_$G1api: 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.jpgBut i dont know how to compute multiple streams into main |
1 reply
|
This discussion is being locked automatically because the last update was more than 2 years ago. Do not use the content of this discussion as reference since it's probably outdated! The official documentation is the only place in which you can find up-to-date answers. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions