|
Author | Topic: Animated GIFs - using QPST - Yes! (Read 2,906 times) |
beemgee Newbie
 member is offline
Joined: Jan 2005 Posts: 32 Karma: 0 |  | Animated GIFs - using QPST - Yes! « Thread Started on Mar 30, 2005, 11:27am » | |
I just figured out how to put animated gifs on your phone without using picture messaging. I hated that .25 charge. It also lets you get 10 extra mid files.
The mms_image directory is where pictures transfered by picture messaging go. The key to these files is the 52 byte header (on jpg and gif). This header also applys to mid files in the mms_melody directory.
52 BYTE HEADER =================================== byte 01-01 x"06" byte 02-36 Filename x"00" filled byte 37-38 Filesize * byte 39-40 x"0000" byte 41-41 - x"06" for qcp - x"04" for mid - x"03" for gif - x"00" for jpg byte 42-44 x"000000" byte 45-46 x"4cda" byte 47-48 x"0000" byte 49-49 x"50" byte 50-50 x"00" byte 51-51 x"57" byte 52-52 x"00" * - Filesize is: Actualsize - 52 - this just excludes the header from the size converted to reversed hex (most significant byte right) (11072-52=11021=x"2b0d" enter 0d2b)
Simply insert this header in front of your animated gif and add the file to the mms_image directory.
NOTE: the gif must have a single image palette and image size is also important: 128w X 115h (VZW logo) 128x X 098h (w/banner) edit: 128x96 appears to work better
Gifs with 2 or 3 images work best. The fourth image seems to skip sometimes. I think the max size is 30k but havent experimented with that yet.
If you dont know how to hexedit a file stick with picture messaging for your gifs.
If you have images in your mms_image directory copy them off the phone and look at the header (if you use bitpim it will strip the header unless you use the filesystem). You can see that they are simply single palette gifs (if you delete the header). Images in the mms_image directory appear to automatically resize to fit the screen but for best quality make them the correct size. Also transparency and disposal method can effect the quality.
Have fun!!!
beemgee
| |
|
Araknis Newbie
 member is offline
Joined: Mar 2005 Gender: Male  Posts: 13 Location: USA Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #1 on Mar 31, 2005, 7:32am » | |
I have tried this and it works. 
I found that the 128x098 covers more of the screen. beemgee how did you come up with 128x098?
I was also thinking that the reason that there are problems with animated images with more than three frames is because of the Verizon Wireless banner.
Note: I have not disabled the Verizon banner on my phone and have no plans to disable it.
If anyone learns more about these animated gifs please do post. I am interested in what the images size needs to be to fill the screen.
Thanks beemgee
| |
|
beemgee Newbie
 member is offline
Joined: Jan 2005 Posts: 32 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #2 on Mar 31, 2005, 11:29am » | |
The size 128x98 was a wallpaper size I picked up on some forum it did not cover the Verizon or banner logo - however testing more shows that 128x96 seems to work better - it covers the screen completely left to right.
As I said the images in the mms_image directory will shrink to fit, that means that if they are too wide or long they are proportionally reduced. Unfortunetely this also reduces the quality.
I dont think the animations are related to the flashing Verizon/date. If you press the OK or CLR or END button the animation will continue to move. I think its more of a power saving thing.
beemgee
| |
|
Araknis Newbie
 member is offline
