I have a https input that I want to crop the top (control) and side (chat bar).
I am using the -vf "crop=1600:980:0:1080"
and this works fine.
When I want to scale my cropped input by using
-vf "crop=1600:980:0:180,scale=1920:1080"
I get an Error: Command not found - -c:v libx264
Any ideas on what i am doing wrong here.
Here is the ffmpeg part of the script:
ffmpeg \
-hide_banner -loglevel error \
-nostdin \
-s ${CAPTURE_SCREEN_RESOLUTION} \
-r ${VIDEO_FRAMERATE} \
-draw_mouse 0 \
-f x11grab \
-i ${DISPLAY} \
-f pulse \
-ac 2 \
-i default \
-vf "crop=1600:980:0:1080,scale=1920:1080" \
-c:v libx264 \
-pix_fmt yuv420p \
-profile:v main \
-preset slow \
-x264opts "nal-hrd=cbr:no-scenecut" \
-minrate ${VIDEO_BITRATE} \
-maxrate ${VIDEO_BITRATE} \
-g ${VIDEO_GOP} \
-c:a aac \
-b:a ${AUDIO_BITRATE} \
-ac ${AUDIO_CHANNELS} \
-ar ${AUDIO_SAMPLERATE} \
-f flv ${RTMP_URL}
I have also tried to -vf "crop=1600:980:0:1080;scale=1920:1080"