Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpp是否可以将bmp格式编码为jpeg #764

Open
zhaoyuRobotics opened this issue Jan 14, 2025 · 6 comments
Open

mpp是否可以将bmp格式编码为jpeg #764

zhaoyuRobotics opened this issue Jan 14, 2025 · 6 comments

Comments

@zhaoyuRobotics
Copy link

zhaoyuRobotics commented Jan 14, 2025

root@radxa-cm5-io:~/mpp/build/linux/aarch64/test# ./mpi_enc_test -w 2048 -h 1536 -t 8 -i ./test.bmp -o ./test.jpg

mpp[19612]: mpi_enc_utils: cmd parse result:
mpp[19612]: mpi_enc_utils: input file name: ./test.bmp
mpp[19612]: mpi_enc_utils: output file name: ./test.jpg
mpp[19612]: mpi_enc_utils: width : 2048
mpp[19612]: mpi_enc_utils: height : 1536
mpp[19612]: mpi_enc_utils: format : 0
mpp[19612]: mpi_enc_utils: type : 8
mpp[19612]: mpi_enc_test: ./mpi_enc_test start
mpp[19612]: mpi_enc_test: jpege default encode only one frame. Use -n [num] for rc case
mpp[19612]: mpp_info: mpp version: 331ee68 author: nyanmisaka 2024-12-11 fix[mpp]: Fix input_task_count for async enc
mpp[19612]: mpi_enc_test: 0xffff900019e0 encoder test start w 2048 h 1536 type 8
mpp[19612]: mpp_platform: client 1 driver is not ready!
mpp[19612]: mpp_platform: client 3 driver is not ready!
mpp[19612]: mpp_platform: client 12 driver is not ready!
mpp[19612]: mpp_platform: client 18 driver is not ready!
mpp[19612]: mpp_enc: MPP_ENC_SET_RC_CFG bps 11796480 [0 : 0] fps [30:30] gop 60
mpp[19612]: mpi_enc_test: chn 0 found last frame. feof 1
mpp[19612]: mpi_enc_test: chn 0 encoded frame 0 size 0
mpp[19612]: mpi_enc_test: chn 0 found last packet
mpp[19612]: mpi_enc_test: chn 0 encode 1 frames time 5 ms delay 0 ms fps 170.82 bps 0
mpp[19612]: mpi_enc_test: ./mpi_enc_test average frame rate 170.82

@zhaoyuRobotics
Copy link
Author

test.zip

@HermanChen
Copy link
Collaborator

目前只支持图像像素数据,不支持这种带格式头的

@zhaoyuRobotics
Copy link
Author

图像像素数据指的是?可否细说下。如果最好有相关转换示例的话会更好的帮助我理解,谢谢。

@123lj-z
Copy link

123lj-z commented Jan 16, 2025

你好,请问我运行mpi_enc_test时,输入为一段yuv视频时,能编码出jpg的图片(但是图片色彩不对),但是只输入一帧yuv时,输出的jpg图片错误。请问为什么输入一帧yuv数据时,不能编码为有效的jpg格式。
image
1737008251476

1737008081972

@HermanChen
Copy link
Collaborator

看起来是高度上的对齐问题

@HermanChen
Copy link
Collaborator

jpeg 高度 16 对齐看下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants