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

Input format v4l2 is not available #1290

Closed
3 tasks done
SageKwun opened this issue Jul 15, 2024 · 1 comment
Closed
3 tasks done

Input format v4l2 is not available #1290

SageKwun opened this issue Jul 15, 2024 · 1 comment

Comments

@SageKwun
Copy link

Version information

  • fluent-ffmpeg version: 2.1.3
  • ffmpeg version: git-2024-07-11-092ef40 Copyright (c) 2000-2024 the FFmpeg developers
  • OS: ubuntu 23.04

Code to reproduce

ffmpeg('/dev/video0')
      .inputOptions([
        '-f', 'v4l2',
        '-input_format', 'mjpeg'
      ])
      .videoFilter('scale=640:360')
      .videoCodec('h264_qsv')
      .outputOptions('-preset:v veryfast')
      .outputOptions('-maxrate 1000k')
      .outputOptions('-bufsize 1000k')
      .outputOptions('-r 30')
      .outputOptions('-g 60')
      .format('mpegts')
      .output('my url')
      .run();

(note: if the problem only happens with some inputs, include a link to such an input file)

Expected results

I tried

ffmpeg -f v4l2 -i /dev/video0 -vf scale=640:360 -c:v h264_qsv -preset:v veryfast -maxrate 1000k -bufsize 1000k -r 30 -g 60 -f mpegts 'my url' 

and it succeed. I turn in to fluent-ffmpeg format, but error:

node_modules/.pnpm/[email protected]/node_modules/async/lib/async.js:582
                    tasks[index].apply(null, arguments);
                                 ^
Error: Input format v4l2 is not available

Observed results

Checklist

  • I have read the FAQ
  • I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
  • I have included full stderr/stdout output from ffmpeg
@stepin
Copy link

stepin commented Oct 9, 2024

It's related to #1282

@SageKwun SageKwun closed this as completed Oct 9, 2024
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