This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
Using pipes result in immediate call of .complete callback #551
Unanswered
ggschelling
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm using 2 pipes as input (video and audio). Everything looks good until ffmpeg-kit initialized. Then the .complete callback gets called immediately. Changing these inputs to a public url (e.g. https://........mp4), everything works fine. Hopefully, someone could help me with this issue or point me in the right direction.
Some more details:
I'm using a broadcast extension on iOS, which provide me with uncompressed CMSampleBuffers. These get appended in 2 different AVAssetWriter objects (audio and video). After encoding, AVAssetWriterDelegate gets called. There I get Data packages which will be written into the video and audio pipes. This is working nicely for a few seconds until a sufficient buffer is build and ffmpeg-kit gets initialized. As an output, I defined a TCP connection to my MacBook where ffplay is waiting for input. Ffplay opens a window and plays the encoded video and audio. Then the mentioned .complete callback gets called and stops sending data to ffplay.
I can't tell what the problem is. It somehow seems that ffplay-kit is done working and triggers completion. Maybe it's done reading the file up until the current status. But it should continue read data from the pipes and forward it to the tcp connection.
Any idea? I do appreciate any help/hints! Thx in advance 🙏
Code:
Here I get the video and audio
Data
packets:Build a buffer to not loose any packets during initialization:
Initialization of ffmpeg command:
Beta Was this translation helpful? Give feedback.
All reactions