Recherche avancée

Médias (0)

Mot : - Tags -/logo

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

Autres articles (45)

  • 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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7561)

  • executing ffmpeg command with getRuntime().exec() command

    12 mai 2015, par Iori

    i want to run ffmepg command directly on android.
    a simple command

    ffmpeg -i vid.mp4 out.mp4

    now the issue is that i have searched the internet and found the best android ffmpeg can be found here

    http://bambuser.com/opensource

    I have downloaded it and read the readme file and compiled it. the folder is ffmpeg. I have kept it in <--projectfolder-->/ffmpeg/

    there is a ffmpeg executeable file in ffmpeg folder called ffmpeg folder

    i have copied it in files folder and run this command

     try {    

       Toast.makeText(this, "Working", Toast.LENGTH_SHORT).show();

       Process p = Runtime.getRuntime().exec("/data/data/com.koder.testffmpeg/files/ffmpeg -i /sdcard/vid.mp4 /sdcard/out.mp4");


       } catch (IOException e) {

       txt.setText(e.toString());

       Toast.makeText(this, e.toString(), Toast.LENGTH_LONG).show();

       e.printStackTrace();

       }

    according to this link
    How do I reduce the video size captured by the default camera using FFMPEG in Android ?

    but still it does not work always exception i dont know what is going wrong
    can someone plz help me with this

    java.io.IOException: Error running exec(). Command:[/data/data/com.koder.testffmpeg/files/ffmpeg -i /sdcard/vid.mp4 /sdcard/out.mp4] Working Directory: null Environment:null
  • FFMPEG : Extracting 20 images from a video of variable length

    12 novembre 2013, par Vapire

    I've browsed the internet for this very intensively, but I didn't find what I needed, only variations of it which are not quite the thing I want to use.

    I've got several videos in different lengths and I want to extract 20 images out of every video from start to the end, to show the broadest impression of the video.

    So one video is 16m 47s long => 1007s in total => I have to make one snapshot of the video every 50 seconds.

    So I figured using the -r switch of ffmpeg with the value of 0.019860973 (eq 20/1007) but ffmpeg tells me that the framerate is too small for it...

    The only way I figured out to do it would be to write a script which calls ffmpeg with a manipulated -ss switch and using -vframes 1 but this is quite slow and a little bit off for me since ffmpegs numerates the images itself...

    Any suggestions or directions ?

    Thanks,
    Vapire

  • FFmpeg doesn't work in Rails 3 app with Apache and Passenger in GoDaddy CentOS

    29 décembre 2011, par pablo89

    I try to upload a .mp4 video file, and it works ; I made a Bash script that calls ffmpeg in order to get the thumbs of the video. It works fine in localhost, but when I uploaded the project to a dedicated server in GoDaddy with CentOS it doesn't work, it doesn't create the thumbnails, and it shows no error. The Rails App is running under Apache with Passenger. I have tried everything, even I gave 0777 permissions to the action and to the Bash script, but nothing, it doesn't show any error, but it doesn't work.

    This is the action in Rails (as you can see, I use the commands system and exec) :

    def create
     if !params[:video][:video].nil?
       videoName = params[:video][:video].original_filename.gsub(/\s/,'_')
       @video = Video.new({:title => params[:video][:title], :video => "/worshipvideos/#{videoName}"})
     else
       @video = Video.new({:title => params[:video][:title]})
     end

     if !params[:video][:video].nil?
       tmp = params[:video][:video].tempfile
       file = File.join("public/worshipvideos", videoName)
       FileUtils.cp tmp.path, file
       FileUtils.rm tmp
     end

     respond_to do |format|
       if @video.save
         if !params[:video][:video].nil?
           logger.debug "./createVideoPics.sh '#{videoName}'"
           fork do
             system("./createVideoPics.sh '#{videoName}'")
             #exec("./createVideoPics.sh '#{videoName}'")
           end

           @video.update_attribute("pic1", "worship_pics/#{videoName}_1.jpg")
           @video.update_attribute("pic2", "worship_pics/#{videoName}_2.jpg")
           @video.update_attribute("pic3", "worship_pics/#{videoName}_3.jpg")
         end

         format.html { redirect_to @video, notice: 'Video was successfully created.' }
         format.json { render json: @video, status: :created, location: @video }
       else
         format.html { render action: "new" }
         format.json { render json: @video.errors, status: :unprocessable_entity }
       end
     end
    end

    This is the script in Bash :

    #!/bin/bash
    chmod 0777 "public/worshipvideos/$1"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:00:20 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_1.jpg"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:00:40 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_2.jpg"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:01:00 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_3.jpg"
    echo "End of making thumbs"

    If I try to make the command in terminal ./createVideoPics.sh "abc.mp4" it works, it makes the thumbs ; it only doesn't work inside the Rails App.

    What do you think would be the problem ? thanks in advance