- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a existing mp4 file to which I wish to append a few more frames.
What is the file writer parameters method to create a file writer to append data.
For instance, if I create file writer like this:
[cpp]m_fileWriterParams.m_portion_size = 0; vm_string_strcpy(m_fileWriterParams.m_file_name, (wchar_t *)m_inFileName.c_str()); status = m_fileWriter.Init(&m_fileWriterParams);[/cpp]It erases all the data in the current mp4 file. How do I initialize it in "Append" mode?
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I searched UMC docs and could not find any simple way. Is this really complicated?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try calling the PutData function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the response!!
No, did not call PutData.
As soon as the call to FileWriter.Init() happens, the data is cleared (it is a valid mp4 file). I think the file is opened in "Write" mode and not "Append" mode. So makes sense.
How do I open it in Append mode.

Not applicable
09-21-2012
02:15 PM
174 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aditya Kadambi wrote:
I have a existing mp4 file to which I wish to append a few more frames. What is the file writer parameters method to create a file writer to append data. For instance, if I create file writer like this:
m_fileWriterParams.m_portion_size = 0; vm_string_strcpy(m_fileWriterParams.m_file_name, (wchar_t *)m_inFileName.c_str()); status = m_fileWriter.Init(&m_fileWriterParams);
It erases all the data in the current mp4 file. How do I initialize it in "Append" mode?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page