Visualizzazione dei risultati da 1 a 9 su 9
  1. #1

    [JAVA] utilizzo JMF

    ciao a tutti.

    ho iniziato da poco a studiare e far qualcosina con la JMF.
    attualmente ho realizzato un programmino che acquisce da webCam e salva su file quicktime.
    il problema è che mi crea due file, ad esempio video.mov e video.nonstreamable.mov.
    cosa posso fare per fargli creare un solo file, ovvero video.mov?
    video.nonstreamable.mov che cosa ha di diverso da video.mov?

    Grazie....

  2. #2
    Utente di HTML.it
    Registrato dal
    Feb 2004
    Messaggi
    724
    JMF creates the nonstreamable file first.
    This has the header at the end.
    After recording is successfully completed, JMF creates a new file
    where it puts the header in the front so that it is
    streamable. After that file is successfully created,
    the nonstreamable file is removed.

    The nonstreamable shouldn't be there if there was no error.

    Check jmf.log to see if there are any errors.
    If you can reproduce this problem easily, then let us know.
    Give details of your setup and output of jmf.log.

    As a workaround, for now, just remove the nonstreamable file.

  3. #3
    capisco...
    anche se non ci dovrebbero essere errori visto che riesco a guardare il filmato...
    controllero questo file di log.

    un'altra curiosità.

    ho realizzato un'acuisizione da webcam e audio da microfono.

    il problema è che non riesco ad utilizzare i codec che vorrei per una maggiore compessione.
    attualmente mi funziona con IMA4 per l'audio e INDEO32 per il video.

    cosa devo fare per poter utilizzare qualche altro codec più performante, visto che il mio scopo è un invio dello stream tramite rete?

    grazie ancora...

  4. #4
    Utente di HTML.it
    Registrato dal
    Feb 2004
    Messaggi
    724
    prova a guardare jffmpeg che mette a disposizione delle jmf i codec di ffmpeg

  5. #5
    ok, grazie. gli do un'occhiata, sperando che sia gratuito e che possa essere utilizzato anche per software a scopo di "lucro" ...

  6. #6
    Utente di HTML.it
    Registrato dal
    Feb 2004
    Messaggi
    724
    gratuito lo è, per la seconda nn so

  7. #7
    sembra che non sia gratuito... pazienza...

    ora volevo utilizzare un player per visualizzare quanto acquisiva il processor, avere quindi su schermo cio che la camera sta inquadrando. purtroppo ricevo il seguente messaggio d'errore:

    codice:
    javax.media.NoPlayerException: Cannot find a Player for: com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@ebcdbb
    eppure se utilizzo un player su un video con codec INDEO precedentemente acquisito del processor funziona perfettamente.

    da cosa dipende?

  8. #8
    Utente di HTML.it
    Registrato dal
    Feb 2004
    Messaggi
    724
    gurda che ffmpeg è un progetto open suorce licenziato con una licenza GNU. lo uso anche io in facolta per un progetto, nn so dove hai letto che nn è gratuito

    FFmpeg License
    FFmpeg is licensed under the GNU Lesser General Public License, or LGPL. Essentially, this means that you are allowed to use the FFmpeg library in your own application, regardless of your application's license. However, if you alter the FFmpeg library in any way, and subsequently distribute it, you are expected to make those changes available under the LGPL license.

  9. #9
    veramente mi riferivo a jffmpeg. può anche essere che abbia letto male, che abbia frainteso visto il mio inglese...

    comunque grazie, molto gentile!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.