Predrag Manojlovic
Predrag Manojlovic

Reputation: 378

DirectShow play two video files in a sequence?

"File Source (Async)" filter supports only one file per it's life. Is the a way to play two files in a sequence without rebuilding a graph?

Upvotes: 1

Views: 779

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69724

File Source (Async) only supplies random access byte stream to the filter graph, there are other components vital for playback: demultiplexers, decoders. No, it is not possible to enqueue another file through File Source (Async) filter.

Playing multiple files seamlessly otherwise is possible but requires to split graph into parts and connect them together in terms of sending data from one graph (reading from file, the one you rebuild with file change) to the other (with renderers, the one being never rebuilt and providing seamless playback user experience).

Read up other questions on bridging graphs:

Upvotes: 2

Related Questions