Closed yehot closed 5 years ago
When I use gl-transition for video which ratios is 9:16 (such as 1080x1920, 720x1280, 540x960),glsl filter rending bug,same like issues #7
ffmpeg command:
./ffmpeg \ -i media/a1.mp4 \ -i media/a2.mp4 \ -filter_complex " \ [0:v]split[v000][v010]; \ [1:v]split[v100][v110]; \ [v000]trim=0:2[v001]; \ [v010]trim=2:3[v011t]; \ [v011t]setpts=PTS-STARTPTS[v011]; \ [v100]trim=0:3[v101]; \ [v110]trim=3:4[v111t]; \ [v111t]setpts=PTS-STARTPTS[v111]; \ [v011][v101]gltransition=duration=1:source=./swap.glsl[vt0]; \ [v001][vt0][v111]concat=n=3[outv]" \ -map "[outv]" \ -c:v libx264 -profile:v baseline -preset slow -movflags faststart -pix_fmt yuv420p \ -y media/out_1.mp4
video info:
➜ ~ ffmpeg -i a1.mp4 ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers built with Apple LLVM version 9.1.0 (clang-902.0.39.2) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-ffplay --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100 libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100 libpostproc 55. 1.100 / 55. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/yehot/Desktop/mgc-ffmpeg-source/media/a1.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2018-09-21T11:17:21.000000Z Duration: 00:00:23.40, start: 0.000000, bitrate: 8414 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1080x1920, 8095 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default) Metadata: creation_time : 2018-09-21T11:17:21.000000Z handler_name : Alias Data Handler encoder : AVC Coding Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default) Metadata: creation_time : 2018-09-21T11:17:21.000000Z handler_name : Alias Data Handler
Thanks @yehot. This should be fixed by #29.
When I use gl-transition for video which ratios is 9:16 (such as 1080x1920, 720x1280, 540x960),glsl filter rending bug,same like issues #7
ffmpeg command:
video info: