Menu

Avisntyh & Fobs4JMF

user
2007-11-29
2013-05-09
  • Nobody/Anonymous

    Hello,

    as I am trying to play adjusted video files in a Java surrounding, I'm looking for a way to read and display Avisynth files from within Java. The Fobs4JMF library is very much suited for this, except for that it does not seem to integrate with DirectShow on Windows whilst the Avisynth engine is nested in DirectShow. It is possible to integrate DirectShow in ffmpeg, as can be read here: http://ffmpeg.mplayerhq.hu/faq.html#TOC23. So, is there a possibility then to integrate DirectShow, through ffmpeg, in Jobs4JMF?

    Thanks in advance for the answer,

    Frans

     
    • Jose San Pedro

      Jose San Pedro - 2007-11-29

      Hi,

      as the FFMpeg FAQ says, you should be able to do it. However, the current binary release of Fobs hasn't been built using the --enable-avisynth parameter. You'll have to build your own custom version. Documentation about this process can be found on:

      - This forum
      - The Documentation section of the Home Page
      - The Readme file in the package of sources

      Cheers,

      Jose San Pedro

       
    • Nobody/Anonymous

      Dear Jose,

      after trying a lot I still didn't succeed. I've succesfully compiled the ffmpeg lib with avisynth support and the fobs4jmf lib. The ffmpeg lib itself perfectly decodes any avisynth file, i.e.:

      FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
        configuration:  --enable-gpl --enable-avisynth --enable-xvid --enable-memalign
      -hack --extra-libs=-lxvidcore --extra-cflags=-I/c/Kennel/projects/current/lib/fo
      bs/src/resources/include --extra-ldflags=-L/c/Kennel/projects/current/lib/fobs/s
      rc/resources/lib --prefix=/c/Kennel/projects/current/lib/fobs/src/resources
        libavutil version: 49.1.0
        libavcodec version: 51.25.0
        libavformat version: 51.6.0
        built on Nov 30 2007 18:25:22, gcc: 3.4.5 (mingw special)
      Input #0, avs, from 'C:\test02.avs':
        Duration: 00:22:13.2, start: 0.000000, bitrate: N/A
        Stream #0.0: Video: rawvideo, yuv420p, 512x384, 58982 kb/s, 25.00 fps(r)
        Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
      Output #0, mpeg, to 'test.mpg':
        Stream #0.0: Video: mpeg1video, yuv420p, 512x384, q=2-31, 200 kb/s, 25.00 fps(
      c)
        Stream #0.1: Audio: mp2, 48000 Hz, stereo, 64 kb/s
      Stream mapping:
        Stream #0.0 -> #0.0
        Stream #0.1 -> #0.1
      Press [q] to stop encoding
      frame= 2993 q=31.0 size=    6138kB time=119.7 bitrate= 420.2kbits/s

      But, when trying to load it using the JMStudio:
      Fobs4JMF - Native shared library found
      OpenError: Video end reached
      No media player found

      And, when using test.exe from the samples dir:
      >test "C:\test02.avs"
      Video info: Width=0 Height=0 BitRate=0 FrameRate=-1
      Loop begin...
      First frame time: 0.001
      Error: Not initialized
      Number of frames decoded: 0
      loop end...Time spent = 0.001

      It seems that several details aren't clear at all to fobs, while ffmpeg does seem to have them. Do you perhaps have any possible idea about a solution for this problem?

      Thanks very much,

      Frans

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.