arthenica / ffmpeg-kit

FFmpeg Kit for applications. Supports Android, Flutter, iOS, Linux, macOS, React Native and tvOS. Supersedes MobileFFmpeg, flutter_ffmpeg and react-native-ffmpeg.
https://arthenica.github.io/ffmpeg-kit
GNU Lesser General Public License v3.0
4.45k stars 594 forks source link

Command validation issue #868

Closed pedromassango closed 10 months ago

pedromassango commented 1 year ago

Description The following command is giving error

Expected behavior Command to work.

Current behavior package shows error

To Reproduce Use:

final ffmpegCommand = """-i '$inputPath' -t $videoDuration -vf "zoompan=z='if(lt(t,0.2),1.02,if(lt(t,0.6),0.98,1))':d=80:s=1920x1080" -c:a copy '$outputPath'""";

Run and see the logs:

[Parsed_zoompan_0 @ 0x600003dc1ce0] [Eval @ 0x17d256948] Undefined constant or missing '(' in 't,0.6),0.98,1))'
[Parsed_zoompan_0 @ 0x600003dc1ce0] Failed to configure output pad on Parsed_zoompan_0
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument

Screenshots If applicable, add screenshots to help explain your problem.

Logs

[Parsed_zoompan_0 @ 0x600003dc1ce0] [Eval @ 0x17d256948] Undefined constant or missing '(' in 't,0.6),0.98,1))'
[Parsed_zoompan_0 @ 0x600003dc1ce0] Failed to configure output pad on Parsed_zoompan_0
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!

Environment

Other Add any other context about the problem here.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 10 months ago

This issue was closed because it has been stalled for 7 days with no activity.