We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6389f60 commit e29ac98Copy full SHA for e29ac98
source/ffmpeg-cpp/remuxing/remuxing.cpp
@@ -38,15 +38,12 @@ int main()
38
videoContainer->DecodeBestVideoStream(videoEncoder);
39
audioContainer->DecodeBestAudioStream(audioEncoder);
40
41
-
+ // Prepare the pipeline. We want to call this before the rest of the loop
42
+ // to ensure that the muxer will be fully ready to receive data from
43
+ // multiple sources.
44
videoContainer->PreparePipeline();
45
audioContainer->PreparePipeline();
46
- /*while (!videoContainer->IsDone())
- {
47
- videoContainer->Step();
48
- }*/
49
50
// Pump the audio and video fully through.
51
// To avoid big buffers, we interleave these calls so that the container
52
// can be written to disk efficiently.
0 commit comments