Pocket PC Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!





Go Back   Thoughts Media Forums > POCKET PC THOUGHTS > Pocket PC Multimedia

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-2003, 05:11 PM
Pupil
Join Date: Jun 2003
Posts: 33
Default Encoding DivX5 for PPC using Gordian Knot

I've been using Gordian Knot to encode "full-sized" (~700MB) DivX movies for my PC for the last several months. I'm used to the interface, and I like GKnot's middle-ground between doing everything manually (best quality) and having everything automated (not quite as good). Between PocketMatrix's DivX to PPC guide, Doom9's DivX5 Guide, and posts in this forum and the Project Mayo Forums, I came up with settings that I thought would work. Basically, it was the same as I did for my desktop PC, only I disabled DivX Pro features (psychovisal enhancements, bidirectional encoding, quarter pixels, etc.), shrunk the resolution to a max dimension of 320 pixels, and set a target file size of 200MB.

Too bad it didn't work. I've tried encoding Back To The Future several times, going through settings very carefully, and every time it comes out 550+ MB. Any idea why?

Also, anyone know of any guides for encoding DivX movies for PPCs using GKnot? If one doesn't exist and I get this working, I'd be willing to write one up.
 
Reply With Quote
  #2 (permalink)  
Old 07-15-2003, 05:17 PM
Thinker
Join Date: Apr 2004
Posts: 373

What are your audio settings?
 
Reply With Quote
  #3 (permalink)  
Old 07-15-2003, 05:20 PM
Magi
Pat Logsdon's Avatar
Join Date: Feb 2004
Posts: 2,231

Are you decimating your frames by 2? That's the first thing I'd check.
__________________
redbatphotography.com
 
Reply With Quote
  #4 (permalink)  
Old 07-15-2003, 05:31 PM
Pupil
Join Date: Jun 2003
Posts: 33

kagayaki1: I loaded up the right AC3 file, set the size to 8-14 MB, and used 1x VBR MP3 (calculate frame-overhead checked). Should I do something different?

Surgical Snack: The framerate I've been using is 23.976 - the lowest GKnot has in its drop-down list. Would a lower framerate actually look decent on a PPC? If so, do you know how I would go about lowering it via GKnot?

I'm using DivX 5.05 Pro, GKnot 0.28, and CodecPak 1.1 on a 2.53GHz P4 w/ 1GB RAM.
 
Reply With Quote
  #5 (permalink)  
Old 07-15-2003, 06:00 PM
Magi
Pat Logsdon's Avatar
Join Date: Feb 2004
Posts: 2,231

Quote:
Originally Posted by Linus
The framerate I've been using is 23.976 - the lowest GKnot has in its drop-down list. Would a lower framerate actually look decent on a PPC? If so, do you know how I would go about lowering it via GKnot?
Framerate is different than decimation - by decimating the frames by 2, you'll be throwing out every other frame, rather than changing the rate at which the frames play. The framerate you have is good - I wouldn't change it. But if you decimate by 2, you'll cut your file size in half.

Unfortunately, I haven't used Gordian Knot (I use VirtualDub), so I can't tell you exactly how to do it.
__________________
redbatphotography.com
 
Reply With Quote
  #6 (permalink)  
Old 07-15-2003, 06:20 PM
Pupil
Join Date: Jun 2003
Posts: 33

Quote:
Originally Posted by Surgical Snack
Framerate is different than decimation - by decimating the frames by 2, you'll be throwing out every other frame, rather than changing the rate at which the frames play. The framerate you have is good - I wouldn't change it. But if you decimate by 2, you'll cut your file size in half.
Wouldn't decimating by 2 (removing every other frame) change the framerate from 24 to 12 fps? If you removed every other frame but didn't change the rate they display, it would run at 2x speed (not good). Regardless, if decimating by 2 shows motion well enough on PPCs, I'll do it.

Unfortunately, I can't find any options for decimation in GKnot. Maybe I'll end up using the cumbersome VirtualDub method after all.
 
