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 5996551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:07:09+00:00 2026-05-23T00:07:09+00:00

Problem: I have to save live video streams data which come as an RTP

  • 0

Problem:

I have to save live video streams data which come as an RTP packets from RTSP Server.
The data come in two formats : MPEG4 and h264. 
I do not want to encode/decode input stream.
Just write to a file which is playable with proper codecs. 

Any advice?

Best Wishes

History:

My Solutions and their problems:

Firt attempt: FFmpeg

I use FFmpeg libary to get audio and video rtp packets. 
But in order to write packets i have to use av_write_frame : 
which seems that decode /encode takes place.
Also, when i give output format as mp4 ( av_guess_format("mp4", NULL, NULL)
the output file is unplayable. 
[ any way ffmpeg has bad doc. hard to find what is wrong]

Second attempth: DirectShow

Then i decide to use DirectShow. I found a RTSP Source Filter. 
Then a Mux and File Writer.
Cretae Single graph:

RTSP Source --> MPEG MUX ---> File Writer

It worked but the problem is that  the output file is not playable
if graph is not stoped. If something happens, graph crashed for example
the output file is not playable
Also i can able to write H264 data, but the video is completely unplayable.
  • 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-23T00:07:10+00:00Added an answer on May 23, 2026 at 12:07 am

    The MP4 file format has an index that is required for correct playback, and the index can only be created once you’ve finished recording. So any solution using MP4 container files (and other indexed files) is going to suffer from the same problem. You need to stop the recording to finalise the file, or it will not be playable.

    One solution that might help is to break the graph up into two parts, so that you can keep recording to a new file while stopping the current one. There’s an example of this at http://www.gdcl.co.uk/gmfbridge.

    If you try the GDCL MP4 multiplexor, and you are having problems with H264 streams, see the related question GDCL Mpeg-4 Multiplexor Problem

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

Sidebar

Related Questions

I have a problem about streaming my video to server in real-time from my
Problem: I have an address field from an Access database which has been converted
Problem I have timestamped data, which I need to search based on the timestamp
My question comes from a problem which I have right now. I have MainWindow,
I have a program that captures live data from a piece of hardware on
I have a problem in a Windows Forms application with Bitmap.Save failing when I
With reference to Problem with date day/month reversing on save I have further noted
Problem: I have two spreadsheets that each serve different purposes but contain one particular
Problem: We have a web app that calls some web services asynchronously (from the
Greeting, I have a problem with flash media live encoder CS5 that when I

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.