ChristineKrizsa / streambaby

Automatically exported from code.google.com/p/streambaby
0 stars 0 forks source link

ffmpeg 0.8.5 not compatible with streambaby 0.29? #75

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install ffmpeg 0.8.5
2. Start up streambaby

What is the expected output? What do you see instead?

Running StreamBaby...
wrapper  | --> Wrapper Started as Console
wrapper  | Java Service Wrapper Community Edition 3.3.1
wrapper  |   Copyright (C) 1999-2008 Tanuki Software, Inc.  All Rights Reserved.
wrapper  |     
wrapper  |
wrapper  | Launching a JVM...
jvm 1    | WrapperManager: Initializing...
jvm 1    | Initializing StreamBaby v0.29...
jvm 1    | WrapperSimpleApp:
jvm 1    | WrapperSimpleApp: Encountered an error running main:
jvm 1    | WrapperSimpleApp: java.lang.NoClassDefFoundError: 
net/sf/ffmpeg_java/v53/AVFormatLibrary
jvm 1    | WrapperSimpleApp:    at 
com.unwiredappeal.tivo.vm.ffjava.FFmpegJavaVideoModule.initialize(FFmpegJavaVide
oModule.java:117)
jvm 1    | WrapperSimpleApp:    at 
com.unwiredappeal.tivo.modules.VideoModuleHelper.addModule(VideoModuleHelper.jav
a:49)
jvm 1    | WrapperSimpleApp:    at 
com.unwiredappeal.tivo.config.StreamBabyConfig.processModules(StreamBabyConfig.j
ava:630)
jvm 1    | WrapperSimpleApp:    at 
com.unwiredappeal.tivo.config.StreamBabyConfig.processConfiguration(StreamBabyCo
nfig.java:730)
jvm 1    | WrapperSimpleApp:    at 
com.unwiredappeal.tivo.config.StreamBabyConfig.readConfiguration(StreamBabyConfi
g.java:788)
jvm 1    | WrapperSimpleApp:    at 
com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:71)
jvm 1    | WrapperSimpleApp:    at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    | WrapperSimpleApp:    at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1    | WrapperSimpleApp:    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
jvm 1    | WrapperSimpleApp:    at java.lang.reflect.Method.invoke(Unknown 
Source)
jvm 1    | WrapperSimpleApp:    at 
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:236)
jvm 1    | WrapperSimpleApp:    at java.lang.Thread.run(Unknown Source)
jvm 1    | WrapperSimpleApp: Caused by: java.lang.ClassNotFoundException: 
net.sf.ffmpeg_java.v53.AVFormatLibrary
jvm 1    | WrapperSimpleApp:    at java.net.URLClassLoader$1.run(Unknown Source)
jvm 1    | WrapperSimpleApp:    at 
java.security.AccessController.doPrivileged(Native Method)
jvm 1    | WrapperSimpleApp:    at java.net.URLClassLoader.findClass(Unknown 
Source)
jvm 1    | WrapperSimpleApp:    at java.lang.ClassLoader.loadClass(Unknown 
Source)
jvm 1    | WrapperSimpleApp:    at 
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
jvm 1    | WrapperSimpleApp:    at java.lang.ClassLoader.loadClass(Unknown 
Source)
jvm 1    | WrapperSimpleApp:    at 
net.sf.ffmpeg_java.bcel.FFmpegClassLoader.loadClass(FFmpegClassLoader.java:24)
jvm 1    | WrapperSimpleApp:    at 
net.sf.ffmpeg_java.bcel.FFmpegClassLoader.loadClass(FFmpegClassLoader.java:15)
jvm 1    | WrapperSimpleApp:    at 
java.lang.ClassLoader.loadClassInternal(Unknown Source)
jvm 1    | WrapperSimpleApp:    ... 12 more
wrapper  | <-- Wrapper Stopped

What version of the product are you using? On what operating system?

Steambaby 0.29 + ffmpeg 0.8.5
Slackware 13.37

Please provide any additional information below.

ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct  7 2011 16:16:34 with gcc 4.5.2
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/man --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-libdc1394 --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-runtime-cpudetect --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads --enable-x11grab --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib -lssl -lcrypto -lz -lusb'
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
ffmpeg 0.8.5
libavutil    51.  9. 1 / 51.  9. 1
libavcodec   53.  7. 0 / 53.  7. 0
libavformat  53.  4. 0 / 53.  4. 0
libavdevice  53.  1. 1 / 53.  1. 1
libavfilter   2. 23. 0 /  2. 23. 0
libswscale    2.  0. 0 /  2.  0. 0
libpostproc  51.  2. 0 / 51.  2. 0

Original issue reported on code.google.com by snsumne...@gmail.com on 9 Oct 2011 at 5:12

GoogleCodeExporter commented 8 years ago
This is a duplicate of issue #74 and to my knowledge there still isn't a 
resolution.

Original comment by t...@schmidthole.com on 23 Oct 2011 at 5:29

GoogleCodeExporter commented 8 years ago
Similar problem on a stock Ubuntu 11.10 system.  Basically, uninstall the dev 
packages for the lib's and you should be able to run (and transcode), but no 
thumbnails.

ie:  remove libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev 
libavfilter-dev libswscale-dev libpostproc-dev

My setup:

ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav 
developers
  built on Oct  2 2011 15:13:26 with gcc 4.6.1
  configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  5. 0 / 53.  5. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0
ffmpeg 0.7.2-4:0.7.2-1ubuntu1
libavutil    51.  7. 0 / 51.  7. 0
libavcodec   53.  5. 0 / 53.  5. 0
libavformat  53.  2. 0 / 53.  2. 0
libavdevice  53.  0. 0 / 53.  0. 0
libavfilter   2.  4. 0 /  2.  4. 0
libswscale    2.  0. 0 /  2.  0. 0
libpostproc  52.  0. 0 / 52.  0. 0

Original comment by john.gan...@gmail.com on 14 Dec 2011 at 4:26

GoogleCodeExporter commented 8 years ago
I can't try this right now, but you can also try this--
Edit the streambaby.ini file and add the line:

com.unwiredappeal.tivo.vm.ffjava.FFmpegJavaVideoModule=false

It should completely disable the loading of the ffmpeg libraries (and just use 
the ffmpeg binary...)

The real solution to this is probably to switch over to something like Xuggler 
for ffmpeg native integration since the existing code is very difficult to 
maintain for updated ffmpeg APIs.

Original comment by kearygri...@gmail.com on 14 Dec 2011 at 4:38

GoogleCodeExporter commented 8 years ago
FFmegJavaVideoModule fixed with your solution to use 
com.unwiredappeal.tivo.vm.ffjava.FFmpegJavaVideoModule=false

Thank you

Original comment by treat2...@gmail.com on 22 Jan 2012 at 3:11