Reply With Quote
  #7 (permalink)  
Old 07-15-2003, 06:46 PM
Magi
Pat Logsdon's Avatar
Join Date: Feb 2004
Posts: 2,231

Quote:
Originally Posted by Linus
Wouldn't decimating by 2 (removing every other frame) change the framerate from 24 to 12 fps? If you removed every other frame but didn't change the rate they display, it would run at 2x speed (not good). Regardless, if decimating by 2 shows motion well enough on PPCs, I'll do it.
Yup - you're right - I'm wrong. In VirtualDub, I never mess with the framerate but always decimate. Vdub then automatically changes the framerate. Every single movie I've watched on my Axim has been encoded this way, and it's just fine. Even the action sequences in The Matrix look great.

Quote:
Originally Posted by Linus
Unfortunately, I can't find any options for decimation in GKnot. Maybe I'll end up using the cumbersome VirtualDub method after all.
It's not too bad once you do it once or twice. You can also save all of your settings in a .vcf file so you don't have to load them again, which is nice. The instructions on pocketmatrix you linked to above work well. Follow those and you should be done in no time!

Good luck!

P.S.: The pocketmatrix site says to resize the video first, then rotate it. I'd do it the other way around. For some reason, if you resize first, you sometimes end up with choppy video. Don't ask me why, it doesn't really make sense, but it works... :roll:
__________________
redbatphotography.com
 
Reply With Quote
  #8 (permalink)  
Old 07-15-2003, 07:03 PM
Thinker
Join Date: Apr 2004
Posts: 373

It's important to understand the work you're doing to resize for PPC should NOT be done in Gordian Knot. GK should only be used for creating the original DivX movie. Once you have the "full sized" version that you'd play on a standard computer, you use VituralDub to take care of the rest.

I still use an old tutorial I got from the Pocket DivX forums, simply called "Encode_DivX_for_PPC" I don't have the link right in front of me, but once you have it, it's easy! I'll see if I can find it. In the meantime, dig through the forums under "Pocket DivX Encoding"
 
Reply With Quote
  #9 (permalink)  
Old 07-15-2003, 07:05 PM
Intellectual
Join Date: Jan 2003
Posts: 158

Linus,

What bitrate is indicated in GK (gordian knot) when you have everything set? If you don't know, try encoding the movies at a videobitrate of, let's say, 175kbps or 200kbps and then check what kind of filesize it gives you when encoded. In general the video bitrate of your movie shouldn't exceed 200-250kbps otherwise it might get pretty 'big'.

When one decimates by 2, the rate is changed and every second frame building up the movie is removed. The movie runs the same length but each remaining frame is shown twice as long since the image is redrawn at half the rate of the framerate you started with. The size of the file does not change if one uses the same bitrate, but instead the gain will be that there are twice as many bits available for each frame of the movie, which can result in better overall image quality.

As for the sound, if you keep getting bigger files check that the sound is really encoded at the correct bitrate. You can check this by using a tool like GSpot, which you can find at Doom9 in the download section. Start GSpot and drag the movie over the program and you'll get all sorts of information about the movie including the bitrate of the audio.

As a sidenote:
There is now a pretty good read included in PocketMVP, in the help section about everything one should know about compression and encoding for the PPC, it's not a direct 'HOW-TO guide' but rather it explains the basics of video-encoding etc. I recommend anyone to read it if one wants to get a better understanding of this (as the author of the helpfile calls it) 'art'.

Good luck,
 
Reply With Quote
  #10 (permalink)  
Old 07-15-2003, 07:06 PM
Thinker
Join Date: Apr 2004
Posts: 373

http://forums.projectmayo.com/viewto...=3544&forum=25

Guide to encoding. If you're using a new PPC2K3 device, and you have read the thread on the new binaries Pedro wrote to have a working version of PMVP, try skipping the decimation step. It may unreasonably increase file size, but the new devices are supposed to play very well at 24fps, without throwing out every other frame.

Download this, and save it in a permanent place.
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 06:01 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 RC7