eroji / rtsp2mjpg

RTSP to MJPEG stream conversion using FFmpeg and FFserver
99 stars 41 forks source link

Program not listening to input/output options #29

Open rw377 opened 1 year ago

rw377 commented 1 year ago

I have tried numerous options to get the video output zoomed in but the program isn't working with the options provided. I have attempted to enter these indocker-compose.yaml per the readme, and then re-running docker-compose up on the container, but the output does not get zoomed in. The options I am running are -vf "scale=2*iw:-1, crop=iw/2:ih/2" and I have tried putting this in FFMPEG_INPUT_OPTS, FFMPEG_OUTPUT_OPTS, and even under the Dockerfileand the stream.sh manually when these didn't work.

I know the options being used are correct though, as when I tried running the following manuallythrough ffmpeg, which is essentially what the stream container seems to be doing, this does zoom video correctly when viewing 'video.mjpg': ffmpeg -hide_banner -rtsp_transport tcp -i rtsp://Ht1bBz:NrRj8DKPLdSl@192.168.0.26:554/live/ch0 -vf "scale=1*iw:-1, crop=iw/2:ih/2" video.mjpg