PDA

View Full Version : How to install all video and audio codec


n950
2014-01-02, 13:16
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
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
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
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
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
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
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
I think that they disabled them ;). AC3 is missing probably DTS and co too. Must test it soon

shmerl
2014-01-02, 15:42
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
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
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
[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
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
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
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
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/view/svn/multimedia/libvpx.html

shmerl
2014-01-02, 19:28
libvpx is here: http://www.webmproject.org/code/

xerxes2
2014-01-02, 19:28
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
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
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
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
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
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
Any updates?

xerxes2
2014-01-03, 15:32
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
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
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
How did you run the gst-launch by the way?

xerxes2
2014-01-03, 21:00
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
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
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
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:

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
Have you tried LLs Video Player?

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

n950
2014-01-04, 18:33
@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
@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
how can i install it?) just download and ...?

jamar
2014-01-04, 20:30
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
how can i install it?) just download and ...?

zypper ar -f http://sailfish.openrepos.net/sailfish_lib/personal-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
@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
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
zypper ar -f http://sailfish.openrepos.net/sailfish_lib/personal-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?

xerxes2
2014-01-05, 14:37
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?

You've already been told that mp4 is just a container and you're trying to play a weird Sony format that is not supported atm. Just use Handbrake or something to convert them to h264 and they'll work just fine. And no, afaik there's no cli app available either.

xerxes2
2014-01-05, 14:54
Done some more testing now. First audio, I've tried aac, opus, ac3, vorbis, dts, mp3, alac and flac and I haven't had a single glitch with audio so far. And hopefully it stays that way. :)

Now for video, I've focused on three different formats, h264, xvid and vp8. H264 just seems to work and I haven't noticed any problems so far. With vp8 and xvid on the other hand there are problems with some files. If I take a legal example like BBB:

This one works:
http://video.webmfiles.org/big-buck-bunny_trailer.webm

but this one doesn't:
http://bennugd-vlc.googlecode.com/files/big_buck_bunny_480p.webm

And for xvid there's this one that doesn't work either:
http://thepiratebay.se/torrent/5316077/Big.Buck.Bunny.BDRip.XviD-MEDiC

And for other mpeg4 codecs this one works:
http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi

but this one doesn't:
http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi

So to sum it up, there's something missing in the gstreamer pipeline for some files, possibly just a ffmpegcolorspace element. IIRC the jolla gstreamer dev has posted on TMO and if you want help with testing stuff but don't want to do it in the open due to legal reason you can pm me and we can take it from there. This bug is probably in opensource code but to find it in the huge qt codebase is not that easy if you don't know where to look.

rainisto
2014-01-06, 00:17
xvid codec is not included in SailfishOS because of patent license fees.

https://together.jolla.com/question/986/avi-files-better-support/

xerxes2
2014-01-06, 00:20
Well, that much we know. Together with lots of other codecs. :)

Kaacz
2014-01-22, 00:11
xvid codec is not included in SailfishOS because of patent license fees.

https://together.jolla.com/question/986/avi-files-better-support/

Thanks for info.
But we not solve "why not". We want solve "how we (community) do it". :)

Kaacz
2014-01-22, 00:20
Interesting is:
- x264 video with AAC/AC3 stereo/6ch in MKV work fine.
- FLAC stereo audio play fine.
- x264 video with FLAC stereo/6ch in MKV => video without sound
:)
in both Gallery & LLs.vPlayer

DeeGee
2014-01-22, 07:37
Shouldn't XviD play back just fine with standards compliant h.263 decoder? So no need for specific XviD decoder, just need to send XviD streams to the h.263 decoder. And Jolla should already have a h.263 decoder, at least mp4 files with h.263 play back fine.

xerxes2
2014-01-23, 12:31
Unfortunately not, it seems that there are lots of incompatible h263 type codecs.

