Re: Changing timestamps in video files

2020-05-19 Thread songbird
Nicolas George wrote:
...
> Note that I was not criticizing Cindy. Speculating and reminiscing are
> essential activities for Libre Software users. I was rather mocking the
> OP, who comes and ask a question, and then disappears mysteriously. What
> was the point, really?

  note my other reply is to a more recent post by
the OP.

  not everyone is on a hurried schedule.  :)  relax...


  songbird



Re: Changing timestamps in video files

2020-05-19 Thread Nicolas George
Tixy (12020-05-19):
> Ah, sorry. In my email client Cindy's reply showed up under the OP's
> post today with more details. Looking again, I see that Cindy's email
> is in fact a reply to and old post in the thread I've since deleted and
> not the OP's post today.

Happens to anybody.

Note that I was not criticizing Cindy. Speculating and reminiscing are
essential activities for Libre Software users. I was rather mocking the
OP, who comes and ask a question, and then disappears mysteriously. What
was the point, really?

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature


Re: Changing timestamps in video files

2020-05-19 Thread Tixy
On Tue, 2020-05-19 at 14:46 +0200, Nicolas George wrote:
> Tixy (12020-05-19):
> > Try reading the email Cindy was replying to.
> 
> I already did: technical points, speculating around what the OP
> actually
> wanted.

Ah, sorry. In my email client Cindy's reply showed up under the OP's
post today with more details. Looking again, I see that Cindy's email
is in fact a reply to and old post in the thread I've since deleted and
not the OP's post today.

-- 
Tixy



Re: Changing timestamps in video files

2020-05-19 Thread Nicolas George
Tixy (12020-05-19):
> Try reading the email Cindy was replying to.

I already did: technical points, speculating around what the OP actually
wanted.

-- 
  Nicolas George


signature.asc
Description: PGP signature


Re: Changing timestamps in video files

2020-05-19 Thread Tixy
On Tue, 2020-05-19 at 14:14 +0200, Nicolas George wrote:
> Cindy Sue Causey (12020-05-19):
> 
> 
> Funny thing: three weeks later, still speculating what the original
> question was about, without any input from the person who asked it.

Try reading the email Cindy was replying to.

-- 
Tixy



Re: Changing timestamps in video files

2020-05-19 Thread Nicolas George
Cindy Sue Causey (12020-05-19):


Funny thing: three weeks later, still speculating what the original
question was about, without any input from the person who asked it.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature


Re: Changing timestamps in video files

2020-05-19 Thread Cindy Sue Causey
On 4/29/20, elvis  wrote:
>
> On 29/4/20 8:29 pm, Anders Andersson wrote:
>> On Tue, Apr 28, 2020 at 5:57 PM Steve Keller  wrote:
>>> Is there any tool in Debian that is able to change the timestamp in
>>> video files, e.g. .mov, .avi, .mp4, etc.?
>>>
>>> For image files I use jhead -ta  but I haven't found
>>> anything for video.
>> $ ls -gGh faked_evidence.avi
>> -rw-r--r-- 1 700M Apr 29 12:26 faked_evidence.avi
>> $ touch -t 0512241337 faked_evidence.avi
>> $ ls -gGh faked_evidence.avi
>> -rw-r--r-- 1 700M Dec 24  2005 faked_evidence.avi
>
> Don't try that on faked_evidence.pdf
>
> Pdfs have an internal timestamp you need to change as well.
>
>
> I think this is what he wants for movie files, but I am not sure they
> have the time encoded into them...


At least some movie files DO have the time encoded into them. I can't
remember which one of my cameras does this, but one of them gives the
camera's "birthday" as the timestamp for ALL of the THOUSANDS of
videos I've ever taken with it. It does stamp images with the correct
information. Must all be why it was available secondhand. :)

