Search Discussions:
Advanced Search...
Welcome to Nokia Support Discussions! Here you can share advice and tips with thousands of other Nokia users around the world in English. Many Nokia employees also follow and participate in the discussions, see our guidelines for more information. Everyone can search and read the discussions, but to post your own question or reply to others, simply login with your Nokia account. If this is your first time here, you can choose an alias to represent you. And if you don't have a Nokia account yet, please register.
Reply

Best Codec?

Mobile Sensei
korngear
Posts: 6,939

Re: Best Codec?


17-Oct-200707:30 PM
manas14kar wrote:

11-Oct-200707:13 PM
el_loco wrote:
From other threads...

/discussions/board/message?board.id=imaging&message.id=13

Ok, here we go again:

THE LIST:

- ImToo 3GP encoder
- PSPVideo 9 (Use QVGA profile)
- AnyVideoConverter, there's a free version and a pro version you can work with the free version
- Super (as korngear said)
- Quicktime Pro
- RealProducer Plus (from real)
- Nero Platnium
- Roxio converter
- Xilisoft

Nokia tools:

- Nokia Multimedia player (Choose Save As...) and select the type of video (this is installed with PC Suite so you may already have this)
- Nokia Video Manager (very simple to use)
- Nokia Multimedia Converter (you need to register to forum Nokia to use)

There are many, many more converters, but these should get you started.




You have just quoted his post dude, what is your say?:smileyhappy:
Please use plain text.
Counsellor
Posts: 312

Re: Best Codec?

Hi,
I am using Super to convert DVD from disc to play on my N95 and have a few questions.

(1) Should I be converting to MP4 or 3pg.

