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
| | |-+  PluginMpeg
« previous next »
  • Print
Pages: [1]

Author Topic: PluginMpeg  (Read 3502 times)

Offline mevets

  • Member
  • *
  • Posts: 4
PluginMpeg
« on: June 07, 2007, 10:39:20 AM »
Im having a hard time converting video for rockbox on linux. I'm currently using VLC to convert to mpeg (at least i think, there are so many variations of mpeg listed). Converted videos never seem to play though.

What is the proper process to convert video for the plugin, on either Linux or Windows?

PS - Why isnt Ogg THEORA supported while Ogg Vorbis is?
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: PluginMpeg
« Reply #1 on: June 07, 2007, 10:52:23 AM »
Quote from: mevets on June 07, 2007, 10:39:20 AM
PS - Why isnt Ogg THEORA supported while Ogg Vorbis is?

Because vorbis is an audio codec, not a video one, which is what Theora is.

There's nothing stopping anyone starting work on implementing Theora for PluginMpeg if they want.
Logged

Read The Manual Please

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: PluginMpeg
« Reply #2 on: June 07, 2007, 12:03:02 PM »
Quote from: mevets on June 07, 2007, 10:39:20 AM
Im having a hard time converting video for rockbox on linux. I'm currently using VLC to convert to mpeg (at least i think, there are so many variations of mpeg listed). Converted videos never seem to play though.

What is the proper process to convert video for the plugin, on either Linux or Windows?

PS - Why isnt Ogg THEORA supported while Ogg Vorbis is?

I usually use the batch file on the Wiki (for VLC).  It has worked fine for the files I have transcoded.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline Vortex

  • Member
  • *
  • Posts: 155
Re: PluginMpeg
« Reply #3 on: June 07, 2007, 12:09:32 PM »
Unfortunately MpegPlayer does not play the files I converted with mencoder properly (I used the command line from the wiki). When I play one of those files, after a while the video suddenly skips several seconds ahead, then drops down to ~4fps until the audio has caught up. It then continues to play smoothly for a few seconds and then the same thing happens again.

I'm currently using wine to run WinFF and use that for converting. It works, but I'm not happy with it.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: PluginMpeg
« Reply #4 on: June 07, 2007, 12:20:32 PM »
WinFF just uses FFMpeg, and can be compiled for linux anyway. Why exactly are you using Wine with it?
Logged

Offline mevets

  • Member
  • *
  • Posts: 4
Re: PluginMpeg
« Reply #5 on: June 07, 2007, 12:28:52 PM »
I found mencoder on google:
Code: [Select]
mencoder "/path/to/source.ext" -o "/path/to/output.mpeg" -of mpeg -oac lavc -lavcopts acodec=mp2:abitrate=192 -af resample=44100:0:0 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=250 -vf scale,harddup -ofps 25 -zoom -xy 320
It works but the video is considerably behind the audio and unwatchable.
Logged

Offline Vortex

  • Member
  • *
  • Posts: 155
Re: PluginMpeg
« Reply #6 on: June 07, 2007, 03:45:00 PM »
Quote
I found mencoder on google:
No need to google for that command line. As I already said, you can find this in the wiki.

Quote
WinFF just uses FFMpeg, and can be compiled for linux anyway. Why exactly are you using Wine with it?
WinFF can be compiled for linux?? I honestly didn't even think of that possibility.

Of course I do have ffmpeg installed but it's too much of a hassle to create a suitable ffmpeg commandline by hand. WinFF does this very conveniently and still allows you to tweak some parameters.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: PluginMpeg
« Reply #7 on: June 07, 2007, 04:02:10 PM »
That's why the wiki page has a section titled "Using WinFF (Windows/Linux)" and the download page it links to has a debian and Red Had package. ;)
Logged

Offline Vortex

  • Member
  • *
  • Posts: 155
Re: PluginMpeg
« Reply #8 on: June 07, 2007, 05:27:12 PM »
Yeah I must have been kind of blind to not see this. :(

However I can't seem to get it to work. The precompiled binary included in the "source" won't run. It gives me
Code: [Select]
./winff: error while loading shared libraries: libgdk_pixbuf.so.2: cannot open shared object file: No such file or directory
even though I do have the gtklibs installed (as well as the 32bit emulation gtklibs).

Furthermore there were no build/installation instructions included and I don't know how to compile Pascal code.

Has anybody compiled and set up a working WinFF on a 64bit Linux box?

EDIT: It seems there really exists no libgdk_pixbuf.so.2 on my system. Any ideas in which package this _might_ be included? I'm running Gentoo Linux by the way.
EDIT2: I have a /usr/lib64/libgdk_pixbuf-2.0.so though.

EDIT3: Since the precompiled WinFF is a 32bit binary I tried to symlink /usr/lib32/libgdk_pixbuf-2.0.so to libgdk_pixbuf.so.2.
Now when I try to run WinFF it pops up a window that contains the helpful message "file not found" and prints the following to the console:
Code: [Select]
$ ./winff
[FORMS.PP] ExceptionOccurred
  Sender=EInOutError
  Exception=File not found
  Stack trace:
  $08078DE9
  $0806F8D1
  $0807113C
  $080775C2
  $08053A44
TApplication.HandleException File not found
  Stack trace:
  $08078DE9
  $0806F8D1
  $0807113C
  $080775C2
  $08053A44
Runtime error 217 at $0805EA5A
  $0805EA5A
  $0805EE54
  $08077603
  $08053A44
  $080539B1
It appears to me as if the author didn't put much effort into actually making this run on Linux.
« Last Edit: June 07, 2007, 05:45:20 PM by Vortex »
Logged

Offline mevets

  • Member
  • *
  • Posts: 4
Re: PluginMpeg
« Reply #9 on: June 08, 2007, 10:19:01 AM »
Sorry can't help, don't think it would be the best solution nonetheless.
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: PluginMpeg
« Reply #10 on: June 08, 2007, 11:08:41 AM »
Quote from: Vortex on June 07, 2007, 12:09:32 PM
Unfortunately MpegPlayer does not play the files I converted with mencoder properly (I used the command line from the wiki). When I play one of those files, after a while the video suddenly skips several seconds ahead, then drops down to ~4fps until the audio has caught up. It then continues to play smoothly for a few seconds and then the same thing happens again.
Hi,

you can avoid this problem by telling mencoder to use B-frames while encodeing. Look in the mencoder man page for "vmax_b_frames".
Here is an example comandline that uses this option:
Code: [Select]
mencoder.exe -of mpeg -oac mp3lame -lameopts preset=medium -af resample=44100:0:0 -ovc lavc -ofps 25 -lavcopts vcodec=mpeg2video:vqscale=8:vmax_b_frames=4:keyint=50 -vf scale,harddup -zoom -xy 220 [inputfile(s)] -o [outputfile]
Logged

Offline mevets

  • Member
  • *
  • Posts: 4
Re: PluginMpeg
« Reply #11 on: June 08, 2007, 11:40:32 AM »
thanks this works. Video is half the size of 5G video ipod screens though.
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: PluginMpeg
« Reply #12 on: June 08, 2007, 11:55:26 AM »
Quote from: mevets on June 08, 2007, 11:40:32 AM
Video is half the size of 5G video ipod screens though.
You could either change the "-zoom -xy 220" part near the end of the line i posted to "-zoom -xy 320"
or add the option ":vmax_b_frames=4" to the videocodecoptions in the comand you were previously using.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  PluginMpeg
 

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

Page created in 0.106 seconds with 17 queries.