The details escape me now, but, at some point, I tripped over that
there IS some kind of internal stamp that IS correct. However I
encountered a usage case that outed that, the timestamp some Debian
package or another disclosed corresponded with the JPEG files that
were numerically in the same daily directory with the video I was
processing at the time.. Was a major *YEEHAW* moment when it occurred.

Just can't remember which software package was the HERO that day. If
it wasn't a Debian package, it's possible Youtube was what disclosed
that data, instead, after the video was posted online...

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with birdseed *



Re: Changing timestamps in video files

2020-05-19 Thread songbird
Steve Keller wrote:
> Sorry for coming back so late, I was very busy the last few weeks.
...
> For video files there are obviously similar timestamps in the files:
> A file from my Canon Ixus:
> $ strings -a  ixus-.avi | grep 2015
> MON AUG 17 15:50:11 2015
>
> A file from my Canon Powershot:
> $ strings -a  powershot-.mov | grep 2019
> 2019:07:25 18:58:49
> 2019:07:25 18:58:49
> 2019:07:25 18:58:49
>
> I couldn't find any good info about these file formats and the
> timestamps in them and the meaning of the three timestamps in .mov
> files.  Some of my .mov files have even more than 3 timestamps in
> them.
>
> I could change the strings in the files using an editor that supports
> binary files or write a small program to do it.  But I don't know if
> that would corrupt the files, e.g. because of CRC for some header, or
> if there are further non-ASCII timestamps that strings(1) wouldn't
> find.  Therefore my question if there's a tool to do it.

  exiftool can do some movie formats but not others.
pretty likely if there isn't a tool to do it that would
be because the format specification hasn't been made
public or someone hasn't cared enough to do it but it
may also have been done by someone else...

  AVI isn't done by exiftool, but AVIF is.
  MOV is, etc.

  there's also a list of other tools but i haven't checked
out what is on there at but perhaps some may work for you:

  https://exiftool.org/


  songbird



Re: Changing timestamps in video files

2020-05-19 Thread Michael Lange
Hi,

On Tue, 19 May 2020 09:16:44 +0200
"Steve Keller"  wrote:

(...)
> I want to change the timestamps internal to video files like .avi and
> .mov, e.g. when I have taken a video with my Canon Ixus or Canon
> Powershot camera while the clock was set to a wrong time after DST
> change.  For pictures I can change the EXIF data in .jpg files with
> the command-line tool jhead.
> 
> For video files there are obviously similar timestamps in the files:
> A file from my Canon Ixus:
> $ strings -a  ixus-.avi | grep 2015
> MON AUG 17 15:50:11 2015
> 
> A file from my Canon Powershot:
> $ strings -a  powershot-.mov | grep 2019
> 2019:07:25 18:58:49
> 2019:07:25 18:58:49
> 2019:07:25 18:58:49
> 
> I couldn't find any good info about these file formats and the
> timestamps in them and the meaning of the three timestamps in .mov
> files.  Some of my .mov files have even more than 3 timestamps in
> them.
> 
> I could change the strings in the files using an editor that supports
> binary files or write a small program to do it.  But I don't know if
> that would corrupt the files, e.g. because of CRC for some header, or
> if there are further non-ASCII timestamps that strings(1) wouldn't
> find.  Therefore my question if there's a tool to do it.

according to

 
https://stackoverflow.com/questions/40354172/change-avi-creation-date-with-ffmpeg

ffmpeg seems to be able to do this, however as it seems only by
reencoding the video, which is probably not what are you looking for?

Regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

When dreams become more important than reality, you give up travel,
building, creating; you even forget how to repair the machines left
behind by your ancestors.  You just sit living and reliving other lives
left behind in the thought records.
-- Vina, "The Menagerie" ("The Cage"), stardate unknown



Re: Changing timestamps in video files

2020-05-19 Thread Steve Keller
Sorry for coming back so late, I was very busy the last few weeks.

Anders Andersson  writes:

