-
Notifications
You must be signed in to change notification settings - Fork 201
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
Looking for validation of config file #1542
Comments
h264_v4l2m2m not supported at the moment but easy to add. Documentation on this encoder is sparse, if you have any post it and I'll take a look I don't have a pi to test on, can you run also run Also since apparently there's a hevc variant as well can you run |
Article used for enabling this encoder/decoder: h264_v4l2m2m
Also to add looks like
|
@mdhiggins Let me know if you need any other info from raspberry pi |
I was looking for more technical documentation similar to what's available for other hardware encoders like vaapi, QSV, or nvenc. Doesn't seem to be much out there beyond some very basic tutorials. The sample you provided seems to only be a decoder example since you're specifying the codec before the input file The example in the article is using the encoder since it comes after
One thing I did notice from reviewing some of the source code and updates for this hwaccel option is that it behaves a little differently in that it doesn't report itself on the -hwaccels list so I made some updates so that you can still use the decoder in this case Its probably unlikely that yuv420p is the only pix_fmt the encoder can use, you can check by running
Look for the line
As for settings you'll need, here are the important ones
Depending on supported pix_fmt options you may need to adjust that setting as well |
You also may be able to combine this with the drm hwaccel format to avoid any software steps but I can't confirm this without a test device and it does get more complicated |
Closing this out since support has been added, continue discussion if there are any issues here and I can reopen |
@mdhiggins Looks like
|
Got it, this can technically be solved by setting the |
Thanks man! I shall setup SMA in my Pi right away! |
@vrv501 I'm trying to achieve the same thing on my Raspberry Pi 4B (64 bit). I know little about
And this is my
Logs:
I would expect Thanks in advance :) |
Could you share the full logs? I'll take a look |
Sure, sent you an email. |
Hi, I'm currently looking to verify if following things can be achieved using SMA
Question 1:
After qBitt has downloaded the video, it will call SMA on the file (Changed settings in qBitt as described in wiki)
SMA has to convert the video(any codec format) to H264 8bit codec (Ignore if it's already in this format) and replace the old file
SMA will finish transcoding and hand back control to qBitt, which will hand back the new transcoded file to *arr
Is this what's happening under the hood?
Question 2:
I want SMA to transcode the video using my custom ffmpeg with h264_v4l2m2m encoder/decoder only (H/W accl is possible using h264_v4l2m2m on raspberry pi 4 for 64bit OS'es)
Example on how SMA should call ffmpeg:
ffmpeg -c:v h264_v4l2m2m -b:v 8M -c:a copy -i input.* output.mp4
Does the config file below suit the above behaviour?
h264_v4l2m2m
supports both encoding & decodingThe text was updated successfully, but these errors were encountered: