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)

xerxes2 2014-01-05 14:37

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

Originally Posted by n950 (Post 1403946)
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

Re: How to install all video and audio codec
 
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/fi...unny_480p.webm

And for xvid there's this one that doesn't work either:
http://thepiratebay.se/torrent/53160...Rip.XviD-MEDiC

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

but this one doesn't:
http://download.blender.org/peach/bi...80p_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

Re: How to install all video and audio codec
 
xvid codec is not included in SailfishOS because of patent license fees.

https://together.jolla.com/question/...etter-support/

xerxes2 2014-01-06 00:20

Re: How to install all video and audio codec
 
Well, that much we know. Together with lots of other codecs. :)

Kaacz 2014-01-22 00:11

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

Originally Posted by rainisto (Post 1404115)
xvid codec is not included in SailfishOS because of patent license fees.

https://together.jolla.com/question/...etter-support/

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

Kaacz 2014-01-22 00:20

Re: How to install all video and audio codec
 
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

Re: How to install all video and audio codec
 
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

Re: How to install all video and audio codec
 
Unfortunately not, it seems that there are lots of incompatible h263 type codecs.

hana 2014-01-23 14:23

Re: How to install all video and audio codec
 
MPEG-4 Part 2 (ASP, DivX, Xvid etc.) is only partially based on H.263.

n950 2014-01-24 14:06

Re: How to install all video and audio codec
 
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

Re: How to install all video and audio codec
 
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

Re: How to install all video and audio codec
 
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

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

Originally Posted by MSameer (Post 1408662)
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.

Quote:

Originally Posted by MSameer (Post 1408662)
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

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

Originally Posted by Schturman (Post 1411211)
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.

Quote:

Originally Posted by Schturman (Post 1411211)
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.

Quote:

Originally Posted by Schturman (Post 1411211)
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

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

Originally Posted by xerxes2 (Post 1411679)
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/cam...nderernemo.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.


Quote:

Originally Posted by xerxes2 (Post 1411680)
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

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

Originally Posted by MSameer (Post 1411732)
I am the same guy who wrote the sink.

Here is an example: https://gitorious.org/cameraplus/cam...nderernemo.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. :)


Quote:

Originally Posted by MSameer (Post 1411732)
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

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

Originally Posted by xerxes2 (Post 1412011)
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.

Quote:

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 ;)

Quote:

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.

Quote:

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

Re: How to install all video and audio codec
 
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/...stream-codecs/

Edit: Or is it the avi container?

vasavrs 2014-06-01 21:24

Re: How to install all video and audio codec
 
Any tips on how to get XviD support?

michdeskunk 2014-07-04 10:29

Re: How to install all video and audio codec
 
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

Re: How to install all video and audio codec
 
@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

Re: How to install all video and audio codec
 
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

Re: How to install all video and audio codec
 
^^ 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

Re: How to install all video and audio codec
 
how can i install the codecs?ii did not understand

TheGrave 2016-02-23 17:04

G.729
 
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

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

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

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

Originally Posted by llelectronics (Post 1499741)
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

Re: How to install all video and audio codec
 
Since 2.0 SailfishOS uses gstreamer 1.2
I am not sure what telepathy utilizes

willi6868 2016-03-01 20:44

Re: How to install all video and audio codec
 
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

Re: G.729
 
Quote:

Originally Posted by TheGrave (Post 1499619)
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:
Code:

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:
Code:

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

Re: How to install all video and audio codec
 
Hi.
I installed the following packages in order to be able to listen&speak:

Code:

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.


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

vBulletin® Version 3.8.8