> On Wed, Apr 29, 2020 at 4:17 PM David Wright  wrote:
> >
> > On Wed 29 Apr 2020 at 13:16:17 (+0200), Anders Andersson wrote:
> > > On Wed, Apr 29, 2020 at 12:54 PM elvis  wrote:
> > > > On 29/4/20 8:29 pm, Anders Andersson wrote:
> > > > >
> > > > > [ touch file system timestamps ]
> > > >
> > > > Don't try that on faked_evidence.pdf
> > > >
> > > > Pdfs have an internal timestamp you need to change as well.
> > > >
> > > >
> > > > I think this is what he wants for movie files, but I am not sure they
> > > > have the time encoded into them...
> > >
> > > Sure. We can only guess what goes on in OPs mind. Could be basically
> > > anything, so I imagine this list of replies will grow until OP tells
> > > us what they want.
> >
> > Well, the OP wrote "in video files", which rules out touch.
> > It's pretty obvious that the OP is more interested in modifying
> > timestamps more like the one seen here, reading 210.718067.
> >
> > $ ffprobe 2037DFB67323C9DBA31FA6AE9C27A2670855D94A
> > Input #0, mpegts, from '2037DFB67323C9DBA31FA6AE9C27A2670855D94A':
> >   Duration: 00:00:07.57, start: 210.718067, bitrate: 4413 kb/s
> >   Program 1
> > Metadata:
> >   service_name: Service01
> >   service_provider: FFmpeg
> > Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
> > yuv420p(progressive), 1920x1080, Closed Captions, 29.97 fps, 29.97 tbr, 90k 
> > tbn, 59.94 tbc
> > Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, 
> > stereo, fltp, 102 kb/s
> > $
>
> Or maybe he wants to change actual timestamps in video files, like
> this? https://i.stack.imgur.com/UcoNw.jpg
>
> It's far from obvious that he wants fragment timestamps since they
> would not apply to image files as he mentioned in the first post.

I want to change the timestamps internal to video files like .avi and
.mov, e.g. when I have taken a video with my Canon Ixus or Canon
Powershot camera while the clock was set to a wrong time after DST
change.  For pictures I can change the EXIF data in .jpg files with
the command-line tool jhead.

For video files there are obviously similar timestamps in the files:
A file from my Canon Ixus:
$ strings -a  ixus-.avi | grep 2015
MON AUG 17 15:50:11 2015

A file from my Canon Powershot:
$ strings -a  powershot-.mov | grep 2019
2019:07:25 18:58:49
2019:07:25 18:58:49
2019:07:25 18:58:49

I couldn't find any good info about these file formats and the
timestamps in them and the meaning of the three timestamps in .mov
files.  Some of my .mov files have even more than 3 timestamps in
them.

I could change the strings in the files using an editor that supports
binary files or write a small program to do it.  But I don't know if
that would corrupt the files, e.g. because of CRC for some header, or
if there are further non-ASCII timestamps that strings(1) wouldn't
find.  Therefore my question if there's a tool to do it.

Steve



Re: Changing timestamps in video files

