Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-30 Thread Stefano Sabatini
On date Friday 2015-01-30 14:13:53 +0100, Matthijs Tempels encoded: > Hi, Just missed you on IRC :-/ > > > Op 30 jan. 2015, om 12:59 heeft Stefano Sabatini het > > volgende geschreven: [...] > > The simpler approach I can image is to add another option like > > -epoch_micros which replaces a %Nd

Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-30 Thread Matthijs Tempels
Hi, Just missed you on IRC :-/ > Op 30 jan. 2015, om 12:59 heeft Stefano Sabatini het > volgende geschreven: > > On date Friday 2015-01-30 11:01:16 +0100, Matthijs Tempels encoded: >> Hi Stefano, >> >> I did look at the strftime function, but strftime does not provide >> milliseconds.. > > Y

Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-30 Thread Stefano Sabatini
On date Friday 2015-01-30 11:01:16 +0100, Matthijs Tempels encoded: > Hi Stefano, > > I did look at the strftime function, but strftime does not provide > milliseconds.. Yeah, we need gettimeofday for that. > What i need is the exact time (to the millisecond) of the first frame of the > file..

Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-30 Thread Matthijs Tempels
Hi Stefano, I did look at the strftime function, but strftime does not provide milliseconds.. What i need is the exact time (to the millisecond) of the first frame of the file.. (so the date from the strftime might even be a few ms of, but we could compensate for that) a seconds-resolution is

Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-29 Thread Michael Niedermayer
On Thu, Jan 29, 2015 at 05:11:45PM +0100, Matthijs Tempels wrote: > improved the code: > > From 772232db7f6e1dc45e63929b0371acf0c13be7a1 Mon Sep 17 00:00:00 2001 > From: Matthijs Tempels > Date: Thu, 29 Jan 2015 16:33:46 +0100 > Subject: [PATCH] Improved %t handling to add a timestamp to the file

Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-29 Thread Matthijs Tempels
improved the code: >From 772232db7f6e1dc45e63929b0371acf0c13be7a1 Mon Sep 17 00:00:00 2001 From: Matthijs Tempels Date: Thu, 29 Jan 2015 16:33:46 +0100 Subject: [PATCH] Improved %t handling to add a timestamp to the filename including milliseconds --- libavformat/utils.c | 31 +

Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-29 Thread Stefano Sabatini
On date Wednesday 2015-01-28 14:03:06 +0100, Matthijs Tempels encoded: > From 15952b6cb38ac2f532a2f35d50e9dc4f8320c1c5 Mon Sep 17 00:00:00 2001 > From: Matthijs Tempels > Date: Wed, 28 Jan 2015 13:59:54 +0100 > Subject: [PATCH] Added the %t option to the filename pattern to add a > MMdd_HHmms

Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-28 Thread Matthijs Tempels
It seems there is also a way to use strftime, only this only provides a resolution to the second. Also, the patch like it is here does not work anymore on the latest master sorry about that.. > Op 28 jan. 2015, om 14:24 heeft wm4 het volgende > geschreven: > > On Wed, 28 Jan 2015 14:03:06 +0

Re: [FFmpeg-devel] Patch for timestamp pattern in filename

2015-01-28 Thread wm4
On Wed, 28 Jan 2015 14:03:06 +0100 Matthijs Tempels wrote: > From 15952b6cb38ac2f532a2f35d50e9dc4f8320c1c5 Mon Sep 17 00:00:00 2001 > From: Matthijs Tempels > Date: Wed, 28 Jan 2015 13:59:54 +0100 > Subject: [PATCH] Added the %t option to the filename pattern to add a > MMdd_HHmmssfff patte