fix camera orientation and increase aac bitrate to 192kbps
This commit is contained in:
parent
6c06905fc9
commit
cbc68f3212
2 changed files with 6 additions and 9 deletions
|
@ -6,9 +6,6 @@ source config
|
|||
adb connect ${android_camera}:$1
|
||||
|
||||
scrcpy \
|
||||
--no-playback \
|
||||
--no-control \
|
||||
--capture-orientation=270 \
|
||||
--video-source=camera \
|
||||
--camera-id=2 --camera-size=1920x1080 --camera-fps=30 \
|
||||
--v4l2-sink=/dev/video7
|
||||
--video-source=camera --no-audio --no-video-playback \
|
||||
--camera-id=2 --camera-size=1920x1080 --camera-fps=30 --orientation=90 \
|
||||
--v4l2-sink=/dev/video7
|
||||
|
|
|
@ -18,13 +18,13 @@ do
|
|||
#output_audio_filter="-filter:a loudnorm"
|
||||
|
||||
ffmpeg -hide_banner -loglevel ${LOGLEVEL} -threads:v 2 -threads:a 8 -filter_threads 2 \
|
||||
-thread_queue_size 512 -f v4l2 -s 1920x1080 -framerate 60 -pix_fmt yuv420p -i /dev/video7 \
|
||||
-thread_queue_size 512 -f v4l2 -framerate 30 -pix_fmt yuv420p -i /dev/video7 \
|
||||
-thread_queue_size 512 -f alsa -ac 2 -i plughw:CARD=USB ${input_audio_filter} \
|
||||
-bsf:a aac_adtstoasc -c:a aac -ac 2 -b:a 128k ${output_audio_filter} \
|
||||
-bsf:a aac_adtstoasc -c:a aac -ac 2 -b:a 192k ${output_audio_filter} \
|
||||
-init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va \
|
||||
-vf 'format=nv12,hwupload' \
|
||||
-c:v h264_vaapi -b:v 6000k -minrate:v 6000k -maxrate:v 6000k -bufsize:v 6000k \
|
||||
-r:v 60 -g:v 120 -bf:v 3 -refs:v 16 \
|
||||
-r:v 30 -g:v 120 -bf:v 3 -refs:v 16 \
|
||||
-f mpegts ${srt_output}
|
||||
|
||||
CURRENTDATE=`date +"%Y-%m-%d %T"`
|
||||
|
|
Loading…
Add table
Reference in a new issue