2020-04-30 Thread Anders Andersson
On Wed, Apr 29, 2020 at 4:17 PM David Wright  wrote:
>
> On Wed 29 Apr 2020 at 13:16:17 (+0200), Anders Andersson wrote:
> > On Wed, Apr 29, 2020 at 12:54 PM elvis  wrote:
> > > On 29/4/20 8:29 pm, Anders Andersson wrote:
> > > > On Tue, Apr 28, 2020 at 5:57 PM Steve Keller  
> > > > wrote:
> > > >> Is there any tool in Debian that is able to change the timestamp in
> > > >> video files, e.g. .mov, .avi, .mp4, etc.?
> > > >>
> > > >> For image files I use jhead -ta  but I haven't found
> > > >> anything for video.
> > > > $ ls -gGh faked_evidence.avi
> > > > -rw-r--r-- 1 700M Apr 29 12:26 faked_evidence.avi
> > > > $ touch -t 0512241337 faked_evidence.avi
> > > > $ ls -gGh faked_evidence.avi
> > > > -rw-r--r-- 1 700M Dec 24  2005 faked_evidence.avi
> > >
> > > Don't try that on faked_evidence.pdf
> > >
> > > Pdfs have an internal timestamp you need to change as well.
> > >
> > >
> > > I think this is what he wants for movie files, but I am not sure they
> > > have the time encoded into them...
> >
> > Sure. We can only guess what goes on in OPs mind. Could be basically
> > anything, so I imagine this list of replies will grow until OP tells
> > us what they want.
>
> Well, the OP wrote "in video files", which rules out touch.
> It's pretty obvious that the OP is more interested in modifying
> timestamps more like the one seen here, reading 210.718067.
>
> $ ffprobe 2037DFB67323C9DBA31FA6AE9C27A2670855D94A
> Input #0, mpegts, from '2037DFB67323C9DBA31FA6AE9C27A2670855D94A':
>   Duration: 00:00:07.57, start: 210.718067, bitrate: 4413 kb/s
>   Program 1
> Metadata:
>   service_name: Service01
>   service_provider: FFmpeg
> Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
> yuv420p(progressive), 1920x1080, Closed Captions, 29.97 fps, 29.97 tbr, 90k 
> tbn, 59.94 tbc
> Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, 
> stereo, fltp, 102 kb/s
> $

Or maybe he wants to change actual timestamps in video files, like
this? https://i.stack.imgur.com/UcoNw.jpg

It's far from obvious that he wants fragment timestamps since they
would not apply to image files as he mentioned in the first post.



Re: Changing timestamps in video files

2020-04-29 Thread David Wright
On Wed 29 Apr 2020 at 13:16:17 (+0200), Anders Andersson wrote:
> On Wed, Apr 29, 2020 at 12:54 PM elvis  wrote:
> > On 29/4/20 8:29 pm, Anders Andersson wrote:
> > > On Tue, Apr 28, 2020 at 5:57 PM Steve Keller  wrote:
> > >> Is there any tool in Debian that is able to change the timestamp in
> > >> video files, e.g. .mov, .avi, .mp4, etc.?
> > >>
> > >> For image files I use jhead -ta  but I haven't found
> > >> anything for video.
> > > $ ls -gGh faked_evidence.avi
> > > -rw-r--r-- 1 700M Apr 29 12:26 faked_evidence.avi
> > > $ touch -t 0512241337 faked_evidence.avi
> > > $ ls -gGh faked_evidence.avi
> > > -rw-r--r-- 1 700M Dec 24  2005 faked_evidence.avi
> >
> > Don't try that on faked_evidence.pdf
> >
> > Pdfs have an internal timestamp you need to change as well.
> >
> >
> > I think this is what he wants for movie files, but I am not sure they
> > have the time encoded into them...
> 
> Sure. We can only guess what goes on in OPs mind. Could be basically
> anything, so I imagine this list of replies will grow until OP tells
> us what they want.

Well, the OP wrote "in video files", which rules out touch.
It's pretty obvious that the OP is more interested in modifying
timestamps more like the one seen here, reading 210.718067.

$ ffprobe 2037DFB67323C9DBA31FA6AE9C27A2670855D94A 
Input #0, mpegts, from '2037DFB67323C9DBA31FA6AE9C27A2670855D94A':
  Duration: 00:00:07.57, start: 210.718067, bitrate: 4413 kb/s
  Program 1 
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p(progressive), 1920x1080, Closed Captions, 29.97 fps, 29.97 tbr, 90k 
tbn, 59.94 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, 
stereo, fltp, 102 kb/s
$ 

These are useful for splicing together fragments of video from a
browser's cache. When they're all set to zero, one has to rely on the
timestamps (which can lack precision) or order of writing (which can
be unreliable when files "overtake" each other in transit) to put
them in sequence.

