How to encode MP4 videos for SE k800i?
Hello,
I have Sony Ericsson k800i and I want to encode some videos to watch on it. Here are its supported codecs: Code:
# MP3, WMA, RealAudio 8 and AAC/AAC+/eAAC+ audio Here I have a video 253can-low.avi which is 320x240, so I won't had to care of resizing for now. I tried following: Code:
/usr/local/bin/mencoder 253can-low.avi -o out.mp4 -ovc x264 -oac mp3lame And I get the following: Code:
MEncoder 1.0rc2-3.4.6 (C) 2000-2007 MPlayer Team What is the simpliest way to encode video for that phone? Update: I tried using lavc: Code:
mencoder 253can-low.avi -o out.mp4 -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame Code:
VIDEO: [DX50] 320x240 24bpp 29.970 fps 299.9 kbps (36.6 kbyte/s) Code:
VIDEO: [FMP4] 320x240 24bpp 29.970 fps 812.7 kbps (99.2 kbyte/s) |
MediaCoder
I don't know, but the older I get the less I want to mess with a number of things . . . Video encoding is one of them. I run MediaCoder http://mediacoder.sourceforge.net/ under wine and it does the job just great for me. It is open source and they are working on a native Linux version also . . . but it really does run just fine in wine.
|
Solution
If You have avidemux (or ubuntu), follow the screenshots here:
(url banned, just google for "k800i mencoder") (all GUI, maybe except "sudo apt-get install ...", which can be done with a GUI too). For mencoder, which You seem to prefer, there is a solution in the comments below that post: mencoder -ofps 24 -of lavf -lavfopts format=mp4 -af lavcresample=48000:channels=1 -vf-add harddup -vf-add scale=320:-2 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:acodec=libfaac:abitrate=128:vcodec=mpeg4:vbitrate=384:keyint=25 -subfont-text-scale 4 -subcp cp1250 -sws 9 input_file.avi -sub subtitle_file.txt -o output.mp4 If You don't need subtitles, this simplifies to: mencoder -ofps 24 -of lavf -lavfopts format=mp4 -af lavcresample=48000:channels=1 -vf-add harddup -vf-add scale=320:-2 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:acodec=libfaac:abitrate=128:vcodec=mpeg4:vbitrate=384:keyint=25 input_file.avi -o output.mp4 (I leave the scaling, because it doesn't hurt, I think). I tried with -ofps ranging from 15 to 24 (with 23.9.. something), but I don't see any significant difference on the phone. It may have some internal framedrop... |
I tried xs_gandalf's mencoder method without subtitles under Ubuntu 12.04, and it worked fine--after having replaced "acodec=libfaac" by "acodec=aac". Thanks a lot!
|
All times are GMT -5. The time now is 12:53 AM. |