View Full Version : Encoding H264 video for mobiles
Kay19
2nd June 2008, 15:17
Hi there!!!
I have got a question...
I want to encode a video using x264 for a K800i and I know the phone specs, such as bitrate, fps, and profile level...
The K800i supports H264 Baseline Profile Level 1.2
Now my question:
I encode that video with the level command in x264...
And when I use MediaInfo it shows me that my video
has the Level@L1.2 (how it is got to be), but
when I copy the video to the mobile it doesn't work!!!
And now I know why... Because, even if you use
the level command it doesn't seem to change anything
in the options to be compatible with the selected profile
level...
How can I solve this problem???
I have even tried MediaCoder and MeGUI... Always
the same matter!!!
Any quick answer is helpful!!!
Thanks!!!
Options:
1. Study H.264 and x264 a bit to find out what Baseline L1.2 is and how to set x264 appropriately.
2. Use a frontend that already has a suitable encoding profile/template. For example, many frontends have iPod profiles that might work without further tinkering.
audyovydeo
2nd June 2008, 17:46
I encode that video with the level command in x264...
does x264 issue any [Warning]s when you run it ? Don't forget that --level switch lets you hardcode a level value in the stream, but x264 does not actually correct your settings, it merely warns you if it detects incompatibilities.
cheers
audyovydeo
Kay19
3rd June 2008, 23:42
@nm: 1.) Yes, I have already downloaded some specs from english wikipedia, but the names for the options seem to be be different
than the settings I found in x264
2.) Is there any front-end out, where I can set the needed settings?
@audyovydeo: no when encoding the video it doesn't show neither warnings nor errors.
Is there any way to make x264 work with baseline 1.2 profile or what settings could I use?
@nm & audyovydeo: Thanks for your help!!!
Dark Shikari
3rd June 2008, 23:49
If you want a frontend, try MeGUI?
Kay19
4th June 2008, 15:06
@Dark Shikari: Is there any link where I can download it with codecs (such as xvid-encraw, x264 and so on) ???
Audionut
4th June 2008, 15:37
MeGui has an autoupdate feature that will also download numerous things such as codecs.
Not sure if you're aware of this, but the K800 only supports 176x144 using h264, but can do 320x240 with xvid.
Normally I use MeGui for encoding, but Xvid4PSP has pre-defined profiles for the K800 using Xvid that do a very good job.
This works for me with x264 (I have a k810) :
x264.exe --pass 1 --bitrate 196 --stats "stats.stats" --level 1.1 --no-cabac --subme 1 --partitions none --qcomp 0.8 --me dia --threads auto --thread-input --sar 1:1 --progress --no-dct-decimate --no-psnr --no-ssim --output NUL "D:\Users\John\DVDRips\john.avs"
x264.exe --pass 2 --bitrate 196 --stats "stats.stats" --level 1.1 --ref 3 --mixed-refs --no-fast-pskip --no-cabac --subme 6 --partitions p8x8,b8x8,i4x4,p4x4 --qcomp 0.8 --me umh --threads auto --thread-input --sar 1:1 --progress --no-dct-decimate --no-psnr --no-ssim --output "video.mp4" "video.avs"
Level 1.2 doesn't work for me at all. The phone probably checks the level of the file before it plays back.
But I always use Xvid4PSP to create content for my phone (using Xvid) at 320x240, 256kbps vbr for the video. You drop frames if you go above ~350kbps, so you need to limit the bitrate variance not to exceed that.
Kay19
9th June 2008, 21:17
Thanks for all your replies!!!
@Jom: Thank you very much for your commandline options!!!
How can I restrict the bitrate variance?
techouse
10th June 2008, 09:19
Anyone tried to play x264 with Core Player on Symbian 9.1/9.2?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.