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

Cannot find a matching stream for unlabeled input pad 2 on filter Parsed_gltransition_0 #70

Open
CJL6015 opened this issue Jun 28, 2022 · 3 comments

Comments

@CJL6015
Copy link

CJL6015 commented Jun 28, 2022

env DISPLAY=:1 ffmpeg -i /ligaoliang/chart.mp4 -i /ligaoliang/back1.mp4 -filter_complex gltransition -y out.mp4
ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers. This is my cmd

@CJL6015
Copy link
Author

CJL6015 commented Jun 28, 2022

[root@VM-12-6-centos ~]# env DISPLAY=:1 ffmpeg -i /ligaoliang/chart.mp4 -i /ligaoliang/back1.mp4 -filter_complex gltransition -y out.mp4
ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 8 (GCC)
configuration: --enable-libx264 --enable-gpl --enable-opengl --enable-filter=gltransition --extra-libs='-lGLEW -lglfw -ldl'
libavutil 57. 17.100 / 57. 17.100
libavcodec 59. 18.100 / 59. 18.100
libavformat 59. 16.100 / 59. 16.100
libavdevice 59. 4.100 / 59. 4.100
libavfilter 8. 24.100 / 8. 24.100
libswscale 6. 4.100 / 6. 4.100
libswresample 4. 3.100 / 4. 3.100
libpostproc 56. 3.100 / 56. 3.100
Input #0, matroska,webm, from '/ligaoliang/chart.mp4':
Metadata:
encoder : Chrome
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0(eng): Video: vp8, yuv420p(progressive), 1080x1920, SAR 1:1 DAR 9:16, 1k tbr, 1k tbn (default)
Metadata:
alpha_mode : 1
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/ligaoliang/back1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.16.100
Duration: 00:00:35.80, start: 0.000000, bitrate: 5474 kb/s
Stream #1:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1080x1920, 5471 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
Metadata:
handler_name : L-SMASH Video Handler
vendor_id : [0][0][0][0]
Cannot find a matching stream for unlabeled input pad 2 on filter Parsed_gltransition_0

@HowToLoveChina
Copy link

`
static const AVFilterPad gltransition_inputs[] = {
{
.name = "from",
.type = AVMEDIA_TYPE_VIDEO,
.config_props = setup_gl,
},
{
.name = "to",
.type = AVMEDIA_TYPE_VIDEO,
}/*, //pacth here add comment
{NULL}
*/
};

static const AVFilterPad gltransition_outputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.config_props = config_output,
}
/*, //pacth here add comment
{NULL}
*/
};
`

description of AVFilterPad can't add {NULL}

@HowToLoveChina
Copy link

compile with ffmpeg 4.2.2 all is ok

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