maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   How to install all video and audio codec (https://talk.maemo.org/showthread.php?t=92246)

n950 2014-01-02 13:16

How to install all video and audio codec
 
Hello,

I want to install video and audio codec on my jolla phone.

Where can i find them to read all video files?

How to install them too?

Thanks

nieldk 2014-01-02 13:17

Re: How to install all video and audio codec
 
http://en.wikipedia.org/wiki/List_of_codecs

Some are opensource, som are not. There is no 'install'em all' package :P

Allthough, you can try and compile VLC
http://www.videolan.org/vlc/download-sources.html

djselbeck 2014-01-02 14:01

Re: How to install all video and audio codec
 
Sailfish OS uses gstreamer right? Should'nt it be relativly easy to compile gst-ffmpeg for sailfish?

Will have a look with mer platform-sdk in the future

nieldk 2014-01-02 14:02

Re: How to install all video and audio codec
 
Yes, probably also simple to compile VLC, did a small test here (at work LOL) and I dont think it should be to hard, will look into it later

djselbeck 2014-01-02 14:07

Re: How to install all video and audio codec
 
Quote:

Originally Posted by nieldk (Post 1403029)
Yes, probably also simple to compile VLC, did a small test here (at work LOL) and I dont think it should be to hard, will look into it later

A nice gui would probably be the most time consuming part :D

nieldk 2014-01-02 14:12

Re: How to install all video and audio codec
 
heh, yeah, I am not a GUI kinda guy. I love my commandline crap ;)
But, perhaps, someone can add that to compiled code ;)

xerxes2 2014-01-02 15:09

Re: How to install all video and audio codec
 
What codecs are missing? Give me some examples and I'll look into it. Gst-ffmpeg is already installed by default but could of course be missing stuff that's been disabled for legal reasons. I can't find gst-plugins-ugly though. IIRC VLC is not yet ported to Qt5 so no luck there.

djselbeck 2014-01-02 15:10

Re: How to install all video and audio codec
 
I think that they disabled them ;). AC3 is missing probably DTS and co too. Must test it soon

shmerl 2014-01-02 15:42

Re: How to install all video and audio codec
 
VP8 / VP9 are notably missing ("thanks" to Nokia for being a troll serving their MS overlords).

One can also build mplayer, or mpv. They support tons of codecs and don't rely on gstreamer (they use ffmpeg or libav directly).

n950 2014-01-02 16:38

Re: How to install all video and audio codec
 
For exemple I have recorded MP4 file with my Sony Cybershot and I can't read it with sailfish player why?

I need one codec (support all video and audio) to install in RPM file possible? with the terminal.

Like FFdshow
http://sourceforge.net/projects/ffdshow/
http://www.free-codecs.com/download/ffdshow.htm

or FFmpeg :)

0rphu 2014-01-02 17:22

Re: How to install all video and audio codec
 
Like it's been said here before, the multimedia is built around gstreamer, but not all plugins are available for whatever the reason. These should be the momentarily available decoders
Code:

[nemo@dhcppc1 ~]$ gst-inspect-0.10 | grep dec
openmax:  omxh263dec: OpenMAX H.263 Video Decoder
openmax:  omxh264dec: OpenMAX H.264 Video Decoder
openmax:  omxmpeg4videodec: OpenMAX MPEG4 Video Decoder
av:  avadec: av audio decoder
speex:  speexdec: Speex audio decoder
rtsp:  rtpdec: RTP Decoder
png:  pngdec: PNG image decoder
mulaw:  mulawdec: Mu Law audio decoder
jpeg:  smokedec: Smoke video decoder
jpeg:  jpegdec: JPEG image decoder
flxdec:  flxdec: FLX video decoder
flac:  flacdec: FLAC audio decoder
annodex:  cmmldec: CMML stream decoder
alaw:  alawdec: A Law audio decoder
vorbis:  vorbisdec: Vorbis audio decoder
theora:  theoradec: Theora video decoder
uridecodebin:  uridecodebin: URI Decoder
uridecodebin:  decodebin2: Decoder Bin
decodebin:  decodebin: Decoder Bin

you can notice for example mpeg2 decoder is missing.(it's part of gst-plugins-ugly which is not installed and not available in the repos)
Also not all plugins from other plugin bundles are available. Yesterday I compiled MPEG-2 transport stream demuxer from -bad, wasn't that hard using the Mer Build engine.

xerxes2 2014-01-02 18:18

Re: How to install all video and audio codec
 
I put gst-plugins-ugly on Openrepos now so AC3 should work. Will take a look at VP8/VP9 now.

Edit: Ok, no libvpx in Sailfish so will have to start building that and then look for gst plugins somewhere.

shmerl 2014-01-02 18:30

Re: How to install all video and audio codec
 
libvpx is missing in Sailfish for legal reasons (it's considered risky because of Nokia, but not because it's really infringing), but it can probably be added to Mer (unless Mer project also objects to it).

Teun 2014-01-02 19:01

Re: How to install all video and audio codec
 
I would love to see this realized... I remember the plugin package we had on the N900 it made it this multimedia beast. any way to recycle old maemo packages.. probably not

nieldk 2014-01-02 19:18

Re: How to install all video and audio codec
 
Quote:

Originally Posted by xerxes2 (Post 1403122)
I put gst-plugins-ugly on Openrepos now so AC3 should work. Will take a look at VP8/VP9 now.

Edit: Ok, no libvpx in Sailfish so will have to start building that and then look for gst plugins somewhere.

not sure what you mean by having to search for gstreamer plugins ? you seem to have that - from freedesktop I assume :)

