LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2012, 08:36 PM   #1
linux_BSD
Member
 
Registered: Sep 2012
Posts: 47

Rep: Reputation: 4
What switches to pass to mencoder to use hardware decoding for playback?


Hi,

I have a smartphone on which I transfer movies to watch. I am using an app called MX player. The app plays the video using either software based decoding or hardware based decoding.

When I encode a video using ffmpeg or handbrake and then play it back on the smartphone, MX player uses hardware decoding to play back the video which is good and playback is smooth.

When I encode a video using mencoder, the MX player app uses software decoding for the video and playback is jerky with audio delays.

What switches do I need to pass to mencoder so that MX player can use hardware decoding instead of software decoding?

thanks for any suggestions
 
Old 10-12-2012, 09:36 PM   #2
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
I think it's going to depend on what goes into the container file...

Typically, I use AcidRip, a mencoder frontend, to rip movies. I rip them to avi files with lame encoded sound and mp2 video in the container. I've never had a playback problem with those files. However, MP4s from Handbrake,... not all players can handle them.

Look at what the hardware chipset supports to decide what container you use...
 
Old 10-12-2012, 10:09 PM   #3
linux_BSD
Member
 
Registered: Sep 2012
Posts: 47

Original Poster
Rep: Reputation: 4
Hi JaseP

Thanks for the reply. Actually, my smartphone can handle mp4 files encoded with ffmpeg and handbrake. However videos encoded by mencoder does not play well on the player but plays fine on the desktop.

Anyway, this is not a priority. I was just curious of what switches to pass for mencoder so that videos can use hardware decoding when playing on portable devices.

- Cheers
 
Old 10-13-2012, 07:03 AM   #4
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
As I was trying to say... You need to determine what the chipset can accelerate,... and transcode files to that format. Most transcoders have a default that corresponds with the container file and internal formats that were considered popular/superior at the tine they were developed.

What chipset does the mobile device have,... Davinci?!?!
 
Old 10-13-2012, 02:59 PM   #5
linux_BSD
Member
 
Registered: Sep 2012
Posts: 47

Original Poster
Rep: Reputation: 4
Sorry for the delay in getting back.

I have a samsung admire. The processor is an ARMv6 800Mhz. The chipset is unknown. I did a google search but couldn't get that info. Graphics chip is unknown.

The file container I used is avi when using mencoder. Below is an example code I used

Code:
nice -n 0 mencoder -o inno1.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:trell:vbitrate=1000:autoaspect:threads=4 -oac pcm dvd://1
The avi files play smoothly on the desktop but not well on the smartphone but mp4 files play smoothly on both the desktop and smartphone.

I think by defaultk mencoder doesn't enable something to use hardware decoding when encoding/playing avi files or maybe my smartphone is under powered. Maybe I should get a dual or quad core smartphone

Anyway, thanks for the follow up...

Last edited by linux_BSD; 10-13-2012 at 03:03 PM.
 
  


Reply



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
LXer: Setting Up VAAPI Hardware Accelerated Video Decoding for Ubuntu 10.04 LXer Syndicated Linux News 0 06-26-2010 02:31 PM
[SOLVED] Mencoder with -ss and -endpos switches problem w1k0 Linux - Software 3 12-09-2009 11:56 AM
Can you pass windows xp boot switches thru Grub? zipity Linux - Newbie 2 12-06-2004 03:28 PM
Very simple hardware question: Daisy-chaining switches? azzurro Linux - Networking 3 08-24-2004 06:59 AM
Hardware DVD decoding. raid517 Linux - Software 2 07-31-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:35 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration