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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:33:30+00:00 2026-06-18T20:33:30+00:00

I am using Live555/openRTSP based code to stream an H.264 video source to an

  • 0

I am using Live555/openRTSP based code to stream an H.264 video source to an mp4 file, and would like to concurrently read the earlier parts of the file (from a different application). Changing the fopen to be fid = _fsopen(fileName, "wb", _SH_DENYWR) (from OutputFile.cpp) clearly isn’t enough, because it makes no difference and the media players still won’t open it (is that the write line for the mp4 output?)

On a related note if I simulate an unclean shutdown of the software (e.g. power failure) the unfinished files are not readable by any media players. I assume that what is written to the file on file-close is what allows a media player to understand the file. This is also a situation I’d like to code for, if possible, and is quite likely the really the same problem as above?

Any pointers/answers/thoughts greatly received 🙂

  • 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-06-18T20:33:31+00:00Added an answer on June 18, 2026 at 8:33 pm

    In case anybody ever needs the same, this is how I did it, and it was easier than I imagined:

    • Change fopen in OutputFile.cpp to the file-sharing call _fsopen
      (share read access)
    • Every 10 seconds in the
      QuickTimeFileSink::continuePlaying() function I call completeOutputFile(), thus keeping the header up to date (with video length, etc).

    Windows Media Player didn’t like it (probably tried to get exclusive file access), but VLC was quite happy to read the file whilst I was still streaming into it.

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

Sidebar

Related Questions

Recently I downloaded Live555 server source code from their site. I tried to compile
I'm trying to stream rtsp video via tcp using mplayer in windows minGW shell
I'm trying to get the RTSP video stream play in my Android App using
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using ASIHTTPRequest, I downloaded a zip file containing a folder with several audio files.
Using the RichTextArea in GWT, It looks like I can only change the font
Using this code, the following execution yields strange results: C 100 R W The
using xmltextreader, how would I load a hashtable. XML: <base><user name=john>2342343</user><user name=mark>239099393</user></base> This was
using grep, vim's grep, or another unix shell command, I'd like to find the
using this code: Java Server side: ... out = new PrintWriter(this.client.getOutputStream(), true); ... public

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.