Joined: Mar 2005 Gender: Male  Posts: 13 Location: USA Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #3 on Mar 31, 2005, 8:07pm » | |
beemgee you are right 128x96 does work the best.
Still not the whole screen bit it does fill from left to right.
Not only that but any image size at that same ratio. For example 160 x 120, 200 x 150, and so on works.
For those wondering what a 128x96 looks like on a phone here is a picture. Note: This is not a actual video from the phone but a small gif 16.5 KB
![[image]](http://livingactor.home.bresnan.net/Example2.gif) I do have a actual capture but optimized it is still 582 KB and that is the reason for not posting the image here.
For those wondering: The animated horse is made of three frames and has a palette of 16 colors and was optmized with Ulead GIF Animator.
Here is the file if you would like to try this animation on your phone.
In the zip are two files horse and Horse.gif. You really only need the file horse. I have both so you have an example on how to hex edit a gif. The header in hex for this file is: 06486F727365203039360000000000000000000000000000000000000000000000000000 97170000030000004CDA000050005700
The name of the image you will see once on your phone is Horse 096 486F72736520303936 in hex.
To use the image you simply upload the file horse to the mms_image directory.
| |
|
beemgee Newbie
 member is offline
Joined: Jan 2005 Posts: 32 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #4 on Mar 31, 2005, 10:47pm » | |
As Araknis said any gif with a 4:3 ratio works because of the proportional shrinking. Unfortunately it appears that any image in the mms_image directory used for wallpaper is automatically reduced to fit in the 128x96 area so they cant fill the whole screen like brew/shared images.
The GIFs can also be used for the startup and shutdown animations. A full screen 128x160 works for the start/shut screens. It doesn't cover the full screen (white space at bottom) but it doesn't appear to accept a longer size.
beemgee
| |
|
Araknis Newbie
 member is offline
Joined: Mar 2005 Gender: Male  Posts: 13 Location: USA Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #5 on Apr 1, 2005, 2:11pm » | |
beemgee I was just thinking on how we could get a image to fill more of the screen.
It would also take more hex editing work and more files. Also who knows it may drop less frames/images.
Could be make our own M-JPEG video, a series of JPEG images and upload them to the camcoder_0 and camcoder_1 directories?
I still have not found where the sound is saved but as a wallpaper there is no sound.
| |
|
beemgee Newbie
 member is offline
Joined: Jan 2005 Posts: 32 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #6 on Apr 1, 2005, 2:58pm » | |
The camcorder files cover more of the screen (the banner at least) not the verizon/date header. This might be size related but when using a gif for startup/shutdown I cant get it to extend where the verizon logo would be - could be a hard coded restriction. The camcorder files definetely allow more frames but they skip frames alot.
What I do now is use a white background for images to at least blend better on the screen.
![[image]](http://grcdata4.home.att.net/Horse.gif)
You have to be careful with a white background you need each frame to be complete (dont crop the later frames) or you get black remnants when the gif is transferred to the phone.
| |
|
lonniedjackson Newbie
 member is offline
Joined: Mar 2005 Gender: Male  Posts: 1 Location: Enumclaw , wa Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #7 on Apr 4, 2005, 5:35am » | |
If anyone is interested, i wrote a programe to select a file and add the header info. It can be downloaded at http://dwn.cybervortex.com its a670-gif.exe, there are 2 DLLs that may be needed , mfc71.dll & msvcr71.dll
| |
|
Araknis Newbie
 member is offline
Joined: Mar 2005 Gender: Male  Posts: 13 Location: USA Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #8 on Apr 4, 2005, 2:51pm » | |
Here is what the program by lonniedjackson looks like.
Also if you click the image you can download the program.
| |
|
Unique Newbie
 member is offline
Joined: Mar 2005 Posts: 1 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #9 on Apr 7, 2005, 11:31pm » | |
Cool
| |
|
Toolman Newbie
 member is offline
Joined: Feb 2005 Posts: 40 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #10 on Apr 9, 2005, 6:03pm » | |
Does anybody using these sweet animated gifs see any decrease in battery life when they use them?
| |
|
halo2rox Newbie
 member is offline
Joined: Apr 2005 Gender: Male  Posts: 19 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #11 on Apr 12, 2005, 9:22pm » | |
i dont have any problems
| |
|
sheri Newbie
 member is offline
Joined: Jul 2005 Posts: 12 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #12 on Jul 7, 2005, 10:50am » | |
I've used the a60-gif.exe program (thanks for this!) and loaded sucessfully to the mms_image directory a few animated gifs, single image gifs and jpg files. But I've not been successful in the displaying the images at sizes I would like. Regardless of image dimensions, mms images appear to resize into the area above the user banner area (too small!). This varies from onboard camera images for which the display area extends to the top of the verizon/date-time line (thus including the user banner area). Any idea how to make uploaded images do the same? Beemgee indicated that 128x115 would do it, but not for me. Normal png files loaded into brew\shared display without scaling, but I was interested in using jpg files. I was thinking since the files would be smaller I could upload more images into the same space using jpg format than png format.
Has anyone put jpg files into the brew\shared folder before? If that's allowed maybe they would display without scaling there (more like png files).
Also, does anyone know if there is a limit on the number of images allowed in either directory or combined? I read somewhere that the overall memory size of the a670 is 32mb which is shared between the phonebook, calendar, images, etc.
| |
|
beemgee Newbie
 member is offline
Joined: Jan 2005 Posts: 32 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #13 on Jul 7, 2005, 11:50am » | |
Sheri,
The mms_image and brew/shared directories each have a limit of 10. If you put more in it messes up the directory listing on the phone
The 128x115 size might not work (You might try 128x110). The images in the mms_image directory shrink to fit so if your seeing space on the left/right the image is too long. The 128 wide is correct - so its a matter of figuring out the max length. (I use a banner so I haven't played with nobanner) - it is possible that the banner area cannot be displayed over using animated gifs at least.
By the way if you plan on creating qcp (ringtone) files for the a670 I wrote an updated a670-gif (dont think lonniedjackson updated his version) called a670-head see this thread:
http://a670.proboards43.com/index.cgi?bo....13347981&page=2
| |
|
sheri Newbie
 member is offline
Joined: Jul 2005 Posts: 12 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #14 on Jul 7, 2005, 2:38pm » | |
Thanks so much for the info. Have you emailed yourself any of the digicam photos to see how they come through? If you load a digicam photo as wallpaper, your banner appears on top of the wallpaper. At the lowest res, at least with "Fun Frames" on and in "Sketch" tones, they shoot at 128x112. But if you load a processed jpg of the same dimensions as wallpaper the image shrinks up above the banner area. Happens even if you delete the characters out of your banner setup. Ditto for gifs and animated gifs. But bmps and pngs in brew\shared will cover the exact dimensions you specify, so even the Verizon banner can go over the wallpaper (128x128).
Also, if the number of files per directory is only 10, what happens if you get an email containing another 10?? Do you get prompted to remove some before saving more? It appears that at the low res setting, the a670 allows as many as 200 photos (there is a counter showing how many are left when you are about to take a picture). So it would be lovely to be able to use the digital_cam directory for uploaded images. Have you looked at the headers on those files?
| |
|
beemgee Newbie
 member is offline
Joined: Jan 2005 Posts: 32 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #15 on Jul 7, 2005, 6:43pm » | |
Quote:| what happens if you get an email containing another 10 |
|
When you try to save the image it will tell you "My Image is Full". You have to exit the message go into My Image and delete some.
Quote:| it would be lovely to be able to use the digital_cam directory for uploaded images |
|
Yea it would be - there was some discussion of this a while ago if I remember correctly the images from the camera are not pure jpg but exif (a form of jpg that has camera info stored within it) plus a header. I have to look at again but I believe no one could figure out how to put your own images in the directory (without taking a picture of a picture)
It is true that images from the camera will cover the banner area but if you picture message it the receiver has the same image shrinking issue as other images. Not sure if this is because of the directory on the phone or that the image format is changed to pure jpg.
| |
|
sheri Newbie
 member is offline
Joined: Jul 2005 Posts: 12 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #16 on Jul 7, 2005, 7:39pm » | |
Take a look at this program: http://www.exifer.friedemann.info/ , it might be of help here.
I have a digital camera that can be connected to a tv and display a slide show of images on the screen.
I wanted to use image editing software on my pictures and put them back on the camera as well as add some older images that weren't even produced on the camera (for slide show purposes). At first they didn't work. But I was able to use the exifer software to copy exif from a valid image to my other images, then get exifer to correct the dimensions stored in the exif and produce valid thumbnails. Then they did work.
| |
|
beemgee Newbie
 member is offline
Joined: Jan 2005 Posts: 32 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #17 on Jul 8, 2005, 1:06pm » | |
I am familiar with exifer. But looking at the data brought it back - they are not exif jpgs. They are a form of jpg with a 96 byte header - most graphic programs can read it (if not the 96 byte header can be removed) but they do not exactly conform to jpg standards. This is pretty common (most camera manufacturers use a slightly modified jpg format) the problem is I've never found a program that can create their exact jpg format and people who have loaded standard jpgs in the digital_cam directory have had problems with the phone afterward so I haven't tried using a standard jpg with the header (replacing an existing picture).
| |
|
sheri Newbie
 member is offline
Joined: Jul 2005 Posts: 12 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #18 on Jul 13, 2005, 12:16pm » | |
I have camera images from my original a670 that were backed up with bitpim from the filesystem screen, so they have their samsung-created headers on them. Do you think I'd have problems if I wrote one or two of them into my current a670's digital_cam directory? Has anyone directly copied any camera images between phones before?
| |
|
elementfire Full phone Member
   member is offline
Joined: Jun 2005 Posts: 149 Karma: 71 |  | Re: Animated GIFs - using QPST - Yes! « Reply #19 on Oct 1, 2005, 10:56am » | |
What is the format of the .avi files stored as videos? If we can transfer avi's back onto the phone, we can use those as 3+ frame wallpapers.
Never mind... They seem to be stored as a sequence of individual images(!), probably each with their own header. What a pain.
| |
|
wolfgang17 Newbie
 member is offline
Joined: Jan 2006 Posts: 1 Karma: 0 |  | Re: Animated GIFs - using QPST - Yes! « Reply #20 on Nov 29, 2006, 11:31pm » | |
How do you add the header to the GIF in Hex workshop. Sorry for the Noob question?
Thanks
| |
|
|