Recherche avancée

Médias (0)

Mot : - Tags -/page unique

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (8281)

  • OpenIMAJ not able to access video file

    20 septembre 2014, par Sudh

    I am using OpenIMAJ to draw facial keypoints on a video but it is stuck at the first step itself.
    Here is the code I am trying to run: :

    Video<mbfimage> video;
       video = new XuggleVideo("file://E:/AV/out2.flv");//XuggleVideo("file:"+fileName);
       VideoDisplay<mbfimage> display = VideoDisplay.createVideoDisplay(video);
       display.addVideoListener(
                new VideoDisplayListener<mbfimage>() {
                       public void beforeUpdate( MBFImage frame ) {

                           FaceDetector fd = new HaarCascadeDetector(40);
                           List<detectedface> faces = fd.detectFaces( Transforms.calculateIntensity(frame));

                           for( DetectedFace face : faces ) {
                               frame.drawShape(face.getBounds(), RGBColour.RED);
                           }
                       }

                       public void afterUpdate( VideoDisplay<mbfimage> display ) {
                       }
         });
    </mbfimage></detectedface></mbfimage></mbfimage></mbfimage>

    When I run this It prints

    file :///E :/AV/out2.flv URL file :///E :/AV/out2.flv could not be opened
    by ffmpeg. Trying to open a stream to the URL instead. 11:14:12.505
    [Finalizer] DEBUG com.xuggle.xuggler - Closing dangling Container
    (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:146)

    on the screen and then just dies out. result is same if I use video = new XuggleVideo(new File("E :/AV/out2.flv")) ;

    Also if I keep file in the project and then do video = new XuggleVideo(new File("out2.flv")) ; I get same result.

    I am able to access the file if I put the link in the browser. What is going wrong ?

    Update : I get just this

    out2.flv 12:03:06.485 [Finalizer] DEBUG com.xuggle.xuggler - Closing
    dangling Container
    (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:146)

    If I use video = new XuggleVideo("out2.flv");

  • lavc/pthread_frame : protect read state access in setup finish function

    11 janvier 2017, par Clément Bœsch
    lavc/pthread_frame : protect read state access in setup finish function
    
    • [DH] libavcodec/pthread_frame.c
  • Go / Cgo - How to access a field of a Cstruct - could not make it

    15 août 2021, par ChrisG

    I develope an application in Go for transcode an audio file from one format to another one :

    &#xA;

    I use the goav library that use Cgo to bind the FFmpeg C-libs :&#xA;https://github.com/giorgisio/goav/

    &#xA;


    &#xA;

    The goav library ; package avformat has a typedef that cast the original FFmpeg lib C-Struct AVOutputFormat :

    &#xA;

    type ( &#xA;   OutputFormat               C.struct_AVOutputFormat&#xA;)&#xA;

    &#xA;

    In my code i have a variable called outputF of the type OutputFormat that is a C.struct_AVOutputFormat.

    &#xA;

    The C real AVOutputFormat struct has fields :

    &#xA;

    name, long_name, mime_type, extensions, audio_codec, video_codec, subtitle_codec,..&#xA;

    &#xA;

    and many fields more.

    &#xA;

    See : https://ffmpeg.org/doxygen/2.6/structAVOutputFormat.html

    &#xA;


    &#xA;

    I verified the situation by fmt.Println(outputF) and reached :

    &#xA;

    {0x7ffff7f23383 0x7ffff7f23907 0x7ffff7f13c33 0x7ffff7f23383 86017 61 0 128 <nil> 0x7ffff7f8cfa0 <nil> 3344 0x7ffff7e3ec10 0x7ffff7e3f410 0x7ffff7e3ecc0 <nil> 0x7ffff7e3dfc0 <nil> <nil> <nil> <nil> <nil> <nil> 0 0x7ffff7e3e070 0x7ffff7e3e020 <nil>}&#xA;</nil></nil></nil></nil></nil></nil></nil></nil></nil></nil>

    &#xA;

    The audio codec field is on position 5 and contains 86017

    &#xA;

    I verified the field name by using the package reflect :

    &#xA;

    val := reflect.Indirect(reflect.ValueOf(outputF))&#xA;fmt.Println(val)&#xA;fmt.Println("Fieldname: ", val.Type().Field(4).Name)&#xA;&#xA;Output:&#xA;Fieldname:  audio_codec&#xA;

    &#xA;


    &#xA;

    I try to access the field audio_codec of the original AVOutputFormat using :

    &#xA;

    fmt.Println(outputF.audio_codec)&#xA;ERROR: outputF.audio_codec undefined (cannot refer to unexported field or method audio_codec)&#xA;&#xA;&#xA;fmt.Println(outputF._audio_codec)&#xA;ERROR: outputF._audio_codec undefined (type *avformat.OutputFormat has no field or method _audio_codec)&#xA;

    &#xA;

    &#xA;

    As i read in the Cgo documentation :&#xA;Within the Go file, C's struct field names that are keywords in Go can be accessed by prefixing them with an underscore : if x points at a C struct with a field named "type", x._type accesses the field. C struct fields that cannot be expressed in Go, such as bit fields or misaligned data, are omitted in the Go struct, replaced by appropriate padding to reach the next field or the end of the struct.

    &#xA;

    &#xA;

    But I have no idea what im doing wrong.

    &#xA;

    Edit :&#xA;Okay for sure no underscore is required as audio_codec is not a keyword in Go. This i understood for now. But still there is the question why im not able to access the CStruct field "audio_codec".

    &#xA;