Open ericxbji opened 4 years ago
I use ffmpeg to push a camera video to a rtmp url, when I push with cmd ”ffmpeg -thread_queue_size 32 -f video4linux2 -i /dev/video2 -filter_complex "transpose=clock" -threads 6 -pix_fmt yuv420p -b:v 4096k -bufsize 4096k -vcodec h264_nvmpi -r 25 -f flv 'rtmp://xxx'“ ,I get mess video. When i remove the parmas -filter_complex "transpose=clock". It gets correct video. My camera video's size is 1920x1080. So i guess that this ffmpeg with nvmpi encode not handle transpose param. Thanks for reply.
I solve the problem by set the output size 1088x1920, the origin output is 1080x1920. The width and the height must be divided 16.
I use ffmpeg to push a camera video to a rtmp url, when I push with cmd ”ffmpeg -thread_queue_size 32 -f video4linux2 -i /dev/video2 -filter_complex "transpose=clock" -threads 6 -pix_fmt yuv420p -b:v 4096k -bufsize 4096k -vcodec h264_nvmpi -r 25 -f flv 'rtmp://xxx'“ ,I get mess video. When i remove the parmas -filter_complex "transpose=clock". It gets correct video. My camera video's size is 1920x1080. So i guess that this ffmpeg with nvmpi encode not handle transpose param. Thanks for reply.