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

h264_qsv pixelformat problem #260

Open
rayacode opened this issue Jan 19, 2024 · 4 comments
Open

h264_qsv pixelformat problem #260

rayacode opened this issue Jan 19, 2024 · 4 comments

Comments

@rayacode
Copy link
Contributor

rayacode commented Jan 19, 2024

from 3 pixelformats supported with h264_qsv,
nv12 p010le qsv
only nv12 works, and p010le qsv will result in encoder exit code 1, (on windows), with intel i7 capable of qsv

another problem that i don't know if it needs another issue topic, so i say it below
when cancelling task by abortEncoding, after encoding exception which can get catched a iostream closed by IOException will also thrown, i also get Nullpointer for ffempeg variable inside encoder too, if encoding by it self got cancelled sooner than i call my own cancel and i can't also catch that. situation is i hit convert button the encode will go in encode exit 1 because for ex i have wrong pixelformat setup in very moment a button shows a cancell if you hit that but already canceled you have unmanaged nullpointer exception, and also both IOException and nullpointer happens, still the ffmpeg app is open and working and only way to shut it down is through windows task manager

@a-schild
Copy link
Owner

Hello @rayacode ,
the suppirted formats depends on the used ffmpeg binary and platform.
Since the bundled versions are 4.4.1, there is currently no support for the more modern encodings.
I'm looking into bundling them with ffmpeg 6.x in the future

@a-schild
Copy link
Owner

About the abort, please open another issue and show the code+log to reproduce the behaviour you see

@rayacode
Copy link
Contributor Author

rayacode commented Jan 28, 2024

Hello @rayacode , the suppirted formats depends on the used ffmpeg binary and platform. Since the bundled versions are 4.4.1, there is currently no support for the more modern encodings. I'm looking into bundling them with ffmpeg 6.x in the future

I wish i get this update soon since i'm building a converter, my goal is to let user set any custom encode preset by abilities of ffmpeg, right now they can choose different codecs and pixel formats on specified format container, with also other attrs which jave provides,

i also tried to concat videos but didn't get good results
i also want to know if you have example of to getting size of the output before encoding i want to show it to user when they choose their setting for convert.

I wonder also about possibility of android and jave

@a-schild
Copy link
Owner

You are welcome to test it with 6.x and then come back with a patch/merge request

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