kearygriffin / streambaby

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

OpenJDK 1.6.0_22 Looking for FFMPEG v53 #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Streambaby failing NoClassDefFoundError 

Initializing StreamBaby v0.29...
Exception in thread "main" java.lang.NoClassDefFoundError: 
net/sf/ffmpeg_java/v53/AVFormatLibrary
    at com.unwiredappeal.tivo.vm.ffjava.FFmpegJavaVideoModule.initialize(FFmpegJavaVideoModule.java:117)
    at com.unwiredappeal.tivo.modules.VideoModuleHelper.addModule(VideoModuleHelper.java:49)
    at com.unwiredappeal.tivo.config.StreamBabyConfig.processModules(StreamBabyConfig.java:630)
    at com.unwiredappeal.tivo.config.StreamBabyConfig.processConfiguration(StreamBabyConfig.java:730)
    at com.unwiredappeal.tivo.config.StreamBabyConfig.readConfiguration(StreamBabyConfig.java:788)
    at com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:71)
Caused by: java.lang.ClassNotFoundException: 
net.sf.ffmpeg_java.v53.AVFormatLibrary

I'm assuming since streambaby code base has not changed that this is something 
inside JDK.

Anyone have any ideas how to get around this or which version of Java I should 
fall back to?

Original issue reported on code.google.com by jpmorgen...@gmail.com on 3 Sep 2011 at 2:14

GoogleCodeExporter commented 9 years ago
I second, same error. definatly a java screw up. Now if i can un f it.

Original comment by OmagaS...@gmail.com on 9 Sep 2011 at 5:38

GoogleCodeExporter commented 9 years ago
I tried disabling transcoding but streambaby still tries to intialize the 
ffmpeg module.  I found the source code for ffmpeg_java, but compling it also 
requires compiling ffmpeg and it probably wouldn't work with the current 
version of ffmpeg.  It looks like ffmpeg_java is deprecated.  Perhaps 
streambaby should be modified to use new java wrapper for ffmpeg -

http://sourceforge.net/projects/jffmpeg/

If streambaby was written in python I could help, but I know nothing about java.

Original comment by abrombo...@gmail.com on 13 Sep 2011 at 12:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Looking at the streambaby download it appears that ffmpeg_java is in the 
download.  Perhaps ffmpeg has been upgraded (in my case on ubuntu 10.04) and is 
no longer compatible with the ffmpeg_java wrapper?

Original comment by abrombo...@gmail.com on 14 Sep 2011 at 12:04

GoogleCodeExporter commented 9 years ago
My configuration for ffmpeg is (ubuntu 10.04 defaults as of 9/14/2011)-
     ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-libmp3lame --enable-libvpx
The instructions with the strambaby source say that one should use the switches
     ./configure --disable-mmx --enable-shared
Does anyone know if this would cause the problem?

Original comment by abrombo...@gmail.com on 14 Sep 2011 at 12:12

GoogleCodeExporter commented 9 years ago
This is the code in FFmpegJavaConfig:

FFmpegMgr.LibDefaults def = new FFmpegMgr.LibDefaults(
                    52, 52,
                    cfgAvUtilLib.value,
                    cfgAvCodecLib.value,
                    cfgAvFormatLib.value,
                    cfgSwScaleLib.value
                    );

These values are forcing V52, but it seems that the libraries are now updated 
to V53. It would help if the person who wrote this code would chime in and let 
us know about how they integrated with ffmpeg

Original comment by jpmorgen...@gmail.com on 14 Sep 2011 at 1:08

GoogleCodeExporter commented 9 years ago
Did anyone ever get this fixed?

Original comment by t...@schmidthole.com on 21 Oct 2011 at 5:14

GoogleCodeExporter commented 9 years ago
Broken for me, too.

Fresh install of streambaby .29 on fedora 15 with ffmpeg 85.

Exception in thread "main" java.lang.NoClassDefFoundError: 
net/sf/ffmpeg_java/v53/AVFormatLibrary
at 
com.unwiredappeal.tivo.vm.ffjava.FFmpegJavaVideoModule.initialize(FFmpegJavaVide
oModule.java:117)

Original comment by ecobeeth...@gmail.com on 11 Dec 2011 at 10:51

GoogleCodeExporter commented 9 years ago
Broke for me when I upgraded to Fedora 16.

Original comment by ebiancar...@gmail.com on 14 Jan 2012 at 4:14