perhaps this link is useful for libvpx
http://www.linuxfromscratch.org/blfs...ia/libvpx.html

shmerl 2014-01-02 19:28

Re: How to install all video and audio codec
 
libvpx is here: http://www.webmproject.org/code/

xerxes2 2014-01-02 19:28

Re: How to install all video and audio codec
 
Yeah I found vp8 plugin in gst-plugins-bad but I can't get libvpx to build ... yet. Get an error:
"Requested CPU 'cortex-a8' not supported by compiler"

n950 2014-01-02 20:09

Re: How to install all video and audio codec
 
Quote:

Originally Posted by xerxes2 (Post 1403145)
Yeah I found vp8 plugin in gst-plugins-bad but I can't get libvpx to build ... yet. Get an error:
"Requested CPU 'cortex-a8' not supported by compiler"

How can you compile a source code? for your exemple.

can you give me all the steps to add vp8 plugin to existing source codec? command lines plz
you are on linux? ubuntu? in terminal...
thanks in advance.

shmerl 2014-01-02 20:17

Re: How to install all video and audio codec
 
n950: Source code can be compiled with Mer SDK, or automatically with the OBS.

Start here:

https://wiki.merproject.org/wiki/Platform_SDK
https://wiki.merproject.org/wiki/Platform_SDK_and_SB2

This is also a useful page: https://wiki.merproject.org/wiki/Contribution_in_detail

aegis 2014-01-02 20:34

Re: How to install all video and audio codec
 
Quote:

Originally Posted by n950 (Post 1403087)
For exemple I have recorded MP4 file with my Sony Cybershot and I can't read it with sailfish player why?

I've had this in the past with Sony equipment where they have their own codec. The file container format is MP4 but the codec is their own MSNV codec. Not all players support it so you have to convert it to regular MP4 before it'll play.

Handbrake or ffmpeg will probably convert it.

n950 2014-01-02 20:59

Re: How to install all video and audio codec
 
Quote:

Originally Posted by aegis (Post 1403171)
I've had this in the past with Sony equipment where they have their own codec. The file container format is MP4 but the codec is their own MSNV codec. Not all players support it so you have to convert it to regular MP4 before it'll play.

Handbrake or ffmpeg will probably convert it.

Yes but it's not the problem.

For exemple with my windows XP and FFDshow installed all MP4 files can play.
I think it's possible with Linux but need to add some codec to the existing one in SailfishOS.

shmerl 2014-01-02 23:20

Re: How to install all video and audio codec
 
n950: Windows example is irrelevant. Codecs are handled through libraries on Linux (libvorbis, libopus, libvpx, libav etc. etc.). And then there are frameworks built on top of that (like the mentioned above gstreamer). Applications use those libraries (for example mplayer) or they use higher level frameworks. Or a combination of both (for example Sailfish browser).

n950 2014-01-03 15:08

Re: How to install all video and audio codec
 
Any updates?

xerxes2 2014-01-03 15:32

Re: How to install all video and audio codec
 
I managed to build libvpx but I can't seem to get any picture. The Gallery app only seems to take mp4 and gst-launch doesn't give any picture only sound. Is there not a video player available that plays everything that gstreamer supports?

Edit: And are Opus and DTS also missing? Because those are part of gst-plugins-bad too.

n950 2014-01-03 17:27

Re: How to install all video and audio codec
 
Quote:

Originally Posted by xerxes2 (Post 1403408)
I managed to build libvpx but I can't seem to get any picture. The Gallery app only seems to take mp4 and gst-launch doesn't give any picture only sound. Is there not a video player available that plays everything that gstreamer supports?

Edit: And are Opus and DTS also missing? Because those are part of gst-plugins-bad too.

Yes we need to have/install perhaps a video player on Android that support all codecs. is it a good idea?

shmerl 2014-01-03 20:31

Re: How to install all video and audio codec
 
Opus is WIP, it's going to be enabled together with transition to gstreamer 1.0 (according to Jolla). I.e. nothing legal prevents it.

shmerl 2014-01-03 20:35

Re: How to install all video and audio codec
 
How did you run the gst-launch by the way?

xerxes2 2014-01-03 21:00

Re: How to install all video and audio codec
 
Opus fixed and tested, was in -bad too. VP8 works according to gst-launch but it doesn't give any picture. I'm running gst-launch like this:

