Jump to content

Movies & Encoding (56K Unfriendly)


Recommended Posts

Guest siu99spj
Posted

What video files are playable on SmartPhone?

Windows Media Player actually comes on the smartphone and should be able to play most WMA's and WMV's, unless they have been encoded exclusively with version 9 (Or later) of the windows codecs. Version 7/8 tends to give the best results. Other Windows Media files (ASF, etc.) are generally not recommended and it can be hit or miss whether the file is played.

PocketMVP is freeware and was been coded by Malloc [Edit - Thanks to awarner for noticing I wrongly attributed this to Mboden]. It is available here:

http://www.angelfire.com/alt/spv-soft/

*Note: You need an unlocked phone to use this software.

Currently it can play AVI's encoded in DivX, MP3's and OGG's. It will play AVI's in fullscreen mode with no borders (Assuming encoded to fill the screen). Currently it only supports upto DivX 5.0.3, though siu99spj is currently working on a version which can play newer files.

PocketTV Classic is currently freeware and again, needs an unlocked phone to use. It can be obtained here:

http://pockettv.com/

For those who don't want to unlock their phone, or would prefer a certificated version, they can buy PocketTV Enterprise Edition from Smartphone.net:

or Handango.com:

http://handango.com/affiliate/PlatformProductDetail.jsp?affiliateId=228&programId=41&affiliateId=228&programId=41&siteId=1&catalog=0&sectionId=0&productType=2&platformId=11&productId=77743

PocketTV can play any standard MPEG-1 video file, but will play best when the MPEG is optimised for your smartphone (Screen sizes match, etc.)

How do I make movies for Windows Media Player?

To encode for Windows Media Player the following guide was created by Q-Rious (Chris Benjaminsen).

Step 1

Start Windows Media Encoder; it should look something like this:

step00.gif

Step 2

Select New Session Wizard from the session menu item, or press Ctrl+W

step01.gif

Step 3

Chose Convert an audio or video file into a Windows Media file and press Next >

step02.gif

Step 4

Chose a file you want to convert and where you want to convert it to and press Next >

step03.gif

Step 5

Select File will stream from a Web server or play directly on a computer and press Next >

step04.gif

Step 6

Now you should have a dialog named New Session Wizard, where you have to select a profile.

Sadly Windows Media Encoder doesn?t have a default setting suitable for the smart phone so we have to create one for us self.

Therefore click on the button Create and Manage Profiles.

step05.gif

Step 7

Now you have a dialog where you can manage your current profiles, we need a new profile so we click the New button.

step06.gif

Step 8

Time to name your new profile, lets be wise and call it something we can remember later. Type in SmartPhone in the Name of profile input field, and hit the Next > button.

step07.gif

Step 9

A New Profile dialog should be visible on your screen now, containing some text about Audience Selection, again we want a new profile, so we click the button New.

step08.gif

Step 10

Call your new Audience setting SmartPhone and write 70k (for 70 kilobyte) in the Maximum bit rate input field and click OK

step09.gif

Step 11

Your new Audience setting should be created and selected as shown, so all we have to do in this step is click Next >

step10.gif

Step 12

This is the hardest step because we have to select a lot of stuff.

Let's go.

Audio

Codec: Windows Media Audio V8

Format: 10kbps, 11kHz, mono (you want 20kbps, 22kHz, mono if there is a lot of music in what your converting)

Video Codec: Windows Media MPEG-4 Video V3

In the Video size select box we chose Custom.. and hurry on to next step.

step11.gif

Step 13

Now we need to type in the video format...

If you have done nothing to your media player write 160 as width and 120 as height.

If you have installed the advanced skin for media player you have a larger screen in your Media Player and therefore want 176 as width and 132 as height.

(Don?t know what the advanced skin is? click here)

When the values are typed in click the OK button. When done click the Next > button.

step12.gif

Step 14

Type in the blow settings for Individual Video Stream Setting

Frame rate: 8

Key frame interval: 2

Image quality: 0 (it?s a slow phone and we want fast motion)

Click the Next > button.

step13.gif

Step 15

What you should have now is a status window containing information about the settings we just made.

Check you did made all the right settings and click Finish

step14.gif

Step 16

Now you are back to the Manage Profiles dialog, click Close

step15.gif

Step 17

Olla you just created your smart phone profile, and if everything is well it should be selected.

Click Finish

If a popup containing a lot of information pups up, just click OK

step16.gif

Step 18

Ok that?s it now all we have to do is click the Start button to create smooth video for your smart phone.

step17.gif

Yes I know that this was quite long, but the good news is next time you convert something you already have made a SmartPhone profile, so you can skip step 6 to 16.

How do I make movies for PocketMVP?

siu99spj created a DivX conversion guide. There is a zipped copy of the guide, in MHT format, with a small sample video available here:

http://potw.org.uk/~SPV/Guide.zip (577KB)

For those interested in making a DVD Rip, it might be best contacting siu99spj separately as it goes a little beyond this article.

Back to DivX for the SPV...

For this guide you'll need VirtualDub:

http://www.virtualdub.org

DivX 5.0.3:

