[FFmpeg-user] Re-writing hot .ts file that rotates every 24 hours in realtime
Korn Moffle
korn.moffle at hotmail.com
Tue Feb 16 09:33:26 EET 2021
Hi,
thank you for your reply:
What I am trying to do:
a. copy the file in realtime ? So, ffmpeg would be rewriting file1.ts into file2.ts as file1.ts is constantly being written into.
b. tell ffmpeg to read the file with a constant 3 second delay from the most updated frame?
c. if a new file appears, detect it and switch to it?
My existing solution of using -re and -sseof has several disadvantages:
1. if use -sseof and -re together, I am missing the beginning of the file
2. if use only -re, then I need to launch ffmpeg few seconds after the new file is created otherwise I would be constantly hours behind.
3. I am sure there are a lot of other issues that I am not seeing
What is OS?
TS files are written on Windows 10 64 bit
What language the program is written in?
The program is written in GNU C++ (GCC) , but we can either use the library of if there is a way to do it from MSDOS shell - even better!
Thank you!
Sent from Outlook<http://aka.ms/weboutlook>
________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Michael Glenn Williams <michael.glenn.williams at smartblondeco.com>
Sent: Friday, February 12, 2021 7:18 PM
To: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Subject: Re: [FFmpeg-user] Re-writing hot .ts file that rotates every 24 hours in realtime
Hi Korn,
We need additional info to help you. What O/S are you working with?
This is relevant to the buffered input and output when reading from stdin
and writing to stdout.
What language are you writing your script/program in?
This is relevant to what capabilities your tool will have access to.
Thank you for your question!
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list