Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (80)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (9404)

  • Including Youtube-dl in FFMPEG not working in Bash (OSX)

    14 juillet 2019, par user1029296

    I am trying to download 5 second samples for a list of youtube video. The traditional approach is to download the entire file with "youtube-dl" and then use "ffmpeg" to split it however you want it.

    I am trying to use the following method : https://github.com/ytdl-org/youtube-dl/issues/622#issuecomment-162337869

    It does work when I include the variables in the command, for example :

    ffmpeg -ss 0 -i $(youtube-dl -f best --get-url https://www.youtube.com/watch?v=ySVi-0RS5vI&t=5s) -t 10 -c:v copy -c:a copy title2.mp4

    However, I am having issues trying to automate the system. Specifically, I would like ffmpeg and youtube-dl to read a file and use the values. I created the file "youtube.txt" which includes the following codes :

    440.8,https://www.youtube.com/watch?v=0-4wOE_DNeA,661.2,881.6,0-4wOE_DNeA
    330,https://www.youtube.com/watch?v=0-AMWW6tHzw,495,660,0-AMWW6tHzw
    509.2,https://www.youtube.com/watch?v=0-Rmto2rgMw,763.8,1018.4,0-Rmto2rgMw
    427.6,https://www.youtube.com/watch?v=0-U53qm45cA,641.4,855.2,0-U53qm45cA
    320.4,https://www.youtube.com/watch?v=0-dja9Ys4Sg,480.6,640.8,0-dja9Ys4Sg
    343.6,https://www.youtube.com/watch?v=0-g_PulsqtM,515.4,687.2,0-g_PulsqtM
    415.6,https://www.youtube.com/watch?v=0-nniRyn7dU,623.4,831.2,0-nniRyn7dU
    431.2,https://www.youtube.com/watch?v=006BQU3BFxw,646.8,862.4,006BQU3BFxw

    I am using the following command :

    parallel -j 6 --colsep ',' ffmpeg -ss {1} -i $(youtube-dl -f best --get-url {2}) --t 5 -c:v copy -c:a copy {5} :::: youtube.txt

    However, I get the following errors :

    ERROR: '{2}' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:{2}" ) to search YouTube
    --t: No such file or directory

    Would you mind helping me ?

    Thanks !

  • Android ffmpeg using

    6 juin 2012, par Vardan Gevorgyan

    I have successfully compiled ffmpeg for android.
    I have wrote simple application which just open mp4 file :

    int main(int argc, char * argv[])
    {
       av_register_all();

       __android_log_write(ANDROID_LOG_INFO, "NDK", "Opening file: /sdcard/test.mp4...");

       if (avformat_open_input(&pFormatCtx, "/sdcard/test.mp4", NULL, NULL) != 0) {
           __android_log_write(ANDROID_LOG_INFO, "NDK", "file not opened\n");
           return -1;
       }
       __android_log_write(ANDROID_LOG_INFO, "NDK", "file opened\n");
    }

    When I run this code the C code crashes here :

    06-06 18:22:42.629: I/DEBUG(31):          #00  pc 00159804  /data/data libffmpeg.so
    06-06 18:22:42.629: I/DEBUG(31):          #01  lr 809465dc  /data/data libffmpeg.so

    ndk-stack write :

    Stack frame #00  pc 00159804  /data/data/.../lib/libffmpeg.so: Routine av_opt_set_dict in libavutil/opt.c:552

    Which is av_opt_set_dict function :

    int av_opt_set_dict(void *obj, AVDictionary **options)
    {
       AVDictionaryEntry *t = NULL;
       AVDictionary    *tmp = NULL;
       int ret = 0;

       while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) {
           ret = av_set_string3(obj, t->key, t->value, 1, NULL);
           if (ret == AVERROR_OPTION_NOT_FOUND)
               av_dict_set(&tmp, t->key, t->value, 0);
           else if (ret < 0) {
               av_log(obj, AV_LOG_ERROR, "Error setting option %s to value %s.\n", t->key, t->value);
               break;
           }
           ret = 0;
       }
       av_dict_free(options);
       *options = tmp;
       return ret;
    }

    552 line is :

    while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) {

    This code working on my linux machine (of course with .so for linux, for android I use ndk built .so file), but not under android.

    Also, it's working on my rooted HTC Desire Z, but not on emulator or un-rooted device.

    Here I found the post that I need to change libavformat/file.c file_check function :

    static int file_check(URLContext *h, int mask)
    {
       struct stat st;
       int ret = stat(h->filename, &st);
       if (ret < 0)
           return AVERROR(errno);

       ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ  : 0;
       ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;

       return ret;
    }

    to

    static int file_check(URLContext *h, int mask)
    {
       struct stat st;
       int ret = stat(h->filename, &st);
       if (ret < 0)
           return AVERROR(errno);

       ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ  : 0;
       ret |= st.st_mode&S_IRGRP ? mask&AVIO_FLAG_READ  : 0;
       ret |= st.st_mode&S_IROTH ? mask&AVIO_FLAG_READ  : 0;
       ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;
       ret |= st.st_mode&S_IWGRP ? mask&AVIO_FLAG_WRITE  : 0;
       ret |= st.st_mode&S_IWOTH ? mask&AVIO_FLAG_WRITE  : 0;


       return ret;
    }

    but it wasn't help.

    Any suggestions ?

    Thanks

  • +RTMP on homepage, iPhone OS 4 mention

    7 juin 2010, par Scott Schiller

    m index.html +RTMP on homepage, iPhone OS 4 mention