gst-launch-0.10 playbin2 uri=file:///home/nemo/test.opus

But it doesn't seem to support pictures, we'll have to investigate a bit more. Someone must also write a video player that supports everything that gstreamer do.

shmerl 2014-01-03 21:08

Re: How to install all video and audio codec
 
For video you need to use proper sinks I think. I'll take a look at how to run it.

xerxes2 2014-01-03 22:26

Re: How to install all video and audio codec
 
I added support for DTS to -bad and tested on device. And xvid doesn't seem to be supported in -bad either so will have to add that too. Maybe even Gallery will support that.

xerxes2 2014-01-04 15:18

Re: How to install all video and audio codec
 
Ok I added the rest of the plugins to openrepos now. So ...

gst-plugins-ugly -> ac3 and some more stuff
gst-plugins-bad-extra -> dts, opus and vp8
gstreamer0.10-ffmpeg-extra -> xvid and the kitchen sink :)

But we need a good video player too because Gallery is seriously crippled.

Edit: Install instructions:

Code:

ssu addrepo sailfish_lib http://sailfish.openrepos.net/sailfish_lib/personal/main
ssu updaterepo
pkcon refresh sailfish_lib
pkcon install gst-plugins-ugly gst-plugins-bad-extra gstreamer0.10-ffmpeg-extra


SwitchBlade 2014-01-04 16:30

Re: How to install all video and audio codec
 
Have you tried LLs Video Player?

http://talk.maemo.org/showthread.php?t=92141

n950 2014-01-04 18:33

Re: How to install all video and audio codec
 
@xerxes2:

ok can you create for me the rpm file to install it on my jolla for these codecs?

support mp4 file from sony cybershot?

nieldk 2014-01-04 19:12

Re: How to install all video and audio codec
 
Quote:

Originally Posted by n950 (Post 1403789)
@xerxes2:

ok can you create for me the rpm file to install it on my jolla for these codecs?

support mp4 file from sony cybershot?

Just install them from @xerxes2 openrepos :P
https://openrepos.net/user/876/programs

venomcortx1 2014-01-04 20:01

Re: How to install all video and audio codec
 
how can i install it?) just download and ...?

jamar 2014-01-04 20:30

Re: How to install all video and audio codec
 
1 Attachment(s)
Quote:

Originally Posted by xerxes2 (Post 1403735)
Ok I added the rest of the plugins to openrepos now. So ...

Wow, thanks! Seems to be working fine even with the gallery player. Now I can play most of my videos, great.
I just have color issues with some XVID videos (see the attachment). But I don't know whether it's codec or player issue.

nieldk 2014-01-04 20:46

Re: How to install all video and audio codec
 
Quote:

Originally Posted by venomcortx1 (Post 1403807)
how can i install it?) just download and ...?

zypper ar -f http://sailfish.openrepos.net/sailfi...onal-main.repo

rpm --import http://sailfish.openrepos.net/openrepos.key

plcon refresh

pkcon install gstreamer0.10-ffmpeg-extra gst-plugins-bad-extra gst-plugins-ugly

xerxes2 2014-01-04 20:47

Re: How to install all video and audio codec
 
Quote:

Originally Posted by n950 (Post 1403789)
@xerxes2:

ok can you create for me the rpm file to install it on my jolla for these codecs?

support mp4 file from sony cybershot?

I don't know what format that is but you can try the ffmpeg plugin mentioned above. Or you can give a sample to try or take a look here:
http://pastebin.com/TxtdWMrg

There you have everything that is supported by ffmpeg but Gallery might not play it anyway because it's crippled.

xerxes2 2014-01-04 20:52

Re: How to install all video and audio codec
 
Quote:

Originally Posted by jamar (Post 1403816)
Wow, thanks! Seems to be working fine even with the gallery player. Now I can play most of my videos, great.
I just have color issues with some XVID videos (see the attachment). But I don't know whether it's codec or player issue.

Yeah I noticed that too earlier, one xvid file had messed up colors. I've seen the same thing a few years ago and iirc it was a missing element in the gstreamer pipeline so Gallery may not be using the playbin element. If I could just get gst-launch to show pictures ...

Edit: BTW, my messed up file looked exactly like yours so something is not quite right here.

n950 2014-01-05 11:55

Re: How to install all video and audio codec
 
Quote:

Originally Posted by nieldk (Post 1403819)
zypper ar -f http://sailfish.openrepos.net/sailfi...onal-main.repo

rpm --import http://sailfish.openrepos.net/openrepos.key

plcon refresh

pkcon install gstreamer0.10-ffmpeg-extra gst-plugins-bad-extra gst-plugins-ugly

one error. it's not plcon refresh for the command line.

it's pkcon refresh.

anyways my Mp4 file i need to read it with what player if i have installed all the plugins?

if i try to read it going in gallery and videos and i push play icon in center. nothing move!
even with LLs video player no run of the video.

why?

is there a command line to run a mp4 file?


All times are GMT. The time now is 14:20.

vBulletin® Version 3.8.8