diff mbox

[FFmpeg-devel] avdevice/v4l2enc: add video4linux2 name alias

Message ID 20180614213904.14469-1-lou@lrcd.com
State Accepted
Commit 98e18910a3f19a1139654b2d14d0f3b2b3625cd1
Headers show

Commit Message

Lou Logan June 14, 2018, 9:39 p.m. UTC
Makes v4l2 indev name consistent with the v4l2 indev.

Signed-off-by: Lou Logan <lou@lrcd.com>
---
 libavdevice/v4l2enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lou Logan June 14, 2018, 9:55 p.m. UTC | #1
On Thu, Jun 14, 2018, at 1:39 PM, Lou Logan wrote:
> Makes v4l2 indev name consistent with the v4l2 indev.

Should say:
Makes v4l2 outdev name consistent with the v4l2 indev.

I changed this locally before sending, but forgot to re-make the updated patch.
Jun Zhao June 15, 2018, 12:09 a.m. UTC | #2
On Fri, Jun 15, 2018 at 5:56 AM Lou Logan <lou@lrcd.com> wrote:
>
> On Thu, Jun 14, 2018, at 1:39 PM, Lou Logan wrote:
> > Makes v4l2 indev name consistent with the v4l2 indev.
>
> Should say:
> Makes v4l2 outdev name consistent with the v4l2 indev.
>
> I changed this locally before sending, but forgot to re-make the updated patch.
LGTM if fix the commit message.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Carl Eugen Hoyos June 17, 2018, 4:25 p.m. UTC | #3
2018-06-14 23:39 GMT+02:00, Lou Logan <lou@lrcd.com>:

>  AVOutputFormat ff_v4l2_muxer = {
> -    .name           = "v4l2",
> +    .name           = "video4linux2,v4l2",

Wouldn't it make more sense to remove the extremely
long name at the next bump if consistency is needed
here?

Carl Eugen
Lou Logan June 17, 2018, 5:10 p.m. UTC | #4
On Sun, Jun 17, 2018, at 8:25 AM, Carl Eugen Hoyos wrote:
>
> Wouldn't it make more sense to remove the extremely
> long name at the next bump if consistency is needed
> here?

I don't think it matters too much to also have the alias video4linux2, or at least I can't think of any good reasons to remove it.

One reason for this trivial patch was so the v4l2 in/out-devs can be listed on one line in "ffmpeg -devices" or "ffmpeg -formats" like (all?) the others. One user reported that he was unaware of the outdev because he only saw the indev listed (possibly looking only for video4linux2).
Carl Eugen Hoyos June 17, 2018, 5:22 p.m. UTC | #5
2018-06-17 19:10 GMT+02:00, Lou Logan <lou@lrcd.com>:
> On Sun, Jun 17, 2018, at 8:25 AM, Carl Eugen Hoyos wrote:
>>
>> Wouldn't it make more sense to remove the extremely
>> long name at the next bump if consistency is needed
>> here?
>
> I don't think it matters too much to also have the alias video4linux2, or at
> least I can't think of any good reasons to remove it.
>
> One reason for this trivial patch was so the v4l2 in/out-devs can be listed
> on one line in "ffmpeg -devices" or "ffmpeg -formats" like (all?) the
> others. One user reported that he was unaware of the outdev because he only
> saw the indev listed (possibly looking only for video4linux2).

Thank you for the explanation.

Carl Eugen
Lou Logan June 19, 2018, 12:28 a.m. UTC | #6
On Thu, Jun 14, 2018, at 1:39 PM, Lou Logan wrote:
> Makes v4l2 outdev name consistent with the v4l2 indev.
> 
> Signed-off-by: Lou Logan <lou@lrcd.com>
> ---
>  libavdevice/v4l2enc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Pushed.
diff mbox

Patch

diff --git a/libavdevice/v4l2enc.c b/libavdevice/v4l2enc.c
index 85200d0a36..1c36f81f90 100644
--- a/libavdevice/v4l2enc.c
+++ b/libavdevice/v4l2enc.c
@@ -106,7 +106,7 @@  static const AVClass v4l2_class = {
 };
 
 AVOutputFormat ff_v4l2_muxer = {
-    .name           = "v4l2",
+    .name           = "video4linux2,v4l2",
     .long_name      = NULL_IF_CONFIG_SMALL("Video4Linux2 output device"),
     .priv_data_size = sizeof(V4L2Context),
     .audio_codec    = AV_CODEC_ID_NONE,