(2) I already converted one DVD (.vob's) to MP4 and ended up with 5 MP4 files of about 200mb each. First of all can I not end up with one MP4 file, and second of all what settings should I use to get that file(s) down to about 300mb total. I only have a 1GB memory card.
Please use plain text.
Mobile Sensei
korngear
Posts: 6,939

Re: Best Codec?

1. MP4
2. Try use lower bitrate like 768 kbps or lower.
Please use plain text.
Counsellor
Posts: 52

Re: Best Codec?



16-Oct-2007 06:24 PM
bitflung wrote:

i dont use quicktime pro to transcode myself - mostly because i am starting from DVD's and it is more efficient to go straight from dvd to h.264 by using the Handbrake application (born in BeOS, ported to MacOSX and it currently a command line app in Windows and Linux)




What settings do you use in Handbrake? i have an n82, the screen size is 320x240, shall i make the video that size? what framerate and bitrate should i use?

any help wuould be appreciated!

thanks
Please use plain text.
Sage
bitflung
Posts: 272

Re: Best Codec?


14-Feb-2008 11:03 AM
pavid wrote:


16-Oct-2007 06:24 PM
bitflung wrote:

i dont use quicktime pro to transcode myself - mostly because i am starting from DVD's and it is more efficient to go straight from dvd to h.264 by using the Handbrake application (born in BeOS, ported to MacOSX and it currently a command line app in Windows and Linux)




What settings do you use in Handbrake? i have an n82, the screen size is 320x240, shall i make the video that size? what framerate and bitrate should i use?

any help wuould be appreciated!

thanks




i use these settings:
format: mp4 file
codecs: AVC/H.264 video/AAC Audio
framerate: 25fps
encoder: x264 (h.264 Main)
average bitrate: 200kbps
2-pass encoding
turbo first-pass
--- picture settings ---
output: 320x240
anamorphic: off
keep aspect ratio : on
crop: custom ( i tweak this so my output is 240x320 with aspect ratio turned on, some dvds start with resolutions that don't scale evenly to 240x320)
denoise: off
detelcine: no
deinterlace: off
--- audio settings ---
Track 1: whichever source track i want
track 1 mix: stereo
sample rate: 48khz
bitrate: 128 kbps
--- chapters ---
i haven't tried enabling chapters - the n95 fast-forwards through the video pretty well, so i haven't tested this at all
--- advanced ---
everything default works fine, but i went through and played a bit - i changed these (but i'm not an expert):
b-frames: 4
all checkboxes UNCHECKED except for CABAC Entropy Coding

-----
thats it. these settings work great for me. the only problem i have is that occasionally i'll have a file with video that plays perfect and audio that cuts out for a couple seconds maybe 2 or 3 times in a 2 hour video. it only happens on movies that need the custom cropping, but it doesn't happen on many of those movies. if you have it, one of the movies that has this problem for me is "Better Off Dead".
---
N95-1 ---> N97-NAM ---> N900 ---> E7-00 + N900 (I use them both)
(N95 was pretty good, N97 had potential but utterly failed to deliver, N900 is absurdly good. Those of you wondering, "should I try N900/Maemo/MeeGo"? The answer is a resounding YES)
Please use plain text.
Counsellor
Posts: 52

Re: Best Codec?

thanks very much for that! really appreciate it :smileyhappy:

i did it all, copied it into the 'my videos' folder on the memory card, but it only plays the sound :smileyfrustrated: any idea why?
Please use plain text.
Sage
bitflung
Posts: 272

Re: Best Codec?



14-Feb-2008 05:05 PM
pavid wrote:
thanks very much for that! really appreciate it :smileyhappy:

i did it all, copied it into the 'my videos' folder on the memory card, but it only plays the sound :smileyfrustrated: any idea why?



i don't know - thats odd.

lets get the big picture stuff out of the way -
let me know if any of this is wrong:

you're using macosx.
you used handbrake v0.9.1
the file you created came out around 250MB.
you played the video on your mac and it worked properly.
other video files play properly on your n82.
you attempted to play the video using RealPlayer on your n82 (there is a DivX player available as well, i've never tested it though).
---
N95-1 ---> N97-NAM ---> N900 ---> E7-00 + N900 (I use them both)
(N95 was pretty good, N97 had potential but utterly failed to deliver, N900 is absurdly good. Those of you wondering, "should I try N900/Maemo/MeeGo"? The answer is a resounding YES)
Please use plain text.
Counsellor
Posts: 52

Re: Best Codec?

yep thats all right. the file is about 42MB though, its just one episode of family guy...

i couldnt find the file on divx...

when i play it, it says unable to play either sound video clip. trying to play partially... :smileyfrustrated:
Please use plain text.
Mobile Sensei
korngear
Posts: 6,939

Re: Best Codec?



15-Feb-2008 05:02 AM
pavid wrote:
yep thats all right. the file is about 42MB though, its just one episode of family guy...

i couldnt find the file on divx...

when i play it, it says unable to play either sound video clip. trying to play partially... :smileyfrustrated:



Strange, one of my friend reported same to me of N82. Video is encoded with AVC/H.264 codec, but it says unable or partially either.
Please use plain text.
Counsellor
Posts: 52

Re: Best Codec?

yeah its really annoying, i dont need to put any driver on my phone or anything??
Please use plain text.
Sage
bitflung
Posts: 272

Re: Best Codec?



15-Feb-2008 09:34 AM
pavid wrote:
yeah its really annoying, i dont need to put any driver on my phone or anything??



no, you dont need to do that.

here's an idea for you:
record a video with yur phone. record it using the maximum quality, resolution, etc. this should be an mp4 file encoded with h.264 - now, if your phone can play THAT file, it can play any similarly encoded file.

what we should try to do is record video on the n82 and find a way to analyze it - we want to know what features of h.264 are used on the phone natively.

realize that h.264 is a very complex codec and most h.264 capable players only supoprt a small subset of the features provided by the spec (QuickTime, for example, fails to implement more then just the baseline required features).

you could try another encoding - if you disable as many features as possible you may have a video that works - then selectively add on features until you find the 1 or 2 that broke it here.

since it plays only the sound, you should try modifying the video settigns.
try turning off "Keep aspect ratio"and disable the cropping entirely. you might try pushing the framerate up to 30fps, since thats the framerate your device records at (it's the same as the n95, right?).

also, the advanced options, you might disable everything. b-frames and entropy encoding included.

alternatively, i've found that a standard mp4-file plays well with my n95. the filesize is a bit bigger, but encoding time is faster. for this you just change the codec to "MPEG-4 Video / AAC Audio".

i'd like to know what you find... maybe the settings that work on the n82 would be better than what i use on my n95 (fix the audio glitch).
---
N95-1 ---> N97-NAM ---> N900 ---> E7-00 + N900 (I use them both)
(N95 was pretty good, N97 had potential but utterly failed to deliver, N900 is absurdly good. Those of you wondering, "should I try N900/Maemo/MeeGo"? The answer is a resounding YES)
Please use plain text.
Counsellor
Posts: 52

Re: Best Codec?

i just got a video i recorded off my phone onto my mac and looked at the details...

it says..

Dimensions: 640 x 480
Codecs: MPEG-4 Video, AAC
Channel Count: 1
Total bit rate: 2,574

Thats all it gives me really...

ill try encoding some more! i wish it was easier than this though. Nokia need to do some preset for different phones!
Please use plain text.
Sage
bitflung
Posts: 272

Re: Best Codec?



15-Feb-2008 11:38 AM
pavid wrote:
i just got a video i recorded off my phone onto my mac and looked at the details...

it says..

Dimensions: 640 x 480
Codecs: MPEG-4 Video, AAC
Channel Count: 1
Total bit rate: 2,574

Thats all it gives me really...

ill try encoding some more! i wish it was easier than this though. Nokia need to do some preset for different phones!



at the end of my last post i suggested trying the "MPEG-4 Video / AAC" settigns in handbrake. while your phone supports h.264 (someone correct me if i'm wrong) this codec should be simpler to decode (less cpu utilization, less battery drain, fast encoding on your mac) although result in somewhat larger filesize.

let me know if that works. and compare the filesizes - perhaps MPEG-4 won't be significantly larger at 320x240 resolution...
---
N95-1 ---> N97-NAM ---> N900 ---> E7-00 + N900 (I use them both)
(N95 was pretty good, N97 had potential but utterly failed to deliver, N900 is absurdly good. Those of you wondering, "should I try N900/Maemo/MeeGo"? The answer is a resounding YES)
Please use plain text.
Counsellor
Posts: 52

Re: Best Codec?

sorry, must have missed that!! dont know how, haha!

anyway, i tried encoding it with the same settings but mpeg-4 codec, and it works fine, although the quality isnt amazing. is h.264 supposed to be better?

the file size for approx 22 min animation, its about 41mb. seems about the same as h.264...

i just had a look on the specification of n82 on the nokia site, and it doesnt say anything about h.264... :smileyfrustrated: i assumed it supported it?
Please use plain text.
Sage
bitflung
Posts: 272

Re: Best Codec?



15-Feb-2008 12:25 PM
pavid wrote:
sorry, must have missed that!! dont know how, haha!

anyway, i tried encoding it with the same settings but mpeg-4 codec, and it works fine, although the quality isnt amazing. is h.264 supposed to be better?

the file size for approx 22 min animation, its about 41mb. seems about the same as h.264...

i just had a look on the specification of n82 on the nokia site, and it doesnt say anything about h.264... :smileyfrustrated: i assumed it supported it?



the filesize is the same because you kept the bitrate settings at 200, i think.

h.264 is much more efficient, encoding more information at any given bitrate. i think it was SUPPOSED to be about 4x better, but it's typically about 2x better. that is, for a given quality h.264 will have a file about 1/2 the size of MPEG-4. but all the metrics of comparison are based on specific features of h.264 which were, of course, optimized for specific resolutions, framerates, etc. MPEG-4 was optimized in a similar fashion, but a general rule of thumb for computers is that the better it performs in a specific environment, the worse it will perform outside that environment. thats why i figured MPEG-4 might be pretty much the same quality as h.264 at the smaller resolution.

you could crank up the bitrate. double the bitrate and you'll see the filesize jump up by around 60% (128kbps audio + 200kbps video + 200 more kbps video == about 528kbps total, or 1.6x 328kbps of the previous encoding)

so, with 400kbps video bitrate, i'd expect your 41mb file to come out become a 66mb file.

for single episode encodings like this, thats probaly not a deal breaker. but in a similar fashion a 700mb MPEG-4 encoding would be only 438mb in h.264 (with the 2x quality vs size ratio). so you might want to find a way to play more efficient video formats if you plan to play full length movies on your n82.

i think the n82 DOES play h.264. look here:
http://tinyurl.com/38awnf
(links to: www.nseries.com)

in the Video section it states:
Video player - supports MPEG4, AVC/H.264, H.264, H.263, RV

looks like we just need to find the right set of H.264 features...
---
N95-1 ---> N97-NAM ---> N900 ---> E7-00 + N900 (I use them both)
(N95 was pretty good, N97 had potential but utterly failed to deliver, N900 is absurdly good. Those of you wondering, "should I try N900/Maemo/MeeGo"? The answer is a resounding YES)
Please use plain text.
Mobile Sensei
korngear
Posts: 6,939

Re: Best Codec?

I think the N96 will be hassle free. One thing I do not know, did they added the slow motion option to watch the vid? I like slow motion.
Please use plain text.
Mobile Guru
el_loco
Posts: 3,920

Re: Best Codec?

I don't think there's a slow motion option.,

On the topic...

H264 is much more CPU intensive and is more complex to use than MPEG-4.

Nokia devices don't support VGA AVC h264 video playback only MPEG-4 VGA. If you want to use H264 then you have to limit the resolution to QVGA. And you must use the baseline profile of H264 not the main profile.

640K Should be enough for everybody
El_Loco Nokia Video Blog
Please use plain text.
Counsellor
Posts: 52

Re: Best Codec?

oh rite!... i kinda get it...

any idea how to make it QVGA on handbrake? or do u have to use something else?
Please use plain text.
Counsellor
Posts: 52

Re: Best Codec?

i just saw on handbreak, there is a drop down menu for encoder, one says x264(h.264 main), and then x264(h.264 iPod), would the ipod one be the baseline....?
Please use plain text.
Mobile Guru
el_loco
Posts: 3,920

Re: Best Codec?

No both of those are not going to work in Nokia devices.

You may try to get Super at www.erightsoft.com it's free and it can be set to baseline.

640K Should be enough for everybody
El_Loco Nokia Video Blog
Please use plain text.