Recherche avancée

Médias (91)

Autres articles (76)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9132)

  • upload video with display and upon submit that video by post method to PHP file where FFMPEG command execute

    30 avril 2019, par Asfand Yar

    Main Task
    Video -> Audio (Wav or mp3)
    Procedure :
    User select video and its display and upload in video player thats fine but when i try to upload via the form tag and post method to php file (Bash.php) where that video have to be converted into the audio (mp3 or wav) i am using FFMPEG library (THat command work perfectly into the Command line) I am trying to do it in php (exec) but didn’t find fruitful results

    I try FFMPEG command to convert uploaded mp4 video to audio because i need audio to transcription
    HTML CODE

    <video width="500" controls="controls" preload="none">

    </video>



    <div class="container d-flex justify-content-center">
    <input type="file" accept="video/*" />

    </div>

       <code class="echappe-js">&lt;script type=&quot;text/javascript&quot;&gt;<br />
       video_file.onchange = function(){<br />
    <br />
       var files = this.files;<br />
    <br />
       var file = URL.createObjectURL(files[0]); <br />
    <br />
       video_player.src = file; <br />
    <br />
       video_player.load();};  <br />
    <br />
    &lt;/script&gt;

    &lt;?php  
       if(isset($_FILES['video'])){                                                                              
       $errors = array();    
           $file_name = $_FILES['video']['name'];                                                                
           $file_size = $_FILES['video']['size'];                                                                
           $file_tmp = $_FILES['video']['tmp_name'];                                                            
           $file_type = $_FILES['video']['type'];                                                                
           $file_ext = strtolower(end(explode('.',$_FILES['video']['name'])));  


       $expensions = array("mp4","avi");                                                                                                  


           if(in_array($file_ext, $expensions[0])===false){                  
               $errors[]="Extension not allowed, please choose a Mp4 or Avi file video";
           }                                                                                                              
       $convertedFile='fine.mp3';                                              
           if(empty($errors)==true){  
           move_uploaded_file($file_tmp, './'.$file_name);
           exec("ffmpeg -i $file_name -vn fine.mp3");

           }else{                                                                                                
               print_r($errors);                                                                                
           }
       $target = "http://localhost:8888/client/dynamic/recognize";
       sleep(3);

       if($file_ext == "mp4" or $file_ext == "avi"){
           exec("python /path/client2.py fine.mp3 > output.txt 2> output2.txt");

           $output = exec("cat output.txt");   }
       echo $output;
       }
    ?>
  • avformat/{isom,mov,movenc} : add support for CMAF DASH roles

    15 juillet 2021, par Jan Ekström
    avformat/isom,mov,movenc : add support for CMAF DASH roles
    

    This information is coded in a standard MP4 KindBox and utilizes the
    scheme and values as per the DASH role scheme defined in MPEG-DASH.
    Other schemes are technically allowed, but where multiple schemes
    define the same concepts, the DASH scheme should be utilized.

    Such flagging is additionally utilized by the DASH-IF CMAF ingest
    specification, enabling an encoder to inform the following component
    of the roles of the incoming media streams.

    A test is added for this functionality in a similar manner to the
    matroska test.

    Signed-off-by : Jan Ekström <jan.ekstrom@24i.com>

    • [DH] libavformat/isom.c
    • [DH] libavformat/isom.h
    • [DH] libavformat/mov.c
    • [DH] libavformat/movenc.c
    • [DH] libavformat/version.h
    • [DH] tests/fate/mov.mak
    • [DH] tests/ref/fate/mov-mp4-disposition-mpegts-remux
  • Converting images to video in Android using FFmpeg

    28 février 2024, par sneha Latha
    val cm = "-f image2 -i \"$imagesFolder/JPEG_08%d_06%d_.jpg\" -vcodec mpeg4 -b 800k output.mp4"&#xA;

    &#xA;

    this command is not able to .convert the images into video my images are in the format below :

    &#xA;

    JPEG_20240228_115618_  &#xA;JPEG_20240228_115622_&#xA;

    &#xA;

    Im using the below code :

    &#xA;

        fun convertImagesToVideo(imageList: List<file>, outputVideoPath: String, frameRate: Int) {&#xA;        val inputFiles = imageList.joinToString(" ") { it.absolutePath }&#xA;        val imagesFolder = File(getExternalFilesDir(Environment.DIRECTORY_PICTURES), "camerax")&#xA;&#xA;        val cm = "-f image2 -i \"$imagesFolder/JPEG_08%d_06%d_.jpg\" -vcodec mpeg4 -b 800k output.mp4"&#xA;&#xA;&#xA;        val cmd = arrayOf(&#xA;            "-framerate", frameRate.toString(),&#xA;            inputFiles,&#xA;            "-c:v", "mpeg4",&#xA;            "-pix_fmt", "yuv420p",&#xA;            outputVideoPath&#xA;        ).joinToString(" ")&#xA;&#xA;        executeFfmpegCommand(cm, outputVideoPath)&#xA;    }&#xA;&#xA;    fun executeFfmpegCommand(exe: String, filePath: String) {&#xA;&#xA;        //creating the progress dialog&#xA;        val progressDialog = ProgressDialog(this@FolderListActivity)&#xA;        progressDialog.setCancelable(false)&#xA;        progressDialog.setCanceledOnTouchOutside(false)&#xA;        progressDialog.show()&#xA;&#xA;        /*&#xA;            Here, we have used he Async task to execute our query because if we use the regular method the progress dialog&#xA;            won&#x27;t be visible. This happens because the regular method and progress dialog uses the same thread to execute&#xA;            and as a result only one is a allowed to work at a time.&#xA;            By using we Async task we create a different thread which resolves the issue.&#xA;         */&#xA;        FFmpegKit.executeAsync(exe, { session ->&#xA;            val returnCode = session.returnCode&#xA;            lifecycleScope.launch(Dispatchers.Main) {&#xA;                if (returnCode.isValueSuccess) {&#xA;                    binding.videoView.setVideoPath(filePath)&#xA;                    //change the video_url to filePath, so that we could do more manipulations in the&#xA;                    //resultant video. By this we can apply as many effects as we want in a single video.&#xA;                    //Actually there are multiple videos being formed in storage but while using app it&#xA;                    //feels like we are doing manipulations in only one video&#xA;                    input_video_uri = filePath&#xA;                    //play the result video in VideoView&#xA;                    binding.videoView.start()&#xA;                    progressDialog.dismiss()&#xA;                    Toast.makeText(this@FolderListActivity, "Filter Applied", Toast.LENGTH_SHORT).show()&#xA;                } else {&#xA;                    progressDialog.dismiss()&#xA;                    Log.d("TAG", session.allLogsAsString)&#xA;                    Toast.makeText(this@FolderListActivity, "Something Went Wrong!", Toast.LENGTH_SHORT)&#xA;                        .show()&#xA;                }&#xA;            }&#xA;        }, { log ->&#xA;            lifecycleScope.launch(Dispatchers.Main) {&#xA;                progressDialog.setMessage("Applying Filter..${log.message}")&#xA;            }&#xA;        }) { statistics -> Log.d("STATS", statistics.toString()) }&#xA;    }&#xA;</file>

    &#xA;