Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Encoding from network takes ages compared with FFmpeg-mobile library #11

@buntupana

Description

@buntupana

I'm using this command to encode a video from web:

-y -reconnect 1 -i https://snapcellvideos.s3.amazonaws.com/manual/24/manualupload_16098586962947166522.mp4 -filter_complex "[0:v] pad=iw:'if(gt(iw, ih), iw, ih)':(ow-iw)/2:(oh-ih)/2, crop=iw:iw, scale=-1:480, setsar=1 [clip0]; [0:a] anull [audio0]; [clip0][audio0] concat=n=1:v=1:a=1 [v][a]" -map '[v]' -map '[a]' -c:a aac -c:v h264 -crf 18 -r 30 -preset veryfast /output_path/output_file.mp4

With FFmpeg-mobile library it takes around 100 seconds to encode it but with FFmpeg-kit it takes 639 seconds

I've check with local videos and it takes the same aprox, so the problem is related to videos from web

Version: com.arthenica:ffmpeg-kit-full-gpl:4.4.LTS

Metadata

Metadata

Assignees

Labels

androidAffect Android platformappleAffect Apple platformsffmpeg-bugSomething isn't right in ffmpeg source codefixed-in-v4.5Fixed in release v4.5libraryAffects the libraryv4.4Affects v4.4 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions