transitive-bullshit / ffmpeg-gl-transition

FFmpeg filter for applying GLSL transitions between video streams.
651 stars 126 forks source link

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

Open CJL6015 opened 2 years ago

CJL6015 commented 2 years ago

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 commented 2 years ago

[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 commented 2 years ago

` 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 commented 2 years ago

compile with ffmpeg 4.2.2 all is ok