hana
2014-01-23, 14:23
MPEG-4 Part 2 (http://en.wikipedia.org/wiki/MPEG-4_Part_2) (ASP, DivX, Xvid etc.) is only partially based on H.263.

n950
2014-01-24, 14:06
when i try to read a .mov file from Iphone 4 it doesn't work with codec installed why?

How can i read it?

MSameer
2014-01-24, 14:53
The sink used for video playback does not do any rendering by itself. It just lets the application get hold of egl images so it can blit them.

The sink uses android GL drivers so not all color formats are supported.

If someone wants to do a video player with GStreamer directly then I can help.

Alternatively have a look at the sailfish media components RPM and there should be a video element that handles all this for you (not supported)

EDIT:
Yes we disabled a lot of codecs and we use AAC encoder only from gst-ffmpeg. The rest has been disabled because it's not needed and because of the limited codecs that we enable in our libav

libav is used for thumbnailing, tracker indexing and some audio encoding and decoding.

EDIT2:
Gallery is not really crippled. The issue is tracker does not recognize all the formats because libav lacks support for them.

Schturman
2014-02-05, 19:58
I have a some problems.
1. Installed needed codecs from sailfish repo, def and LLS playrs start to play videos, but not good, always with green and red lines..
http://imageshack.com/a/img812/3541/e3ag.jpg

2. Most of my files come with 2 audio lines and default one is a translated to russian line. But after installation of all needed plagins, both players started to use the original english line instead translated.

3. I noticed that Filetug (file browser) app also have player and only this player can show the clear image, see screenshot.
http://imageshack.com/a/img836/2118/f6y7.jpg
But this player have another problems:
* too much time to load video
* not have stop/pause/play button
* can't scroll video
* you always see circle in the middle and the scroll line at the button

Any advice, how to get clear image in def and lls players like in Filetug app? And how I can hear the translated audio line like before plugins installation?
Thanks

xerxes2
2014-02-08, 14:35
The sink used for video playback does not do any rendering by itself. It just lets the application get hold of egl images so it can blit them.

The sink uses android GL drivers so not all color formats are supported.

Yes as you can see in this thread many non h264 files have messed up colors. Could you not fix it with a ffmpegcolorspace element before the video sink? It's really lame that the default video backend can't render all supported, with additional codecs installed, files correctly.


If someone wants to do a video player with GStreamer directly then I can help.

I've found the droideglsink element, written by Mohammed Hassan whom I guess is you, which has a egl-display property that needs to be set to the right window/surface. So how do you do it?

xerxes2
2014-02-08, 14:44
I have a some problems.
1. Installed needed codecs from sailfish repo, def and LLS playrs start to play videos, but not good, always with green and red lines..

Yes there is a bug in the default multimedia backend that messes up colors for many files.


2. Most of my files come with 2 audio lines and default one is a translated to russian line. But after installation of all needed plagins, both players started to use the original english line instead translated.

No idea about this one. But as mentioned before we really need a good video player that can select both sub and audio tracks.


3. I noticed that Filetug (file browser) app also have player and only this player can show the clear image, see screenshot.
http://imageshack.com/a/img836/2118/f6y7.jpg
But this player have another problems:
* too much time to load video
* not have stop/pause/play button
* can't scroll video
* you always see circle in the middle and the scroll line at the button

Any advice, how to get clear image in def and lls players like in Filetug app? And how I can hear the translated audio line like before plugins installation?
Thanks
Either the Jolla dev fixes the bug(s) in the default backend or someone else writes a video player that uses gstreamer directly.

MSameer
2014-02-08, 23:45
I've found the droideglsink element, written by Mohammed Hassan whom I guess is you, which has a egl-display property that needs to be set to the right window/surface. So how do you do it?

I am the same guy who wrote the sink.

Here is an example: https://gitorious.org/cameraplus/cameraplus/source/8e81a2e9475bd52b8fb2b2304412a0853c592ae3:lib/qtcamviewfinderrenderernemo.cpp

You basically either set the egl-display when you create the element or you set it the first time you get a frame available signal. It does not matter.


Yes there is a bug in the default multimedia backend that messes up colors for many files.


Do you have any facts to back your claim up ? ;)

xerxes2
2014-02-10, 16:58
I am the same guy who wrote the sink.

Here is an example: https://gitorious.org/cameraplus/cameraplus/source/8e81a2e9475bd52b8fb2b2304412a0853c592ae3:lib/qtcamviewfinderrenderernemo.cpp

