Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (69)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

Sur d’autres sites (10553)

  • How to find video time by using FFProbe in java ?

    13 octobre 2022, par Dadireddy Chenna

    I have used the below logic to get the duration but how can i convert to time using any library ?

    


       <dependency>&#xA;        <groupid>net.bramp.ffmpeg</groupid>&#xA;        <artifactid>ffmpeg</artifactid>&#xA;        <version>0.7.0</version>&#xA;    </dependency>&#xA;&#xA;    FFprobe ffprobe = new FFprobe();&#xA;    FFmpegProbeResult probeResult = ffprobe.probe(mediaPath);&#xA;    FFmpegFormat format = probeResult.getFormat();&#xA;    double duration = format.duration;&#xA;    // how to convert double to video time (01:29:01)&#xA;

    &#xA;

    ffprobe -i /video/sample.mp4 -show_entries format=duration -v quiet -of csv="p=0" -sexagesimal

    &#xA;

  • where can i find the file and android write in JNI

    14 janvier 2016, par chaoqi

    I wirte a test demo for ffmpeg, read a flac file and decoder it to a new pcm file.

    after done the work, i could not find the output file.

    so I open the output file with a new FILE pointer, and open is ok, does anybody give any tips, thanks.

    static int decode_packet(int *got_frame, int cached)
    {
       int ret = 0;
       int decoded = pkt.size;

       *got_frame = 0;

       if (pkt.stream_index == audio_stream_idx) {
           /* decode audio frame */
           ret = avcodec_decode_audio4(audio_dec_ctx, frame, got_frame, &amp;pkt);
           if (ret &lt; 0) {
               LOG("Error decoding audio frame (%s)\n", av_err2str(ret));
               return ret;
           }

           decoded = FFMIN(ret, pkt.size);

           if (*got_frame) {
               LOG("frame->format: %d", frame->format);
               size_t unpadded_linesize = frame->nb_samples * av_get_bytes_per_sample(AV_SAMPLE_FMT_S16/*frame->format*/);
               LOG("audio_frame%s n:%d nb_samples:%d pts:%s\n", cached ? "(cached)" : "", audio_frame_count++, frame->nb_samples,
                      av_ts2timestr(frame->pts, &amp;audio_dec_ctx->time_base));

               fwrite(frame->extended_data[0], 1, unpadded_linesize, audio_dst_file);
           }
       }

       if (*got_frame &amp;&amp; api_mode == API_MODE_NEW_API_REF_COUNT)
           av_frame_unref(frame);

       return decoded;
    }

       // as convient i write the abspath `/storage/emulated/0` which i got by rountine Environment.getExternalStorageDirectory().getAbsolutePath()
       const char *src_filename = "/storage/emulated/0/pyghlkn.flac";
       const char *audio_dst_filename = "/storage/emulated/0/test.pcm";

       FILE *audio_dst_file = NULL;
       FILE *audio_dump = NULL;

       JNIEXPORT void JNICALL Java_cn_com_longmaster_ffmpeg_encoder
         (JNIEnv *, jobject)
         {
             //......
               /* read frames from the file */
               while (av_read_frame(fmt_ctx, &amp;pkt) >= 0) {
                   AVPacket orig_pkt = pkt;
                   do {
                       ret = decode_packet(&amp;got_frame, 0);
                       LOG("write decode_packet... pkt.size: %d ", pkt.size);
                       if (ret &lt; 0)
                           break;
                       pkt.data += ret;
                       pkt.size -= ret;
                   } while (pkt.size > 0);
                   av_free_packet(&amp;orig_pkt);
               }

               /* flush cached frames */
               pkt.data = NULL;
               pkt.size = 0;
               do {
                   decode_packet(&amp;got_frame, 1);
                   LOG("flush cached frames");
               } while (got_frame);


               if (audio_dump)
               {
                   LOG("default audio_dump ready...");
               }
               else
               {
                   LOG("default audio_dump not ready...");
               }

               audio_dump = fopen(audio_dst_filename, "rb");
               if (audio_dump) {
                   LOG("open pcm file ok...");
               } else {
                   LOG("open pcm file fail...");
               }

               avcodec_close(audio_dec_ctx);
               avformat_close_input(&amp;fmt_ctx);
               if (audio_dst_file) {
                   fclose(audio_dst_file);
               }

               av_frame_free(&amp;frame);

               return ;

         }
  • Find all video files in directory with FLAC audio codec

    8 septembre 2023, par JSSpen

    Is it possible to search a directory and output a text file listing every video file that has FLAC audio ?

    &#xA;

    My television doesn't support FLAC so when I run into one I have been converting them with a FFMPEG script but it would be nice to be able to find them all in advance instead of waiting until I hit the problem while trying to play the files. I'm hoping there is a way that doesn't involve just opening every file in Mediainfo and checking manually.

    &#xA;

    Maybe there is a way to just output all of the Mediainfo information for a directory and then I can just find all FLAC occurrences in a csv sheet ?

    &#xA;