replicate / replicate-swift

Swift client for Replicate
https://replicate.com
Apache License 2.0
157 stars 33 forks source link

I use roop_face_swap, but here comes some problems #85

Closed keepClamDown closed 1 month ago

keepClamDown commented 1 month ago
image

the picture show my code but i get this error promote Command '['ffmpeg', '-i', '/tmp/tmp.mp4', '-c:v', 'libx264', '-crf', '23', '-preset', 'medium', '/tmp/output.mp4']' returned non-zero exit status 1. i need your help

tianye2856 commented 1 month ago

Same issue. Please give a demo how to upload video. There is only demo for local image. No demo for local video.

keepClamDown commented 1 month ago

Is there a problem with my video encoding format?

image
mattt commented 1 month ago

Hi @keepClamDown @tianye2856. Any errors you're seeing about ffmpeg are generated by your model, not the Swift client library specifically. Can you share a link to a failed prediction and/or the full logs?

keepClamDown commented 1 month ago

i only get the error code is Printing description of error: Command '['ffmpeg', '-i', '/tmp/tmp.mp4', '-c:v', 'libx264', '-crf', '23', '-preset', 'medium', '/tmp/output.mp4']' returned non-zero exit status 1. i can't get more info from the error info

keepClamDown commented 1 month ago

could you give me a demo for video use faceswap? use swift code~i need your help.

mattt commented 1 month ago

@keepClamDown Sorry, I can't help you with this. My recommendation would be to debug locally to the extent possible, such as using a simulator build that writes a video file to your directory and processing it ffmpeg running locally. That should give you a tighter iteration cycle than testing remotely.