You basically either set the egl-display when you create the element or you set it the first time you get a frame available signal. It does not matter.

Thanks for the answer. But before I dig any deeper I might as well ask if this is possible to do with only Qt as I usually use PyQt? I see you import a few headers which might not work with Python. The same thing is dead simple to do in X11 with the xvimagesink element and I've done it multiple times with GTK2/3, never with Qt though. Otherwise I might convince llelectronics to use gstreamer directly with his player. :)



Do you have any facts to back your claim up ? ;)

Well, the default backend (MediaPlayer) works reasonably well but as you can see in this thread, and other places, it got a few bugs and missing features. The main issues identified so far:

* Messed up colors for many non h264 files, possibly fixed with a ffmpegcolorspace element
* Lack of proper subtitle support, on/off, chose between multiple ones
* Missing capability to chose between many audio tracks in video files

Those three are the big ones I think. I know you're in the process of upgrading to gst-1 but still it would be nice if the messed up colors would be fixed. And to have an on/off switch for subtitles.

Edit: Also MediaPlayer got pretty good support for metadata which you would have to deal with in another way if you use gstreamer directly.

MSameer
2014-02-16, 13:34
Thanks for the answer. But before I dig any deeper I might as well ask if this is possible to do with only Qt as I usually use PyQt? I see you import a few headers which might not work with Python. The same thing is dead simple to do in X11 with the xvimagesink element and I've done it multiple times with GTK2/3, never with Qt though. Otherwise I might convince llelectronics to use gstreamer directly with his player. :)


I am not asking you to do it with GStreamer directly. I personally prefer using GStreamer directly because QtMultimedia is IMO utter crap but that's my personal opinion anyway.

I have recently rewrote an app of mine to not use QtMultimedia because it prevented me from supporting all the use cases I need. If it works for you then fine, use it!

There is no xvimagesink in Sailfish as it's X11 specific and we use wayland.


Well, the default backend (MediaPlayer) works reasonably well but as you can see in this thread, and other places, it got a few bugs and missing features. The main issues identified so far:

* Messed up colors for many non h264 files, possibly fixed with a ffmpegcolorspace element
* Lack of proper subtitle support, on/off, chose between multiple ones
* Missing capability to chose between many audio tracks in video files


Those should go to together.jolla.com not here ;)


Those three are the big ones I think. I know you're in the process of upgrading to gst-1 but still it would be nice if the messed up colors would be fixed. And to have an on/off switch for subtitles.


GStreamer 1.0 has nothing to do with the above issues AFAICT. These are QtMultimedia issues.


Edit: Also MediaPlayer got pretty good support for metadata which you would have to deal with in another way if you use gstreamer directly.

MediaPlayer gets most of its info from GStreamer so not an issue.

All what I am saying is that I prefer GStreamer to QtMultimedia but it doesn't mean that the workd has to use it. It's just a matter of taste.

xerxes2
2014-05-23, 22:15
I just tried to play a xvid file but suddenly it didn't work. Has Jolla somehow blacklisted mpeg4 codecs? VP8 works though. I also found this:
https://together.jolla.com/question/40284/gstream-codecs/

Edit: Or is it the avi container?

vasavrs
2014-06-01, 21:24
Any tips on how to get XviD support?

michdeskunk
2014-07-04, 10:29
Anyone Know why before the 3 last updates I did watching mpeg without problems and now I can not???
They have modify something =??

b0bben
2014-07-04, 19:52
@MSameer: would you be willing to help me get HLS going so I can do a native Plex app for Sailfish?

My GStreamer foo is weak :)

//b0bben

PS:
Long-time (like 3 years back) lurker on TMO, developed apps on N9 and Sailfish. Author of Plex on AppleTV and many other contributions to Plex. Friends with Plex team since day 1. Jolla fan.
Just registered :)

hemiwi
2015-10-21, 18:56
Hello all,

i already asked in the Jolla Tablet experience Thread but unfortunately did not got an answer.

Is there anything i have to consider with installing additional codecs to Jolla tablet? Has anyone tried alreadyl?

