Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  video only plays for first fraction of a second in nano
« previous next »
  • Print
Pages: [1]

Author Topic: video only plays for first fraction of a second in nano  (Read 1495 times)

Offline OneIsOne

  • Member
  • *
  • Posts: 2
video only plays for first fraction of a second in nano
« on: December 14, 2007, 12:01:40 PM »
I'm using MEncoder 1.0rc1-4.1.2 to encode http://www.jhepple.com/support/SampleMovies/AVI_DivX.avi just as a test to see if I can view it on my 1st generation nano.   I read through the mpegplayer wiki  http://www.rockbox.org/twiki/bin/view/Main/PluginMpegplayer and have been trying things like:

Code: [Select]
mencoder AVI_DivX.avi -of mpeg -oac lavc -lavcopts acodec=mp2:abitrate=96:vmax_b_frames=16:vb_strategy=2 -af resample=44100:0:0 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=96 -vf scale=176:132,harddup -ofps 24 -o testout.mpg

The resulting testout.mpg plays fine using mplayer on my Debian system.  If I copy it to my nano and play it using mpegplayer, then the audio plays great throughout the expected duration of the file, and the video plays great for a short fraction of a second, but then it just displays one frame as a still for the rest of it.  It fits perfectly in the screen and the image is of great quality, just unfortunately the display seems to stop somehow.  

I just installed Rockbox a couple days ago and am finding it to be totally awesome.  I just wanna see if I can get the video to work.  In reality I understand very little about video and some of those numbers in the above mencoder line I pulled out of the air (but most of it is from the wiki),  so it's possible that I'm just encoding it in a way that isn't appropriate for mpegplayer.   For comparison here's the original suggested line from the wiki, where I'm replacing the angled brackets with square brackets to avoid unintended parsing by the forum software:

Code: [Select]
mencoder [input] -of mpeg -oac lavc -lavcopts acodec=mp2:abitrate=96:vmax_b_frames=16:vb_strategy=2 -af resample=44100:0:0 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=[bitrate] -vf scale=[width]:[height],harddup -ofps 25 -o [filename].mpg

Any suggestions would be appreciated.
« Last Edit: December 14, 2007, 12:09:38 PM by OneIsOne »
Logged

Offline OneIsOne

  • Member
  • *
  • Posts: 2
Re: video only plays for first fraction of a second in nano
« Reply #1 on: December 14, 2007, 12:13:49 PM »
Okay I changed it to:
Code: [Select]
mencoder AVI_DivX.avi -of mpeg -oac lavc -lavcopts acodec=mp2:abitrate=96:vmax_b_frames=16:vb_strategy=2 -af resample=44100:0:0 -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=96 -vf scale=176:132,harddup -ofps 24 -o testout.mpg
i.e. changed it to mpeg1video from mpeg2video and now it works great.  
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  video only plays for first fraction of a second in nano
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.045 seconds with 15 queries.