http://www.potw.org.uk/~SPV/DivX503Bundle.exe

and PocketMVP:

http://www.angelfire.com/alt/spv-soft/

Load VirtualDub

It should look something like this. Maybe not identical but similar.

Pic01.jpg

In VirtualDub, click on File and then Open Video File...

Pic02.jpg

In this window choose the file you want to encode. VirtualDub supports a wide variety of formats but not all, namely Windows proprietary formats, MPEG2 and versions which don't use the Video For Windows control. If your file is unsupported use Google to find something to convert it to a suitable format (Such as using MOV2AVI, converting a Quicktime MOV file to Windows AVI file). The best option is to convert the weird format into a full frame AVI using the Huffyuv codec. This ensures that the best possible quality is kept, but its upto you how you do it.

For this explanation a 252MB Windows AVI of Toy Story 2 Intro is being converted.

Open the file

Pic03.jpg

As you can see, VirtualDub creates to video panes. One is your input video and the other is your output video.

Now the fun begins. Click on Video, ensure that Full Processing Mode is selected (Click on it if not) and then click on Frame Rate.

Pic04.jpg

Choose ‘Process every third frame (decimate by 3)’, as above. Click on OK. Again click on Video and then click on Filters...

Pic05.jpg

Click on Add... and choose Rotate. Its up to you which way you rotate the film, I just chose 'Right by 90°'. Click on Add... again and choose Resize.

Resize the video until it looks to be in the right aspect (Or not if you want full screen). The maximum width is 176 and the maximum height is 220. I prefer to use multiples of 16 as DivX handles them better, but as long as it is a multiple of 2 at the very least, DivX (5+) will work. I recommend you use the filter mode Bicubic, but again not much difference will occur whatever you use.

You can click on Show Preview to get an idea of what its looking like if you want to ensure you have an OK aspect ratio.

Pic06.jpg

Click on OK.

And then OK again

Pic07.jpg

As you can see, VitualDub has changed the size of the output video.

Click on Video and then Compression...

Pic08.jpg

Highlight DivX and then click on Configure (Note, althpough the Pro version is used, the non-Pro version available for download will work just as well).

Pic09.jpg

Set the Variable Bit-rate mode to 'Multiple, 1st Pass' and the bitrate to 110kbps or there abouts. This might change depending on what you feel is best for your smartphone. The original SPV (And hence the E100) can play this perfectly well. Higher settings might be applicable for faster phones.

This setting will mean that you will have to encode the file twice. This ensures the best possible reproduction for your Smartphone. If you only want to do the encode once, then choose '1 Pass, Constant Bit Rate' and set the bit rate to about the same. This can also be useful for check aspect ratios and such.

Specify a log file for it to write to (By clicking on Select... and typing in a filename (It Will be created if it doesn’t exist)) and it is recommend that you use an MV file as well, but again, personal choice.

Click on OK twice to get back to the main VirtualDub screen.

Now click on Audio and select Full Processing Mode.

Click on Audio again and choose Compression

Pic10.jpg

Use MPEG Layer-3 at a fairly low bit-rate. I’m using 16KBit/s 16000 HZ Mono, but you might want more or less. Remember the smartphone is going to struggle (Play a slideshow rather than a video) the higher the bitrate. If you don't have an MP3 codec then you can use PCM WAV, but this will DRAMATICALLY increase the size of your video.

Again click on OK.

Now click on File and Save as AVI...

Pic11.jpg

Give it a name and click in the box labelled ‘Don’t run this job now; add it to job control so I can run it in batch mode’ and click on OK.

However, if you have a fast PC, don't mind waiting while it does the first pass or you are only doing a single pass, you needn't click in the check box. Just click on OK and wait whilst the file encodes.

If you chose the check box, go back to Video and click on Compression again and Configure.

Set Variable Bitrate Mode to 'Multipass, nth pass'.

Pic12.jpg

DON’T CHANGE ANYTHING ELSE.

Click on the OK’s again until you get back to VirtualDubs main screen and then click on File and Save as AVI... again. Again give it a name (A different name usually helps). Make sure you have checked the 'Don't run this job now...'box again (If you did it the first time) too or else they'll be an error message. Click on OK and then press F4 or click on File and Job control...

Pic13.jpg

Hopefully VirtualDub will just have the two jobs you just set up, with Waiting by them, as above. If there are more, you know what you're doing anyway. If there are less, you've gone wrong somewhere.

To start the encoding click on Start. Depending on your machine and the file your encoding this will take a couple of seconds to several hours. On a 1.1GHz Athlon, it encodes at about 50fps or about twice the speed it would play the movie at (So a 2hr movie would take 1hr). On a P4C 3.0GHz, it encodes at about 150fps.

This made the original 252MB file a teeny 160KB.

Finally, if you are doing a two pass (or more) then only the final file will be viewable. Intermediate files will give an error message on both your PC and the smartphone. Best way to check is to give the file a check on your PC before transferring it across.

How do I make movies for PocketTV?

More info is available on the PocketTV website for encoding into MPEG-1:

http://pockettv.com/encoding.html

If you have any further questions then contact siu99spj in the forums or by PM.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.