Thanks very much in advance

hemiwi
2015-11-21, 18:43
^^ reup

Can someone who has the tablet already help me with the 1st steps to install additional codecs on the tablets i486 architecture?

Please :eek: Pretty please :D

faustomiglioresi
2015-12-22, 22:55
how can i install the codecs?ii did not understand

TheGrave
2016-02-23, 17:04
I've been busting my head for a few days trying to figure out how to make telepathy-rakia to see all gstreamer codecs. My particular interest is G.729. Do you have any clue whether some config file has to be modified? farstream seems to have it enabled but Wireshark says it's not offered by the phone:

cat /usr/share/farstream/0.1/fsrtpconference/default-codec-preferences
################
# Audio codecs #
################

[audio/SPEEX:8000]
clock-rate=8000

[audio/SPEEX:16000]
clock-rate=16000

[audio/AMR]

[audio/G729]

[audio/ILBC]

Codec seems to be installed:

gst-inspect-0.10 | grep 729
rtp: rtpg729depay: RTP G.729 depayloader
rtp: rtpg729pay: RTP G.729 payloader

llelectronics
2016-02-24, 22:34
gst-inspect-0.10 | grep 729

SailfishOS now uses gstreamer 1.0 so the 0.10 command only shows the codecs support by 0.10 not the ones from 1.0

TheGrave
2016-02-25, 10:20
SailfishOS now uses gstreamer 1.0 so the 0.10 command only shows the codecs support by 0.10 not the ones from 1.0

Not on 2.0.1.7. Are you running some later pre-release?

Anyway, what should be done in theory with either gstreamer 0.10 or 1.0 to get G.729 in Telepathy?

llelectronics
2016-02-25, 11:00
Since 2.0 SailfishOS uses gstreamer 1.2
I am not sure what telepathy utilizes

willi6868
2016-03-01, 20:44
There are some codecs compiled for the Tablet and avialiable on Openrepos now: https://openrepos.net/user/945/programs :)

pasko
2016-03-03, 18:39
I've been busting my head for a few days trying to figure out how to make telepathy-rakia to see all gstreamer codecs. My particular interest is G.729. Do you have any clue whether some config file has to be modified? farstream seems to have it enabled but Wireshark says it's not offered by the phone:

cat /usr/share/farstream/0.1/fsrtpconference/default-codec-preferences
################
# Audio codecs #
################

[audio/SPEEX:8000]
clock-rate=8000

[audio/SPEEX:16000]
clock-rate=16000

[audio/AMR]

[audio/G729]

[audio/ILBC]

Codec seems to be installed:

gst-inspect-0.10 | grep 729
rtp: rtpg729depay: RTP G.729 depayloader
rtp: rtpg729pay: RTP G.729 payloader
Hi.
I'm struggling to make VOIP calls work. I'm not able to make the sip client offer any codecs:
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 124

v=0
o=- 2847608483721697075 2098627415485425572 IN IP4 172.26.0.16
s=-
c=IN IP4 172.26.0.16
t=0 0
m=audio 0 RTP/AVP 0
, and my SIP server drops the call just when I answer. I followed instrucctions in the Jolla Forum, but when I try to restart pulseaudio service I always get a "file not found" error.
These are the codecs offered by my Asterisk PBX:
Content-Type: application/sdp
Content-Length: 339

v=0
o=root 1205889408 1205889408 IN IP4 172.26.0.2
s=Asterisk PBX 11.7.0~dfsg-1ubuntu1
c=IN IP4 172.26.0.2
t=0 0
m=audio 14532 RTP/AVP 0 8 3 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
Am I missing something? This is my 2nd day tinkering with the device, BTW :D
Regards.

pasko
2016-03-09, 19:02
Hi.
I installed the following packages in order to be able to listen&speak:

pkcon install pulseaudio-modules-nemo-record pulseaudio-modules-nemo-sidetone pulseaudio-modules-nemo-voice

Previously I couln't even talk: my phone would drop the call saying that no suitable codecs where available.
BTW: anybody knows the name of the nemo dialler's package. I would like to give it a try to put outgoing VOIP calls....
Regards.