installing ffmpeg
|
8th Mar, 2016, 11:10 AM
Post: #1
|
|||
|
|||
installing ffmpeg
There's a certain adult plugin that plays live streams, but it requires libspeex for audio playback. I've successfully built in into ffmpeg in openelec, and it works as it should. But after installing into xbian, I'm not sure it's being called/used. The audio isn't being played.
Here's what I've done... Code: sudo -s Code: install prefix /usr Code: root@xbian:/home/xbian/ffmpeg# ffmpeg In openelec, I need to select MMAL in order for ffmpeg to take over, but it doesn't matter what I choose in xbian.. it doesn't work. MMAL, OMXPlayer, or even neither.. ffmpeg isn't being used. At least not speex. Any ideas? |
|||
8th Mar, 2016, 12:37 PM
Post: #2
|
|||
|
|||
RE: installing ffmpeg
ok.. I think I found the issue. Openelec uses DVDPlayer, or Kodi does anyways. When you right-click the video, it gives DVDPlayer as an option for playback. I can't find DVDPlayer in XBian. Unless it's under a setting I haven't found yet. I read you need to have the mpeg licenses.. already installed, so that's not it. Apt doesn't have anything either.
There must be a workaround. |
|||
8th Mar, 2016, 04:43 PM
Post: #3
|
|||
|
|||
RE: installing ffmpeg
lol.. MMAL is DVDPlayer.. it just doesn't show it in the menu when you right-click the video to "play from here". I tried compiling a static build, but typing "ffmpeg" returns "--disable-static" in the list.. lol. So obviously I'm doing something wrong. Turns out I had ffmpeg installed to 2 different directories. My first attempt didn't have "--prefix=/usr" in my config line, but then I looked at the makefile for the source in openelec, and it specified /usr. I thought I deleted the first install, but typing "whereis ffmpeg" showed 3 directories.. the source directory, the /usr/bin/ffmpeg, then another.. I can't remember. I deleted them all, then started again.. trying static again, with --prefix=/usr. Still waiting on the compile.
|
|||
8th Mar, 2016, 07:13 PM
Post: #4
|
|||
|
|||
RE: installing ffmpeg
Well.. static build, speex enabled, and let it default to /usr/local/bin/ffmpeg. It's still not using ffmpeg, as it's not decoding the audio. I could try creating a playercorefactory.xml, but ffmpeg should take over without it. Stumped.
Code: root@xbian:/home/xbian/ffmpeg# ./configure --arch=armel --target-os=linux --enable-static --disable-shared --enable-gpl --enable-logging --disable-doc --enable-optimizations --disable-extra-warnings --disable-ffprobe --disable-ffplay --disable-ffserver --enable-ffmpeg --disable-avdevice --enable-avcodec --enable-avformat --enable-swscale --enable-postproc --enable-avfilter --disable-devices --enable-pthreads --disable-w32threads --disable-x11grab --enable-network --disable-gnutls --enable-openssl --disable-gray --enable-swscale-alpha --disable-small --enable-dct --enable-fft --enable-mdct --enable-rdft --disable-crystalhd --disable-dxva2 --enable-runtime-cpudetect --disable-memalign-hack --disable-encoders --enable-encoder=ac3 --enable-encoder=aac --enable-encoder=wmav2 --enable-encoder=mjpeg --enable-encoder=png --disable-decoder=mpeg_xvmc --enable-hwaccels --disable-muxers --enable-muxer=spdif --enable-muxer=adts --enable-muxer=asf --enable-muxer=ipod --enable-muxer=mpegts --enable-demuxers --enable-parsers --enable-bsfs --enable-protocol=http --disable-indevs --disable-outdevs --enable-filters --disable-avisynth --enable-bzlib --disable-frei0r --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopencv --disable-libdc1394 --disable-libdcadec --disable-libfaac --disable-libfreetype --disable-libgsm --disable-libmp3lame --disable-libnut --disable-libopenjpeg --disable-librtmp --disable-libschroedinger --enable-libvorbis --enable-encoder=libvorbis --enable-muxer=ogg --enable-libtheora --disable-libvpx --enable-libx264 --enable-libxvid --enable-libspeex --enable-nonfree --disable-libxavs --enable-zlib --enable-asm --disable-altivec --enable-yasm --disable-symver Well crap. Debug says ffmpeg's being called, speex is being called... but it's not decoding the stream. ERROR: unsupported audio codec. Code: 01:55:25 86.948212 T:1811936176 INFO: Previous line repeats 1 times. That's with libspeex installed via apt. It worked in openelec, but I built libspeex from source. They're the same versions.. I can't see why there's a difference. |
|||
8th Mar, 2016, 10:41 PM
Post: #5
|
|||
|
|||
RE: installing ffmpeg
Does OE build Kodi with static ffmpeg included or does it use an external ffmpeg?
XBian uses statically linked ffmpeg for Kodi |
|||
8th Mar, 2016, 10:58 PM
Post: #6
|
|||
|
|||
RE: installing ffmpeg
(8th Mar, 2016 10:41 PM)Nachteule Wrote: Does OE build Kodi with static ffmpeg included or does it use an external ffmpeg? It uses --disable-static --enable-shared, but that didn't work at first, and a blog I came across for installing on raspbian said to use static. So that's why I tried static. Code: http://www.jeffreythompson.org/blog/2014/11/13/installing-ffmpeg-for-raspberry-pi/ I'm about 3/4 the way through a non-static, shared compile, with libspeex installed from source. I literally copied the source directly from my openelec source. It has all the patches already applied. Same with ffmpeg.. I used the source from oe as well. btw.. you say XBian uses static build of ffmpeg... yet when I typed ffmpeg to see if it was installed.. way back in the beginning.. it said it wasn't installed. OE's Kodi source makefile says it's dependent on ffmpeg, so I guess that's internal(?). Should I use --disable-external-ffmpeg? |
|||
8th Mar, 2016, 11:17 PM
(This post was last modified: 8th Mar, 2016 11:17 PM by Nachteule.)
Post: #7
|
|||
|
|||
RE: installing ffmpeg
You are confusing me
Quote:Should I use --disable-external-ffmpeg? For what? Are you building your own Kodi? |
|||
8th Mar, 2016, 11:25 PM
Post: #8
|
|||
|
|||
RE: installing ffmpeg
(8th Mar, 2016 11:17 PM)Nachteule Wrote: You are confusing me lol.. it's 5:20 am.. I think I'm confused. I thought it would make my ffmpeg overrule the built in ffmpeg. I thought that's how the unofficial ffmpeg addon worked, the one available through one of the repositories. I already tried it in oe, but it didn't have speex. So... the only way to do this is to build XBian from source? Or just Kodi? |
|||
8th Mar, 2016, 11:51 PM
Post: #9
|
|||
|
|||
RE: installing ffmpeg
Quote:lol.. it's 5:20 am.. I think I'm confused Seems you never sleeps Quote:So... the only way to do this is to build XBian from source? Or just Kodi? Kodi should be enough This is the log of building static version of ffmpeg for kodi And you see ..... no libspeex If you want, I could try building xbmc with libspeex included later of the day |
|||
9th Mar, 2016, 12:08 AM
Post: #10
|
|||
|
|||
RE: installing ffmpeg
(8th Mar, 2016 11:51 PM)Nachteule Wrote:Quote:lol.. it's 5:20 am.. I think I'm confused That would be great. I uploaded the patched source to my dropbox. Just needed.. Code: ./cofigure Code: https://www.dropbox.com/s/gvcn63vl2i0cp71/speex-1.2rc1.zip?dl=1 That source is already patched with the config from the package.mk files and patches Code: https://www.dropbox.com/s/972a1d5lqvl1vqs/speex.zip?dl=1 And here's the original source, no patches Code: https://www.dropbox.com/s/7nnwbbekjgjt7rc/speex-1.2rc1.tar.gz?dl=1 I'm going to bed. |
|||
9th Mar, 2016, 12:17 AM
Post: #11
|
|||
|
|||
RE: installing ffmpeg
Why do I need the patched speex stuff?
Isn't the speex lib provided by debian suffiiciant for building ffmpeg? |
|||
9th Mar, 2016, 12:24 AM
Post: #12
|
|||
|
|||
RE: installing ffmpeg
Anyway, I'll build package with orig debian speex libs and without theora and vorbis
|
|||
9th Mar, 2016, 02:05 AM
Post: #13
|
|||
|
|||
RE: installing ffmpeg
So, package xbian-package-xbmc with speex support has been build and uploaded to devel repo
To get it, please enable devel repo in /etc/apt/sources.list.d/xbian.list Please note: If you did not use Kodi Jarvis before, you have to upgrade cec libraries also |
|||
9th Mar, 2016, 09:13 AM
Post: #14
|
|||
|
|||
RE: installing ffmpeg
(9th Mar, 2016 12:17 AM)Nachteule Wrote: Why do I need the patched speex stuff? The patches were so it would compile for the arm. If you got it to compile without changing anything, then great. I wasn't that smart. (9th Mar, 2016 02:05 AM)Nachteule Wrote: So, package xbian-package-xbmc with speex support has been build and uploaded to devel repo Thank you! I'll give this a shot as soon as I'm completely awake. Blah. Code: 15:39:02 180.655258 T:1820324784 NOTICE: Creating Demuxer But in OE... Code: 15:47:09 T:1472197536 NOTICE: Creating Demuxer |
|||
9th Mar, 2016, 11:26 AM
(This post was last modified: 9th Mar, 2016 11:30 AM by Nachteule.)
Post: #15
|
|||
|
|||
RE: installing ffmpeg
WTF
Just tested it on my openSUSE 13.1 notebook, got the same fucking Code: Unable to find codec 86052 error before building kodi/ffmpeg wthout --enable-libspeex .... BUT after building it with --enable-libspeex, it plays my sample sound Downloaded this sample, renamed it to .ogg, put it to my music library and it was played Did you really installed new xbmc package from devel? So, I'm tired will doing more tests tomorrow |
|||
« Next Oldest | Next Newest »
|