LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 03-02-2011, 03:49 PM   #1
RedNeck-LQ
Member
 
Registered: Jan 2011
Posts: 83

Rep: Reputation: 11
Encoding h264 files for Android 28 tablet


hey there folks,

I have a question.

I have a archos 28 android tableet for mostly media playing and casual surfing with the built-in wifi.

Does anyone know how to encode h264 videos for android tablets.

ARCHOS 28 Technical Specifications
MPEG-4 (ASP@L5 AVI, up to DVD resolution, 30fps@4Mbps)
H.264 (up to DVD resolution MP/D1, 30fps@2Mbps)
WMV/VC1 (up to DVD resolution MP/D1, 30fps@3Mbps)
MJPG (Motion JPEG) in VGA resolution

When I encode a video to h264, it plays fine on my computer. But, when I transfer it to the player, I get an encoder unknown error.

Here is the command I use

Code:
ffmpeg -i test.mpg -f mp4 -vcodec libx264 -vpre normal -crf 23 -r 29.970 -s 320x240 -acodec libfaac -y test_h264.mp4
I've tried these options as well

-vpre hq
-vpre default
-acodec libvorbis
-acodec libmp3lame

Like I said, the encoded h264 video files plays fine on the computer, but not on the player.

Does anyone have any suggestions I can try.

Last edited by RedNeck-LQ; 03-02-2011 at 03:52 PM.
 
Old 03-02-2011, 06:22 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
I have the Archos 101. The fastest and easiest way I've found to encode video for the Archos is with HandBrake. For a one-time setup, I just selected the iPad preset, set the output format to MKV, and saved an Archos preset with resolution matching my device (320x240 for the Archos 28). Afterwards, just select the preset and you're good to go. You can queue up many files to encode, and the encoder exploits multiple CPUs for fast encoding.

Last edited by macemoneta; 03-02-2011 at 06:23 PM. Reason: Typo
 
Old 03-02-2011, 06:54 PM   #3
RedNeck-LQ
Member
 
Registered: Jan 2011
Posts: 83

Original Poster
Rep: Reputation: 11
I'll give it a try and let you know
 
Old 03-03-2011, 12:00 PM   #4
RedNeck-LQ
Member
 
Registered: Jan 2011
Posts: 83

Original Poster
Rep: Reputation: 11
The iPad preset didn't work, but the Normal preset did. The Normal preset creates a regular h264 file.

Thanks for the HandBrake suggestion.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using ffmpeg to convert to .mov with h264 encoding. crosstalk Linux - Desktop 3 02-18-2011 01:36 AM
LXer: Android tablet boom LXer Syndicated Linux News 0 01-14-2011 02:50 PM
LXer: Huawei S7 Android tablet review LXer Syndicated Linux News 0 10-29-2010 05:11 PM
LXer: Cisco To Have An Android Tablet Of Their Very Own LXer Syndicated Linux News 0 06-29-2010 06:00 PM
LXer: Is Google prepping an Android tablet? LXer Syndicated Linux News 0 04-13-2010 10:30 AM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration