Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Unknown encoder 'libwebp_anim' #1079

Open
alitaimoor1415 opened this issue Dec 6, 2024 · 0 comments
Open

Unknown encoder 'libwebp_anim' #1079

alitaimoor1415 opened this issue Dec 6, 2024 · 0 comments

Comments

@alitaimoor1415
Copy link

alitaimoor1415 commented Dec 6, 2024

Description
I am trying to create sticker from video using this. and i run this command
"ffmpeg -codecs | grep webp" and getting this results which is in "Current behavior".

Expected behavior
It should be support as encoder is available for libwebp and libwebp_anim.

Current behavior
flutter: configuration: --cross-prefix=arm64-ios-darwin- --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk --prefix=/Users/sue/Projects/arthenic
Screenshot 2024-12-06 at 10 36 51 AM
a/ffmpeg-kit/prebuilt/apple-ios-arm64-simulator/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8 --target-os=darwin --enable-neon --enable-asm --ar=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='/Users/sue/Projects/arthenica/ffmpeg-kit/.tmp/gas-preprocessor.pl -arch aarch64 -- clang -arch arm64 -target arm64-apple-ios12.1-simulator -march=armv8-a+crc+crypto -mcpu=generic -DFFMPEG_KIT_ARM64_SIMULATOR -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20230903 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -O2 -mios-simulator-version-mi<…>
flutter: libavutil 58. 2.100 / 58. 2.100
flutter: libavcodec 60. 3.100 / 60. 3.100
flutter: libavformat 60. 3.100 / 60. 3.100
flutter: libavdevice 60. 1.100 / 60. 1.100
flutter: libavfilter 9. 3.100 / 9. 3.100
flutter: libswscale 7. 1.100 / 7. 1.100
flutter: libswresample 4. 10.100 / 4. 10.100
flutter: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/ali_mac/Library/Developer/CoreSimulator/Devices/1069CCA9-1586-4B31-88EB-CF8B90304EA7/data/Containers/Data/Application/D30151A7-5D2D-49FF-A81D-EF2FD60087F9/Documents/Trimmer/1733463535436401_trimmed:Dec6,2024-10:39:10.mp4':
flutter: Metadata:
flutter: major_brand :
flutter: isom
flutter:
flutter: minor_version :
flutter: 512
flutter:
flutter: compatible_brands:
flutter: isomiso2avc1mp41
flutter:
flutter: encoder :
flutter: Lavf60.3.100
flutter:
flutter: Duration:
flutter: 00:00:02.02
flutter: , start:
flutter: 0.042993
flutter: , bitrate:
flutter: 659 kb/s
flutter:
flutter: Stream #0:0
flutter: [0x1]
flutter: (und)
flutter: : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 576x1026 [SAR 1:1 DAR 32:57], 530 kb/s
flutter: ,
flutter: 30 fps,
flutter: 30 tbr,
flutter: 15360 tbn
flutter: (default)
flutter:
flutter: Metadata:
flutter: handler_name :
flutter: VideoHandler
flutter:
flutter: vendor_id :
flutter: [0][0][0][0]
flutter:
flutter: encoder :
flutter: Lavc61.19.100 libx264
flutter:
flutter: Stream #0:1
[GETX] CLOSE DIALOG 580423593
flutter: [0x2]
flutter: (und)
flutter: : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s
flutter: (default)
flutter:
flutter: Metadata:
flutter: handler_name :
flutter: SoundHandler
flutter:
flutter: vendor_id :
flutter: [0][0][0][0]
flutter:
flutter: [vost#0:0 @ 0x12cd87ed0] Unknown encoder 'libwebp_anim'
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: FFmpeg command failed with return code: 1
#0 _CreateStickerFromVideoScreenState._trimAndConvertToSticker. (package:action_take1/Screens/Viewer/widgets/create_sticker_screen.dart:100:13)

To Reproduce
by running this command:
final ffmpegCommand =
'-i "$outputPath" -vf "fps=10,scale=512:-1:flags=lanczos" '
'-c:v libwebp_anim -loop 0 -an -q:v 70 "$stickerPath"';

Screenshots
attaching screen shot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant