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

Unknown encoder 'libx264' #37

Open
ominfowave opened this issue Apr 18, 2022 · 2 comments
Open

Unknown encoder 'libx264' #37

ominfowave opened this issue Apr 18, 2022 · 2 comments

Comments

@ominfowave
Copy link

Describe the bug
Getting this error message while applying complex filter "Unknown encoder 'libx264'"

To Reproduce
Use the following command:
"-i " + clipUri + " -i " + videoUri + " -t 0.1 -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000 -filter_complex " +
"[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1,setsar=1,fps=30,format=yuv420p[v0];" +
"[1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1,setsar=1,fps=30,format=yuv420p[v1];" +
"[1:a]aformat=sample_rates=48000:channel_layouts=stereo[a1];" +
"[v0][2:a][v1][a1]concat=n=2:v=1:a=1[v][a]" +
" -map [v] -map [a] -c:v libx264 -c:a aac -movflags +faststart " + outputUri

Expected behavior
Merged video output file

Smartphone (please complete the following information):

  • Device: Redmi note 5 pro
  • OS: 9
@RGdevz
Copy link

RGdevz commented May 5, 2022

same

@rehmanjameel
Copy link

Describe the bug Getting this error message while applying complex filter "Unknown encoder 'libx264'"

To Reproduce Use the following command: "-i " + clipUri + " -i " + videoUri + " -t 0.1 -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000 -filter_complex " + "[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720-1-1,setsar=1,fps=30,format=yuv420p[v0];" + "[1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720-1-1,setsar=1,fps=30,format=yuv420p[v1];" + "[1:a]aformat=sample_rates=48000:channel_layouts=stereo[a1];" + "[v0][2:a][v1][a1]concat=n=2:v=1:a=1[v][a]" + " -map [v] -map [a] -c:v libx264 -c:a aac -movflags +faststart " + outputUri

Expected behavior Merged video output file

Smartphone (please complete the following information):

  • Device: Redmi note 5 pro
  • OS: 9

Remove libx264 it will not work with it and use mpeg4 instead
visit these links:
https://superuser.com/a/944874
https://stackoverflow.com/a/67488418

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

3 participants