Frozen for seconds during playback
I just did my first encoding, following accolon's guide exactly except using the latest versions of the software he covered.
I encoded Crouching Tiger Hidden Dragon, prerotated at 320x136, divisible by 4 as DivX 5 requires. I properly sized and cropped it. The movie is exactly 2hrs long, and the file created was just over 200MB.
I was just testing it on my iPAQ 3970, and it seems great, except that in certain parts it pauses for a few seconds, frozen.
I am using the latest PocketMVP, is it just buggy? It's hung on me a few times.
Or is it problems reading from the SanDisk 256MB SD card? It has been recently formatted. Are they just too slow?
How can I investigate this further?
As I said I used the guide's settings, but I'm already thinking about which ones I can change. The guide had key frames every 300 frames, isn't that one every 10s? Is there going to be a noticeable reduction in file size if I cut that back to one every minute?
One more thing, I turned on the PocketMVP cache and cranked it to full (12MB).
What exactly does the cache do? Is it on the main memory? I guess main memory is faster than the storage card, so is its purpose just to precopy a chunk of the movie over for faster access?
How can I tell if it is working? Are there other PocketMVP settings I should be playing with?
I'm not even sure it happens at any particular level of audio or video action. It just seems to happen now and then.
I used the guide's suggested settings, which indicated that they work on the author's Cassiopeia E-125, so surely my iPAQ 3970 can handle it?
I reset the device before playing the movie and I still get it now and then. Could it be something running in the background (like find files bookkeeping that runs on desktop Windows hijacking what you are doing) that is starting up now and then and interfering?
It seems that if I power down then up on the device quickly, while it is frozen, it unfreezes. This makes me wonder if that kills off something in the background that was degrading playback.
Comments?
Twice in my testing I've had the playback image degenerate into coloured squares. The first time, it just kept playing, and after a minute it was still a corrupt image of coloured squares so I reset the device.
Just now, it went to coloured squares then after a few seconds crashed the player, corrupting the desktop, prompting a reset of the device.
I'm using the latest PocketMVP. Is this just bugginess on the part of the software?
Or could it be an encoding problem with the movie? I followed the guide and used the latest versions of the listed software.
Does anyone else experience this?
Yeah, the problem seems to be reading from the SD card. SD is slower than CF, so that might explain why the problem doesn't crop up on your E-125.
OK, here's some more info. If I check for dropped frames without the freezes, I see none. If I have freezes then check for dropped frames, I do have them. Say 400 of 60000.
Now, I can understand dropping frames, but why the huge freeze of 4-5s? Why is such a low rate of frame drop associated with such a degradation of playback?
It gets to a point where it plays 5s of video, then freezes for a few seconds, then 5s of video, then freeze, and so on.
I can't believe I paid so much for an iPAQ 3970 when it came out, and I encode a DivX 5 with all the conservative parameters in the guide, and it cannot playback decently.
Is this the bus speed problem of the first 400MHz XScale Pocket PC devices rearing its ugly head? That is, my processor is fast enough but because the bus is actually slower, data can't be processed quickly enough? Is that it?
OK I tried encoding A Bug's Life. Pretty much same size picture as Crouching Tiger Hidden Dragon, 2.35:1. Again, I followed accolon's guide, except this time I used 220kbps instead of 200 for the video encoding. (I read somewhere that 220 is a reasonable minimum for this codec.)
Anyways, the playback looks good, except for parts where it freezes for several seconds (dropping frames). This seems to happen more at the end of the movie, what with all the action of the ants, grasshoppers (and their wings), rain, fire, etc. Not so much in the beginning of the movie.
So I still wonder if this is because the device (iPAQ 3970) can't handle the bit rate during activity, or if the bottleneck is the SD card. I will have to find out what speed the SD card is accessed at, because I can't see it being that slow.
However, assuming the problem is bit rate during action scenes, what can I do? Should I just use a lower bit rate (180? 160?) for the movie? Is there a way to keep a higher bit rate, but cap it so it doesn't go above a certain value? Should I drop the sound from 32kbps to lower? Is there some other setting I should be trying?
Basically, I'm assuming here that other people have had the same problem and have solved it somehow. Please let me in on the secret.
OK I've been thinking about how I can approach this problem.
First, I wondered if it is because I am using a Pocket PC 2002 version of PocketMVP. I couldn't find an "optimized for iPAQ" version for download, although forums did seem to mention one. Am I using the right executable?
Second, I'll try some "standard" trailers (e.g. Spider-Man and Matrix Reloaded) and post my performance results. Then, if I'm way off, hopefully someone will tell me.
Finally, it makes sense for me to work with a smaller file than an entire movie. So I'll pick a chapter that is giving me grief, and encode it using regular options, noting the file size and performance. Then I can try encoding the same chapter using various audio and video options, to see what works performance-wise, while not getting too large in file size.
OK I did some testing with the Matrix Reloaded teaser trailer. It's the 2.6MB AVI one, 320x144, 1887 frames, 24fps, 1:18 running time, from the main page.
It is showcased in this comparative review:
http://www.pdabuyersguide.com/toshiba_e330.htm
In that review, I see that my device (iPAQ 3970) should drop no frames playing that trailer.
I did indeed find that I drop no frames playing that trailer on my device, either in the window, or rotated full screen.
I also found that the video quality was not as good as the movies I encoded using the suggested settings in accolon's guide. Is there no way of telling what bitrate was used to encode the video? Which DivX codec?
Let's do some math. Let me know if I am doing this wrong.
According to file info, the audio bitrate is 48Kbps. At 78s, that means audio uses roughly 3744Kb = 468KB. File size is 2648KB which leaves 2180KB for video.
So 2180KB of video over 78s is 27.948KB/s = 223.59kbps.
Is that right? If it is, then this trailer uses comparable video bitrates and better (48 vs. 32) audio bitrates to encode the trailer. Then why does it look worse and play better?
I'm just wondering, could the problem be an issue of file size? It does seem to me that the freezing problem occurs more during the end of the movie, when the player would be accessing the tail end of the large (approaching 200MB) file on my SD card. I can't be certain, but I think it's mostly OK through the beginning and middle of the movie.
Fortunately, this is easily tested. I'm going to take a scene from the end of the movie that is giving me grief, and encode it on its own.
OK, here's the result of my test. The rain scene near the end of A Bug's Life (chapter 33) was giving me grief, freezing with dropped frames.
I encoded it using the same settings (guide settings except 220kbps for video bitrate) as the full movie. The scene plays fine with no dropped frames.
It doesn't look as good quality as the rest of the movie, although it is more of an action scene, and I can't really compare it to before with all the dropped frames. Actually, viewing the scene from my original encoding on the PC, I do see it looks better.
I find that odd considering I used the same settings, as far as I know. Is there an explanation for this? Has the encoding of the entire movie taken bitrate from the beginning of the movie and applied it to the final action scenes? So they look better, but drop frames on my Pocket PC? And the encoding of only that action scene looks worse, but plays better, because it hasn't procured extra bitrate from slower changing scenes? Is that how it works?
[I notice I ask a lot of questions and the only person really answering is myself. I hope everyone is enjoying my dialogue (monologue?).]
I have the same problem with my Ipaq 1915 (european version of US's 1910).
The difference is when it freezes, everything is down and I have to soft reset my device.
The movie is on a 256 Mb SD card too.
I bought this memory card just to store movies, so if it does not fit, what's the use?
I just believe long play vidéo on mobile devices is still not a reliable technology, to unstable.
Still a dream for the future, not a today reality, even with last up-to-date handheld PC.
(and sorry for my english!)
My Axim 400Mhz also freezes for a few seconds, but only when I'm playing back a full movie. I can play trailers and shorts (the longest one I have is around 7mins) just fine. But full movies (stored on a CF card, not SD) will play around 7 or 8 mins, then pause for 15-30 seconds, then resume playing. It appears to be dropping frames while frozen.
Hi,
just to confirm the same problem with ipaq 3950 and sd 256mb. My clip is about 1h 06', video 250kbs and audio 32kbs 22khz: the video play fine for about 2.5 minutes then freeze for 2-3 seconds and so on.
The players is the last release of mvp.
This evening i will try to encode it with ms encoder..
ciao
It's clear that many are having the same (or similar) problem. Alice_anto, your setup is very similar to mine, except my movie is longer and my bit rate is a bit lower (220kbps).
So either we're all doing something wrong (in which case it's a problem with the guides), or we all have dud devices (in which case it's a problem with manufacturers, e.g. the bus speed scandal or SD card performance), or it's a problem with software quality.
Indeed, I can state authoritatively that it is a software quality problem, for the simple fact that even if the problem is ultimately due to the movie or hardware, the software SHOULD PROVIDE USER FEEDBACK that there is a problem, and what the problem is. It clearly doesn't, therefore the software is remiss.
To be fair though, I have to admit software quality is a joke on the Pocket PC.
Is it any wonder? Look at the example Microsoft sets.
I was playing with my SD cards a few days ago, in File Explorer, and while copying to a card I inserted, I received the helpful error message "there was a problem copying to the storage card."
WTF? A brand new card? Whatever could be the problem.
So I tried to create a new folder, and received the clearer error message "couldn't create folder, card is write protected."
Now I ask you, is it really too much to ask for one part of the MS application to provide the same helpful error message that the other part does?
Sadly, this is the example that is set, and this is the quality we strive to live with.
I don't follow that example; I couldn't live with myself as a programmer if my software was that culpable.
I'm glad we've got programmers like you onboard to make our world a better place.
What? Wait... who are you and what do you have to show for your entire existence?
But seriously ... what was wrong with the card in the end? Did your thumb accidentally move the write protection switch on the side when you inserted it?
I was doing testing with the card (taking disk images on Linux) and had the write protect on to ensure the card was not corrupted. I forgot to unlock it after that. Simple thing, but it took me a minute to find out that was the problem. I thought I had corrupted it.
Who am I? What have I programmed? Right now, I'm working on Pocket PC software. It's not ready yet, but it's coming along nicely. Before, I worked on software for genetic analysis, and before that, for business analysis. My main interest is machine learning and AI. I'd say I've done useful things; at one point, I was on a patent application for distinguishing types of leukemia using neural networks.
But it shouldn't matter what type of software you are working on. The principles of UI (not just GUI) are well founded, and have been for at least ten years. Any application should at least try to obey the important principles.
So, the error message with the SD card was in fact very accurate... hrmmm. Thanks.
The first error message "there is a problem writing to the card" is extremely accurate, but not at all precise. It's like a mechanic saying something is wrong with my card. Duh!
The second error message "the card is write-protected" is both accurate and precise.
There is a difference between accuracy and precision.
These both came from the same, standard, MS file explorer program. When I first couldn't copy a file, I feared I had corrupted the card, and tried to create a folder to see if that would work. It's not unreasonable for me to fear card corruption; the whole reason I was imaging cards was to restore a corrupted card!
My point is only that even the standard MS apps on Pocket PC have a ways to go with UI. I only toss this out as a tangible example.
How tangible can the virtual really be?
Hello,
i have encoded again the movie at 220kbs for video and now im able to play all movie without any problem (the file is 132MB). All the other setting are the same as previous msg.
The only issue i have seen is that if i open mvp and move slide to start in the middle of movie, i lost the sync from video and audio of about 2-3 seconds.
ciao
If you have problems with playback of divx files :
do not use caching ! I had the same problem, i tried to increase the cachesize, but the freezing got worse. Only by removing the caching i can see a complete (about 2 hour, 210Mb) movie without freezing.
I've been having the same freezing on my own encodes. However, I've downloaded some large files (90MB), that play without a hitch. The player settings are the same. I think the freezing is definitely related to the encoding methods/options.
-Dave
I have had a lot of problems with using the most current versions of pocketmvp on my 3955. I was able to find an older version that seemed to solve all of my problems. I will post it later when I can upload it. I have been able to watch several full length movies played from both a 256 mb cf Simpletech card, and a 512 sd Simpletech card. I have watched Princess Bride, Red Dawn, Hanover Street, Logans Run, Spirited Away, and Treasure Planet, all without a hitch. The only problem I have ever encountered was on LOTR 2 towers, when the sound did not synch up properly.
I will upload the older pocketmvp in the morning.