Recherche avancée

Médias (91)

Autres articles (73)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • 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 (...)

Sur d’autres sites (4405)

  • bindProcessToNetwork is not working with ffmpeg in android

    12 janvier 2020, par Mithun Sarker Shuvro

    I am using FFmpeg to re stream video from a camera(which is connected via wifi with no internet connection) to another server, and I want to do the re streaming process via cellular data. As I am already connected to wifi and to use cellular data at the same time bindProcessToNetwork() . Before executing ffmpeg command I have done the the following

    final ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
    NetworkRequest.Builder req = new NetworkRequest.Builder();
    req.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
    req.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR);
    cm.requestNetwork(req.build(), new ConnectivityManager.NetworkCallback() {
       @Override
       public void onAvailable(Network network) {
           //here you can use bindProcessToNetwork
           //cm.getNetworkInfo(network);
           if (cm.getNetworkInfo(network).getType() == ConnectivityManager.TYPE_MOBILE) {
               cm.bindProcessToNetwork(network);
           }
       }

    });

    it is working fine in most of the case, like webview is working properly by using cellular data , while connected to wifi , but when I try to execute any ffmpeg command it doesn’t work .

  • I want to create the discord bot by use python,but ffmpeg always had problem

    12 décembre 2023, par Bot
    async def play(ctx, *, song_name):  

    if ctx.author.voice is None or ctx.author.voice.channel is None:
        await ctx.send("nobody")
        return

    voice_channel = ctx.author.voice.channel
    channel = None
    if ctx.voice_client is None:
        channel = await voice_channel.connect()
    else:
        await ctx.voice_client.move_to(voice_channel)

    ydl_opts = {'format': 'bestaudio'}
    videosSearch = VideosSearch(song_name, limit=1) 
    results = videosSearch.result()
    
    url = results['result'][0]['link']
    
    if voice_channel.guild.id in queues:
        queues[voice_channel.guild.id].append(url)
        
    else:
        queues[voice_channel.guild.id] = [url]
        
    if not ctx.voice_client.is_playing():
        await play_next(ctx.voice_client, voice_channel.guild.id)


    


    ffmpeg has this error detail :

    


    discord.player ffmpeg process 17656 successfully terminated with return code of 3199971767.

    


    I found the internet ,lots of people got the code of 1 or -1.

    


    But i get 3199971767 ,i don't know the meaning of this.

    


    BTW, my url is correct.

    


    Hoping someone can help me.

    


    TY

    


  • Removing GRUB

    14 avril 2011, par Multimedia Mike — General

    I have a Windows/Linux dual-booting computer that I don’t want to be dual boot anymore— the Linux part needs to go. Thus, the GRUB bootloader needs to be removed so that Windows boots normally. I found lots of tips around the internet about how to do this. Of course, none of them worked. So I must add to the general body of knowledge.

    I found tips that described how to manually remove GRUB via Linux— by using 'dd' to overwrite no more than 446 sectors of the boot disk with zeros. This strikes me as a dangerous and unstable proposition. It also wasn’t an option since I had already opted to reformat the formerly Linux partition via the Windows CD-ROM before I endeavored to remove the bootloader.

    Other forums and sites mentioned a combination of utilities found on the Windows CD-ROM including FIXBOOT, FIXMBR, and BOOTCFG. While these programs performed some functions, they didn’t achieve the desired effect— to make Windows boot automatically.

    New idea : Repartition the disk such that there is a (relatively) tiny extra partition. Then, well... reinstall Linux. I used a 4 GB partition and Ubuntu 10.10 and let it run its course which ended with installing GRUB... again.

    Seems roundabout— installing Linux specifically to boot into Windows. But it works.