FAQ  •  Register  •  Login

Problems playing an MKV movie:

<<

Scouser

Serviio lover

Posts: 54

Joined: Sun Dec 04, 2011 11:59 pm

Post Thu Dec 15, 2011 4:41 pm

Re: Problems playing an MKV movie:

Hi again,
Many thanks for that link. But alas it doesn;t help me. The ReadyNAS runs an a port of debian etch and none of the information in this page applies. For example, there is no etch checkinstall package and many of the other packages dont exist either. There are even more complications: the version of yasm apt-get installs is:

yasm --version
yasm 0.5.0.1591
Compiled on Mar 25 2007.
Copyright (c) 2001-2006 Peter Johnson and other Yasm developers.
Run yasm --license for licensing overview and summary.


This is fairly old. Many of the packages such as x264 require yasm 1.0.0 at best. Not to mention that x264 isnt in the debian etch package list at all. So I am having to do things manually and compiling without yasm is one the things that bothers me. I may be doing something wrong, as i said i am not a linux guy. I consider myself a somewhat Unix expert but not a Linux expert.
<<

Scouser

Serviio lover

Posts: 54

Joined: Sun Dec 04, 2011 11:59 pm

Post Fri Dec 16, 2011 11:13 am

Re: Problems playing an MKV movie:

Hi Petr,
Well, I have got some success but with unsatisfactory results. I now have x264 and mp3lame compiled and installed. So now I am trying to build ffmpeg. I downloaded the distribution from your main page. Version 0.8. I am able to compile it without errors (ableit a lot of warning messages during the make --- is this normal?). However, no matter how I try, I cannot get the build to create static binaries.

I run ./configure with option --disable-shared
configure duly spits out:
...
static yes
shared no
....

I look in the resulting config.mak file and I can see this is confirmed:
FFMPEG_CONFIGURATION=--disable-yasm --enable-pthreads --disable-shared --enable-gpl --enable-libx264 --enable-libmp3lame

I run make and the build completes and so I make install. But when I run ffmpeg I get:
# ffmpeg
ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory

# whereis ffmpeg
ffmpeg: /usr/local/bin/ffmpeg

# file /usr/local/bin/ffmpeg
/usr/local/bin/ffmpeg: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.1, stripped

I dont have anything in my environment vars overriding this. I guess this is a bug in the build.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 16, 2011 11:45 am

Re: Problems playing an MKV movie:

why do you want to build it statically? On Linux you can build it with shared (.so) libraries. For more help head over to FFmpeg forums, they'll be able to help you there, I'd have thought.
<<

Scouser

Serviio lover

Posts: 54

Joined: Sun Dec 04, 2011 11:59 pm

Post Fri Dec 16, 2011 12:01 pm

Re: Problems playing an MKV movie:

Yes, good idea. I will pop over to the ffmpeg forums and see what I get.
I am compiling for a target that wont have the shared libraries installed. On my nas I have a chrooted dev environment as well as the live system environ. When I have the ffmpeg binary complete (static), I will leave it contained in the serviio folder for its use only. There is another ffmpeg in the standard build (in fact there are two!). But both are old and dont have x265 or lame built in yet I need them for other netgear applications. So I want to compile it statically.
I'll let you know how I get on.....if your interested ;)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 16, 2011 12:03 pm

Re: Problems playing an MKV movie:

look at the readme in serviio. there are examples how I configured FFmpeg statically when building for Mac/Windows.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Fri Dec 16, 2011 8:55 pm

Re: Problems playing an MKV movie:

Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Scouser

Serviio lover

Posts: 54

Joined: Sun Dec 04, 2011 11:59 pm

Post Mon Dec 26, 2011 8:05 pm

Re: Problems playing an MKV movie:

Hey Petr, check it out.... ;)
  Code:
MainStore:/usr/local/bin# ffmpeg
ffmpeg version 0.8.git, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 26 2011 19:42:56 with gcc 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
  configuration: --enable-static --disable-shared --enable-pthreads --disable-ffplay --disable-ffserver --disable-mmx --enable-gpl --enable-libx264 --enable-libmp3lame --enable-librtmp --extra-ldflags=-L/usr/local/lib --extra-cflags=-I/usr/local/include --extra-cflags=-fno-reorder-functions --libdir=/usr/local --shlibdir=/usr/local
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  8. 0 / 53.  8. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 25. 0 /  2. 25. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


Finally got it to build. This is the src distro you suggest on your page with the lame and rtmp sources. Also the build flags you suggest. I tested it and it seems to work fine. Same problem of course with MKV files. But I am now set for the update to 0.9 and patch when your ready for a beta tester ;)

Happy Xmas!
<<

Scouser

Serviio lover

Posts: 54

Joined: Sun Dec 04, 2011 11:59 pm

Post Mon Dec 26, 2011 10:27 pm

Re: Problems playing an MKV movie:

OK, I am on a roll now....

  Code:
MainStore:/usr/local/lib# ffmpeg
ffmpeg version 0.9.0.git, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 26 2011 21:52:00 with gcc 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
  configuration: --enable-static --disable-shared --enable-pthreads --disable-ffplay --disable-ffserver --disable-mmx --enable-gpl --enable-libx264 --enable-libmp3lame --enable-librtmp --prefix=/usr/local
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 48.100 / 53. 48.100
  libavformat    53. 28.100 / 53. 28.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 54.100 /  2. 54.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
<<

Scouser

Serviio lover

Posts: 54

Joined: Sun Dec 04, 2011 11:59 pm

Post Mon Dec 26, 2011 11:36 pm

Re: Problems playing an MKV movie:

Hmm....
Well this patch is supposed to be applied but the problem persists. I forgot to see how to catch ffmpeg errors. I have set debug in log4j.xml and I see DEBUG statements in the log file. But when ffmpeg fails execution, I dont see what command it executed to fail. I just get:

ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
at org.serviio.delivery.resource.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:117)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:93)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:121)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:116)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)
Previous

Return to Sony

Who is online

Users browsing this forum: No registered users and 28 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.