Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (9)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

Sur d’autres sites (3182)

  • ffmpeg multiple input video in grid and simultaneous audio

    13 février 2023, par Hnusny Pleb

    i would like to copy a video into n videos in one grid :
best example : https://www.youtube.com/watch?v=lYKDTLGH-TQ&ab_channel=TheRabbit_123

    


    This is my code, its working, but problem is, the audio seems to be like its played by one version.. I want the "echo" thats created by a lot of files like on the video above.

    


    def create_4_in_one(number):
shutil.copy("start.mp4", f"video.mp4")
for i in range(number):
    shutil.copy("video.mp4", f"temp_videa/{i}.mp4")
    subprocess.call(f'ffmpeg -y -i video.mp4 -vf "scale=iw/2:ih/2" -c:a copy video_half.mp4',
                  shell=True)
    subprocess.call(f'ffmpeg -y -i video_half.mp4 -i video_half.mp4 -i video_half.mp4 -i video_half.mp4 -filter_complex "[0:v][1:v]hstack[t];[2:v][3:v]hstack[b];[t][b]vstack[v]; [0:a][1:a][2:a][3:a]amerge=inputs=4[a]" -map "[v]" -map "[a]" -map 0:a -map 1:a -map 2:a -map 3:a -c:a aac -b:a 128k -ac 2 -shortest output.mp4',
                  shell=True)
    os.remove("video.mp4")
    os.remove("video_half.mp4")
    os.rename('output.mp4', 'video.mp4')

os.remove("video.mp4")


    


    Thanks in advance.

    


  • Publish local .mp4 video from android to wowza using FFmpeg

    13 mars 2016, par Parth Doshi

    I am trying to publish a local .mp4 video from my sdcard to wowza using the ffmpeg java wrapper.

    I have used the library for executing ffmpeg commands on Android

    On Android, my code looks as follows :

    FfmpegController objController = new FfmpegController(MainActivity.this, new File("/tmp"));
                   //objController.installBinaries(MainActivity.this,true);
                   mFfmpegBin = objController.installBinary(MainActivity.this, R.raw.ffmpeg, "ffmpeg", true);
                   //no just extract the audio
                   ArrayList<string> cmd = new ArrayList<string>();

                   //-f dshow -i video="Integrated Camera" out.mp4
                   cmd.add(mFfmpegBin);
                   //cmd.add("-sample_fmts");
                   cmd.add("-re");
                   cmd.add("-i");      
                   cmd.add("/sdcard/sample.mp4");
                   cmd.add("-c");
                   cmd.add("copy");
                   cmd.add("-f");
                   cmd.add("flv");
                   cmd.add("rtsp://192.168.1.35:1936/live/myStream");

                   objController.execFFMPEG(cmd, new ShellUtils.ShellCallback() {

                       @Override
                       public void shellOut(String shellLine) {
                           // TODO Auto-generated method stub
                           System.out.println("shell out" + " "  +shellLine);
                       }

                       @Override
                       public void processComplete(int exitValue) {
                           // TODO Auto-generated method stub
                           System.out.println("process complete::" + " " +exitValue);

                       }
                   });

               }catch(Exception ex){
                   ex.printStackTrace();
               }
           }
    </string></string>

    Now, when I execute the command, I get the following logs

    shell out Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/sdcard/sample.mp4':
    shell out rtmp://192.168.1.35:1936/live/myStream: Protocol not found

    Why is the protocol not supported on Android. When I run the same ffmpeg command from windows command line using ffmpeg then it works fine.

    The command is,

    ffmpeg -re -i sample.mp4 -c copy -f flv rtmp ://192.168.1.35:1936/live/myStream

    Can please someone help ?

  • Python, FFMPEG : Redirecting output of FFMPEG subprocess call to a string

    31 décembre 2019, par user1452030

    I’ve managed to run an FFMPEG command using the subprocess module as shown below :

    output = subprocess.check_output(command, shell=True)

    This works fine, but it prints the verbose FFMPEG output to console. The program I’m writing is supposed to run for hundreds/thousands of files in a batch and I don’t want detailed outputs for every file processed, unless the user chooses to do so. Can I redirect the console outputs and errors to strings, so that I can decide when I should and shouldn’t print them ?

    This might be lame, but I tried the following snippet :

    outputBuffer = BytesIO()
    output = subprocess.check_output(command, shell=True, stdout=outputBuffer)

    But it gave me the following error :

    ValueError: stdout argument not allowed, it will be overridden.

    I saw other examples where the POpen interface was used, but given that I’m not communicating with the external command as it is running, and that I need to run this for a large number of items, I’d prefer something simpler, if possible.

    Thanks in advance !

    Note : I’ve found lots of questions in this broad topic, but I couldn’t find anything perfectly relevant to my situation.