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

Update v4l2m2m interface & create videoio.h #11298

Merged
merged 2 commits into from Dec 3, 2023

Conversation

shizhenghui
Copy link
Contributor

@shizhenghui shizhenghui commented Nov 30, 2023

Update v4l2m2m interface & create videoio.h

  1. Copy part of linux videodev2.h which is used in v4l2m2m
  2. Move userspace interface from nuttx/video/video.h to include/sys/videoio.h

Impact

N/A

Testing

CI

@shizhenghui shizhenghui changed the title move userspace interface from video.h to videoio.h Update v4l2m2m interface & create videoio.h Nov 30, 2023
@acassis
Copy link
Contributor

acassis commented Nov 30, 2023

@shizhenghui what is the purpose of this command:

ffmpeg -vcodec h264_v4l2m2m -i /stream/333.mp4 -pix_fmt rgb32 -f fbdev /dev/fb0

I assume it is only used on Linux side, since we don't have ffmpeg ported.

Please include more information and documentation about how to use video support on NuttX

@xiaoxiang781216
Copy link
Contributor

@shizhenghui what is the purpose of this command:

ffmpeg -vcodec h264_v4l2m2m -i /stream/333.mp4 -pix_fmt rgb32 -f fbdev /dev/fb0

I assume it is only used on Linux side, since we don't have ffmpeg ported.

Xiaomi made a porting two years ago.

Please include more information and documentation about how to use video support on NuttX

this is the first step, m2m driver and documentation will provide in the next step.

wangzhaofeng and others added 2 commits December 1, 2023 11:53
Signed-off-by: wangzhaofeng <wangzhaofeng@xiaomi.com>
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
@shizhenghui
Copy link
Contributor Author

shizhenghui commented Dec 1, 2023

@shizhenghui what is the purpose of this command:

ffmpeg -vcodec h264_v4l2m2m -i /stream/333.mp4 -pix_fmt rgb32 -f fbdev /dev/fb0

I assume it is only used on Linux side, since we don't have ffmpeg ported.

Please include more information and documentation about how to use video support on NuttX

@acassis Sorry for the trouble caused by the previous message. I have removed the ffmpeg command. After updating the m2m driver, I will provide an update on how to use v4l2m2m.

@shizhenghui shizhenghui closed this Dec 1, 2023
@shizhenghui shizhenghui reopened this Dec 1, 2023
@acassis
Copy link
Contributor

acassis commented Dec 1, 2023

@xiaoxiang781216 is it possible to submit the ffmpeg port to mainline or we need to wait for h264_v4l2m2m support first?

@xiaoxiang781216
Copy link
Contributor

@xiaoxiang781216 is it possible to submit the ffmpeg port to mainline or we need to wait for h264_v4l2m2m support first?

it will open source publicly within 6 months.

@xiaoxiang781216 xiaoxiang781216 merged commit 49398d3 into apache:master Dec 3, 2023
30 of 52 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.4.0 Dec 27, 2023
@jerpelea jerpelea moved this from To-Add to drivers in Release Notes - 12.4.0 Jan 8, 2024
@jerpelea jerpelea moved this from drivers to processed in Release Notes - 12.4.0 Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants