maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Converting video on the tablet? (https://talk.maemo.org/showthread.php?t=29266)

botsnlinux 2009-05-31 11:46

Converting video on the tablet?
 
I'm looking for a way to compile a series of JPEG images on my tablet into a video file. On my desktop, I'd use FFMpeg or MEncoder, but I haven't been able to find versions of these tools compiled for Maemo. I'm not looking to convert video on my desktop for playing on the tablet; I'm away from my computer for a month, and would like to use my tablet to do the video processing.
Does anyone know if there are maemo packages of FFMpeg or MEncoder? If not, are there other tools that would do the same thing?
Thanks!

qwerty12 2009-05-31 11:55

Re: Converting video on the tablet?
 
http://www.mediafire.com/?0hqzwzzyytz - comes with mencoder. (thanks to Bundyo)

ukki 2009-05-31 12:05

Re: Converting video on the tablet?
 
I have an ffmpeg binary if you are interested.

botsnlinux 2009-05-31 12:28

Re: Converting video on the tablet?
 
An ffmpeg binary would be great. Thanks for the fast replies!

ukki 2009-05-31 13:20

Re: Converting video on the tablet?
 
ffmpeg.zip

Sorry, no package. Needs few extra libs:

http://p.quinput.eu/debfarm/pool/lib...-0.0_armel.deb

and libfaad2-0 from extras:

Code:

apt-get install libfaad2-0

sla_erick 2009-10-10 14:58

Re: Converting video on the tablet?
 
how do i install the mplayer.tar.gz file on the tablet?

Mgamerz 2009-10-13 03:32

Re: Converting video on the tablet?
 
I'm not a linux person much but I think it needs to be chmod +x to be able to run... Im still a chmod noob though so don't take my word!
Edit oh... extract mencoder... perhaps it has a make or something in it? don't chmod the archive.

lowtek 2010-03-23 17:03

Re: Converting video on the tablet?
 
Quote:

Originally Posted by ukki (Post 292371)
ffmpeg.zip

Sorry, no package. Needs few extra libs:

http://p.quinput.eu/debfarm/pool/lib...-0.0_armel.deb

and libfaad2-0 from extras:

Code:

apt-get install libfaad2-0

i'm hoping to try this binary too but i'm stumped. could someone please explain how to "install" it?

getting the two libs are easy, i'm just stumped as to what to do with the "ffmpeg" file thats inside the zip archive.

thanks!!

zimon 2010-03-23 17:21

Re: Converting video on the tablet? ffmpeg2theora
 
btw, whether in PC (Linux, Windows, ...) or in tablet (if you get ffmpeg2theora compiled), I've found ffmpeg2theora to be best transcoding software for videos to be watched on N900.
http://v2v.cc/~j/ffmpeg2theora/download.html
(If you install to Fedora/Debian/Ubuntu, look from your repositories first as it surely is there also and it is more secure way to install anything that way.)

For example:
Code:

$ ffmpeg2theora -p padma anyTypeOfVideo.avi
Will ouput anyTypeOfVideo.ogv which has Theora as video codec, Vorbis as audio codec and the resolution is correctly resized to be good for N900 (800x480) and it knows how to handle both 4:3 and 16:9 sources. If you have interlaced video, it may recognize it correctly, but you can also force deinterlacing with --deinterlace option.
Quote:

$ ffmpeg2theora -p info
...
padma Video: 640x360 for 16:9 material, 640x480 for 4:3 material
Quality 6
Audio: Max 2 channels - Quality 3
(For 16:9 material someone may want to tweak more)

lowtek 2010-03-24 04:03

Re: Converting video on the tablet? ffmpeg2theora
 
i'm trying real hard to figure out how to use this ffmpeg "binary." google found this for me:

Quote:

1. Copy ffmpeg to /usr/local/bin.
2. Execute the following in Terminal (as admin):
Code:

  sudo chown root:wheel /usr/local/bin/ffmpeg
  sudo chmod 755 /usr/local/bin/ffmpeg

Now you have a working version of ffmpeg in the Terminal.
although i used gainroot and used this code instead:

Code:

sudo chown root /usr/local/bin/ffmpeg
sudo chmod 755 /usr/local/bin/ffmpeg

it didn't work for me, but am i going in the right direction?

grog 2010-03-31 20:08

Re: Converting video on the tablet? ffmpeg2theora
 
Quote:

Originally Posted by zimon (Post 579054)
btw, whether in PC (Linux, Windows, ...) or in tablet (if you get ffmpeg2theora compiled), I've found ffmpeg2theora to be best transcoding software for videos to be watched on N900.
http://v2v.cc/~j/ffmpeg2theora/download.html

Thanks for the tip, but I can't seem to get kmplayer/mplayer or the default media player to play these files. Do I need to install extra codecs from somewhere? TX

zimon 2010-03-31 20:17

Re: Converting video on the tablet? ffmpeg2theora
 
Quote:

Originally Posted by grog (Post 590354)
Thanks for the tip, but I can't seem to get kmplayer/mplayer or the default media player to play these files. Do I need to install extra codecs from somewhere? TX

gstreamer0.10-theora and libtheora0 packages from maemo.org repository.
Code:

# dpkg -L gstreamer0.10-theora
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/gstreamer0.10-theora
/usr/share/doc/gstreamer0.10-theora/NEWS.gz
/usr/share/doc/gstreamer0.10-theora/AUTHORS
/usr/share/doc/gstreamer0.10-theora/README.Debian
/usr/share/doc/gstreamer0.10-theora/copyright
/usr/share/doc/gstreamer0.10-theora/README.gz
/usr/share/doc/gstreamer0.10-theora/changelog.Debian.gz
/usr/lib
/usr/lib/gstreamer-0.10
/usr/lib/gstreamer-0.10/libgsttheora.so

# dpkg -L libtheora0
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libtheora0
/usr/share/doc/libtheora0/AUTHORS
/usr/share/doc/libtheora0/copyright
/usr/share/doc/libtheora0/README.gz
/usr/share/doc/libtheora0/changelog.gz
/usr/lib
/usr/lib/libtheora.so.0.3.8
/usr/lib/libtheoradec.so.1.1.2
/usr/lib/libtheoraenc.so.1.1.2
/usr/lib/libtheora.so.0
/usr/lib/libtheoradec.so.1
/usr/lib/libtheoraenc.so.1


dbs11 2010-03-31 20:28

Re: Converting video on the tablet?
 
((probably not the best thread to mention)) but i used Windows Movie Maker on Windows 7 to compile about 40 JPEG files into a Movie. I wanted to create something similar to a MarvelComics movie at the beginning where you see a comic book flicker. So i managed that with Movie Maker and have this video play when my phone switches on (instead of the nokia handshake).

grog 2010-03-31 21:02

Re: Converting video on the tablet? ffmpeg2theora
 
Quote:

Originally Posted by zimon (Post 590366)
gstreamer0.10-theora and libtheora0 packages from maemo.org repository.

Thanks for that, but it only got me part way - I get just sound. When I run mplayer from the command line, I can see it recognizing the audio tracks but not the video. I can play the file(s) properly on my linux desktop using mplayer, so I know it's not the file.

Code:

$ mplayer movie.ogv
MPlayer SVN-r30099-4.2.1 (C) 2000-2009 MPlayer Team

Playing movie.ogv.
Ogg stream 0 is of an unknown type
Ogg stream 1 is of an unknown type
[Ogg] stream 2: audio (Vorbis), -aid 0
Ogg file format detected.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 80.0 kbit/5.21% (ratio: 10000->192000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  2.0 (02.0) of 7037.6 ( 1:57:17.5)  3.2%                                                                                                         

MPlayer interrupted by signal 2 in module: play_audio
A:  2.3 (02.3) of 7037.6 ( 1:57:17.5)  3.2%                                                                                                         
Exiting... (Quit)

TX

zimon 2010-03-31 21:13

Re: Converting video on the tablet?
 
Mplayer does not use gstreamer (it is an old monolith design, like Wordperfect). And it seems they have not compiled theora support into Maemo Mplayer.

Try with the standard media player which came with N900 after you have those theora libs installed. It works for me.

grog 2010-03-31 21:37

Re: Converting video on the tablet?
 
Quote:

Originally Posted by zimon (Post 590426)
Mplayer does not use gstreamer (it is an old monolith design, like Wordperfect)

Ah, someone else who remembers the old CHUI WordPerfect, eh? :)

Quote:

Try with the standard media player which came with N900 after you have those theora libs installed. It works for me.
mmm, I had tried that first, I get the error "Video Codec not supported" :(. This is after a reboot too.

I also tried installing ogg-support, which works when I use the file manager to open the video, but plays very choppy. And then the Media Player doesn't pick up anything else automatically (i.e. the file associations are lost, I suppose?). So I ditched that.

I'll just go back to using Tablet-encode. Always worked for my N800 & N810 ;).

Thanks anyway.

zimon 2010-03-31 21:53

Re: Converting video on the tablet?
 
I have also these packages installed which may make the difference:
ogg-support
libogg0
gstreamer0.10-ogg
tracker-extractor-vorbis
libvorbis0a
libvorbisfile3
libtheora0
gstreamer0.10-theora

grog 2010-04-01 01:53

Re: Converting video on the tablet?
 
Quote:

Originally Posted by zimon (Post 590465)
I have also these packages installed which may make the difference:
ogg-support
libogg0
gstreamer0.10-ogg
tracker-extractor-vorbis
libvorbis0a
libvorbisfile3
libtheora0
gstreamer0.10-theora

I installed them all, rebooted, made no difference. Video is choppy & Media Player (or whatever scans the device for multimedia files) doesn't pick up anything anymore. Annoying.

Now what's even more annoying is that even after I removed all the packages & rebooted, Media Player is still not picking up any files. :confused: Great, looks like something got borked. :( I'll have to try to fix that tomorrow.

Again thanks for trying but I'll stick with avi's. haveahappy :)

zimon 2010-04-01 12:24

Re: Converting video on the tablet?
 
Quote:

Originally Posted by grog (Post 590692)
I installed them all, rebooted, made no difference. Video is choppy & Media Player (or whatever scans the device for multimedia files) doesn't pick up anything anymore. Annoying.

The file tracker, the daemon which identifies and categorises files, is not run always. There may be some logic to run it only at nights or when connected to PSU for charging. I noticed one night, when suddenly CPU usage was all the time 100% and at 600 MHz for quite some time, that "tracker" was the culprit. But after it has done it job, the device was idle again.

Shame you didn't get it working. Ogg, Vorbis and Theora would be the "politically" correct targets to transcode media-files to. :)

grog 2010-04-01 15:42

Re: Converting video on the tablet?
 
Quote:

Originally Posted by zimon (Post 591257)
The file tracker, the daemon which identifies and categorises files, is not run always. There may be some logic to run it only at nights or when connected to PSU for charging. I noticed one night, when suddenly CPU usage was all the time 100% and at 600 MHz for quite some time, that "tracker" was the culprit. But after it has done it job, the device was idle again.

Shame you didn't get it working. Ogg, Vorbis and Theora would be the "politically" correct targets to transcode media-files to. :)

I'll probably try it again sometime.

Unfortunately my N900 has been on all night & morning & there's still not any files showing in MP. I rebooted I left it for a while, still nothing.

Hopefully I'll have more time to "play" later. If it turns into a real problem I can't solve or find a post that does I'll post it in another thread. Don't want to get off track here.TX

npsimons 2010-04-06 23:24

Re: Converting video on the tablet?
 
Quick question: has anyone else had any luck with Thoggen (http://thoggen.net/)? I've used it on a couple of DVDs, but anytime I try to push the resolution (eg, 480x320 and up), the video becomes choppy on my N900. I like Thoggen because it will resize and crop on the fly, plus it's very simple and straightforward; none of this messing with bitrates or containers or codecs. But then, maybe that's why I get choppy videos, because I don't know what "quality" setting or bitrate to use for decent playback on the N900. I'm fairly certain the N900 should be able to handle big videos; I'm just hoping it's something I'm doing wrong.

grog 2010-04-07 18:13

Re: Converting video on the tablet?
 
Quote:

Originally Posted by grog (Post 591532)
Unfortunately my N900 has been on all night & morning & there's still not any files showing in MP. I rebooted I left it for a while, still nothing.

Hopefully I'll have more time to "play" later. If it turns into a real problem I can't solve or find a post that does I'll post it in another thread. Don't want to get off track here.TX

No need for a new thread but I did want to record my resolution somewhere so to not leave the issue hanging. Looks like I ran into bug 8605. Following this comment cleared it up. Now whether it was caused by my fiddling around here or something else who knows, but just like anything else you try on your tablet, YEE BE WARNED, THERE MAY BE DRAGONS ;). TX


All times are GMT. The time now is 21:24.

vBulletin® Version 3.8.8