Importing Old Files. - General Discussion and Assistance - CHDK Forum supplierdeeply

Importing Old Files.

  • 24 Replies
  • 7471 Views
*

Offline NSS

  • *
  • 26
Importing Old Files.
« on: 13 / November / 2010, 10:09:41 »
Advertisements
Now this is a little off topic CHDK wise.  Even tho I did figure out a CHDK script that did allow me to use the full 16 Gig SD card for recording videos.

It now makes smaller like 10 minute videos, over and over till the card is full!  GREAT!!

Now this is a canon Powershot A560.

Now can this be fixed/

When the camera shoots a video, it saves it called something like  MVI_1416.AVI  and another file called MVI_1416.THM  is also created.

Now if i download this AVI file i can play it with an player on my computer. as well as on the camera of course.

BUT only on the camera if the .THM file is still there.

If I download both files,  and the camera is empty, and re load the AVI file onto the camera,  but NOT the THM file.  the camera will not play it.

OR

even if I download just the AVI,  do some editing,  like adding titeles etc. and re save it with the same name and still as an AVI, and then re load it into the camera.  It still will not see the camera for playback on the camera.

is there any way around this?

I'd like to use the camera as a small portable video player too.

Joe

Re: Importing Old Files.
« Reply #1 on: 13 / November / 2010, 14:42:22 »
THM is video thumbnail and it is required to play video in camera.
AVI is not an encoding, this is just container format.
You can have MPEG, MJPEG or many other encodings inside of it.
Camera can playback only MJPEG (motion jpeg) encoded data.

So you will need video editor capable to save video stream into MJPEG encoded AVI, with WAV (PCM uncompressed) sound track.
Video should have same resolution as original.
THM is just a JPEG with changed extension, so you can save any frame of video to JPEG and change extension to THM (there may be some problems with EXIF) or use THM preview from any video recorded by your camera.

*

Offline NSS

  • *
  • 26
Re: Importing Old Files.
« Reply #2 on: 13 / November / 2010, 14:53:50 »
Thanks I'll Try that..

*

Offline NSS

  • *
  • 26
Re: Importing Old Files.
« Reply #3 on: 14 / November / 2010, 10:44:53 »
Well,  I tried that.

It first took forever to find a program  that would make an AVI file where the file inside was a mjpg.  but found one.  and made one.  and took an existing thm file and changed it's name to match the new file.

and still the camera does not see the non camera made video.

grrrr.

anyone?

Joe


Re: Importing Old Files.
« Reply #4 on: 14 / November / 2010, 11:01:23 »

It first took forever to find a program  that would make an AVI file

It would be helpful if you told us which.
Quote
anyone?

You could try 'Video Converter' at the bottom of this page :-


http://webuser.hs-furtwangen.de/~dersch/


David

*

Offline NSS

  • *
  • 26
Re: Importing Old Files.
« Reply #5 on: 14 / November / 2010, 11:59:17 »
The program I found was multiquence.

But i will also try the one you suggest.

*

Offline NSS

  • *
  • 26
Re: Importing Old Files.
« Reply #6 on: 14 / November / 2010, 22:13:34 »
Still No Go,

Anyone else care to try to do this?

Make a video,  and make it playable in a Canon Camera as a portable video player.

Joe

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: Importing Old Files.
« Reply #7 on: 15 / November / 2010, 01:23:22 »

yes i try it with sx200 (hdmio output) without chdk,
i got the same codecs for the video files, and tampered with the thm file to have the same bytes for duration and more but no go,
http://chdk.setepontos.com/index.php?topic=4233.0
I think the only way is through chdk overriding playback and finding where the chek is done


*

Offline NSS

  • *
  • 26
Re: Importing Old Files.
« Reply #8 on: 15 / November / 2010, 08:26:19 »
I really wonder what is happening, to cause this not to be possible.

Joe

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: Importing Old Files.
« Reply #9 on: 15 / November / 2010, 13:27:07 »
for chdk coders
There are 3 tasks that may hold the key to this
AviRead
MovRead
MovPlay

There is also a ThmDecode.c file.
« Last Edit: 15 / November / 2010, 13:50:25 by asm1989 »

 

Related Topics