Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6885047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:35:09+00:00 2026-05-27T05:35:09+00:00

I just have simple filter graph whick takes media streams from rtsp source[ generally

  • 0

I just have simple filter graph whick takes media streams from rtsp source[ generally h264 and mp4 ] and save them using an mp4 muxer to a file…

RtspSourceFilter ---> MP4 Muxer ---> File Writer.

It works OK. But i have constraint[ new requirment now]. I have to write file based on two criteria: their size and duration…Suppose that user can define rules such as:

if duration > 1 hour or size > 1 gb then write stream to new file

In my graph in order to this,

I have to stop my graph based on conditions and create and start new
one with new file name…

That is bad since at ever file i have to re-connect my source and possibly lost some data…

What is the best way to deal with it ?

My Solution: [ But not satisfied with it ]

I have the source code of RtspSourceFilter and MP4Muxer[open source] so that forgot FileWriter…MP4 Muxer became a writer with Muxer…So stop it internally and write when necessary and then cretae new file…Do some buffering for not looosing data…

   RTSP Source Filter ---> New MP4 Writer [ a writer with mp4 muxer in it]

But this introduce unnecessary complexity…Now i became maintainer of MUX operation via New MP4 Writer…Since i have no time to really understand what Mux do, i have to modify-hack it to behave what i want… Analogy: I have car and i will make a helicopter from it…It will be very ugly and un-trusted helicopter…Probably my New MP4 Filter [code] will be so…[ Big Ball of Mud]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:35:10+00:00Added an answer on May 27, 2026 at 5:35 am

    It sounds like GMFBridge may be of use to you. It allows you to create one source graph, and multiple sink graphs. Then when your constraint is met, bridge the source graph to a new sink graph.

    If you put the bridge in buffer (non-discard) mode, you should not loose any samples.

    However, you will have to investigate if this solution works for you. Have a look at the sample applications for a quick overview.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just create a simple Graph Source Filter [ MPEG4 || H264 ] ---->
I have a sqldatasource where i have added a simple filter expression just for
I have my own RTSP Source Filter solution which is still under development but
I have simple direct Direct Show Filter: Source ---> Decoder --->Renderer I run the
I'm now testing GKPeerPickerController. I have a simple app that just have a button
I'm trying to create a very simple REST server. I just have a test
I have a simple class that essentially just holds some values. I have overridden
I have a simple Django view that just returns URL parameters, but if I
I have this simple test project just to test the IncludeExceptionDetailInFaults behavior. public class
I've been doing simple multi-threading in VB.NET for a while, and have just gotten

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.