This particular file, generated by streaming a video from a TV
station, actually has a lot of metadata at the end, including
GMT timestamps as text, and I think it's atypical in having a
non-zero start time. AFAICT the GMT timestamps are connected
with the fragment's transport rather than its content. The start
time is not obvious, so it's probably written as binary.

Cheers,
David.



Re: Changing timestamps in video files

2020-04-29 Thread Anders Andersson
On Wed, Apr 29, 2020 at 12:54 PM elvis  wrote:
>
>
> On 29/4/20 8:29 pm, Anders Andersson wrote:
> > On Tue, Apr 28, 2020 at 5:57 PM Steve Keller  wrote:
> >> Is there any tool in Debian that is able to change the timestamp in
> >> video files, e.g. .mov, .avi, .mp4, etc.?
> >>
> >> For image files I use jhead -ta  but I haven't found
> >> anything for video.
> > $ ls -gGh faked_evidence.avi
> > -rw-r--r-- 1 700M Apr 29 12:26 faked_evidence.avi
> > $ touch -t 0512241337 faked_evidence.avi
> > $ ls -gGh faked_evidence.avi
> > -rw-r--r-- 1 700M Dec 24  2005 faked_evidence.avi
>
> Don't try that on faked_evidence.pdf
>
> Pdfs have an internal timestamp you need to change as well.
>
>
> I think this is what he wants for movie files, but I am not sure they
> have the time encoded into them...

Sure. We can only guess what goes on in OPs mind. Could be basically
anything, so I imagine this list of replies will grow until OP tells
us what they want.



Re: Changing timestamps in video files

2020-04-29 Thread elvis



On 29/4/20 8:29 pm, Anders Andersson wrote:

On Tue, Apr 28, 2020 at 5:57 PM Steve Keller  wrote:

Is there any tool in Debian that is able to change the timestamp in
video files, e.g. .mov, .avi, .mp4, etc.?

For image files I use jhead -ta  but I haven't found
anything for video.

$ ls -gGh faked_evidence.avi
-rw-r--r-- 1 700M Apr 29 12:26 faked_evidence.avi
$ touch -t 0512241337 faked_evidence.avi
$ ls -gGh faked_evidence.avi
-rw-r--r-- 1 700M Dec 24  2005 faked_evidence.avi


Don't try that on faked_evidence.pdf

Pdfs have an internal timestamp you need to change as well.


I think this is what he wants for movie files, but I am not sure they 
have the time encoded into them...







--
Play poker with Tarot cards. Got a flush. 5 people died.



Re: Changing timestamps in video files

2020-04-29 Thread Anders Andersson
On Tue, Apr 28, 2020 at 5:57 PM Steve Keller  wrote:
>
> Is there any tool in Debian that is able to change the timestamp in
> video files, e.g. .mov, .avi, .mp4, etc.?
>
> For image files I use jhead -ta  but I haven't found
> anything for video.

$ ls -gGh faked_evidence.avi
-rw-r--r-- 1 700M Apr 29 12:26 faked_evidence.avi
$ touch -t 0512241337 faked_evidence.avi
$ ls -gGh faked_evidence.avi
-rw-r--r-- 1 700M Dec 24  2005 faked_evidence.avi



Re: Changing timestamps in video files

2020-04-28 Thread Nicolas George
Steve Keller (12020-04-28):
> Is there any tool in Debian that is able to change the timestamp in
> video files, e.g. .mov, .avi, .mp4, etc.?
> 
> For image files I use jhead -ta  but I haven't found
> anything for video.

What timestamps do you want to change exactly? For video files, the most
obvious are the presentation timestamps, that are used to set the speed
of the video and synchronize with the audio, but the rest of your
question does not seem compatible with that interpretation.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature


Changing timestamps in video files

2020-04-28 Thread Steve Keller
Is there any tool in Debian that is able to change the timestamp in
video files, e.g. .mov, .avi, .mp4, etc.?

For image files I use jhead -ta  but I haven't found
anything for video.

Steve