Recherche avancée

Médias (0)

Mot : - Tags -/latitude

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

Autres articles (98)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

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

  • How to fix the problem I'm having with FFmpeg ?

    23 février 2023, par John

    I'm working with the ffmpeg library to convert mp4 video files to mp3 audio files.
Here is my code :

    


    package com.exer;


import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Environment;
import android.widget.Toast;
import com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler;
import com.github.hiteshsondhi88.libffmpeg.FFmpeg;
import com.github.hiteshsondhi88.libffmpeg.FFmpegLoadBinaryResponseHandler;

public class MainActivity extends Activity {
    
    FFmpeg ffmpeg;
    private ProgressDialog progressDialog;
    
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    
        
        
        try {
            setUp();
            String[] command = {
                "-i", getPaths()+"/dir/input.mp4", "-vn", getPaths()+"/dir/output.mp3"
            };
            //convert("ffmpeg -i input.mp4 -vn output.mp3");
            convert(command);
            
        } catch (Exception e) {
            Toast.makeText(getApplicationContext(), e.getCause().toString(), Toast.LENGTH_SHORT).show();
        }
    }
    
    
    public void setUp() throws Exception {
        
        if(ffmpeg == null) {
            
            ffmpeg = FFmpeg.getInstance(this);
            ffmpeg.loadBinary(new FFmpegLoadBinaryResponseHandler(){
                    
            @Override
            public void onFailure() {
                Toast.makeText(getApplicationContext(), "failed to load library", Toast.LENGTH_SHORT).show();   
            }
                    
            @Override
            public void onSuccess() {
                Toast.makeText(getApplicationContext(), "loaded!", Toast.LENGTH_SHORT).show();
            }
                    
            @Override
            public void onStart() {
                        
            }
                    
            @Override
            public void onFinish() {
                        
            }
                    
                    
            });
            
        }
        
    }
    
    
    private void convert(String[] cmd) throws Exception {
        
        ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler(){
            
            @Override
            public void onFailure(String message){
                super.onFailure(message);
            }
            
            @Override
            public void onFinish(){
                super.onFinish();
                Toast.makeText(getApplicationContext(), "finished!", Toast.LENGTH_SHORT).show();
            }
            
            @Override
            public void onStart(){
                super.onStart();
                Toast.makeText(getApplicationContext(), "start conversion...", Toast.LENGTH_SHORT).show();
            }
            
            @Override
            public void onProgress(String message){
                super.onProgress(message);
            }
        });
        
    
    }
    
    private String getPaths() {
        return Environment.getExternalStorageDirectory().getPath();
    }
    
}


    


    When I run the app, the Toast messages are shown :

    


    loaded!
start converting...
finished! as I write them in the functions, apart that nothing else happens the file is not converted what's wrong ?

    


    Here my manifest file :

    


    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;<manifest package="com.exer">&#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;        &#xA;            &#xA;                <action></action>&#xA;&#xA;                <category></category>&#xA;            &#xA;        &#xA;    &#xA;&#xA;</manifest>&#xA;

    &#xA;

    I've tried to delete the specified file on the phone to see what erros I might got, but still those three Toasts.

    &#xA;

  • Crontab starts again befor the process of conversion in ffmpeg ends(depending on time supose /2 minutes) How to Control that ?

    18 décembre 2016, par A Sahra

    I am running a bash .sh file every two minutes with crontab. the problem is that when crontab runs bash file the process of ffmpeg video conversion starts,the conversion time varies depending on length of videos, i have set the crontab to run every two minutes. crontab runs again after two minutes before end of ffmpeg conversion.

    How to Figure out :

    control of crontab and conversion process so the crontab doesn’t starts again until process of conversion is not completed.

    #!/bin/bash
    # set PATH to check existance of video file in this directory
    checkfiles=/home/webuser/public_html/shareportal/convert_Up_videos/*
    checkforfiles=/home/webuser/public_html/shareportal/convert_Up_videos
    movetodire=/home/webuser/public_html/shareportal/uploaded_videos/
    conversionprocessdir=/home/webuser/public_html/shareportal/conversion_process/
    movetoArchive=/home/webuser/public_html/shareportal/Video_Archive/
    blockpath=/home/webuser/public_html/shareportal/block.txt
    processid=/home/webuser/public_html/shareportal/processid.txt
    #format of output video file
    webm='webm'
    if [ "$(ls -A $checkforfiles)" ]
    then
    #check directory for files to convert
    for f in $checkfiles
       do  
           fullfilename="$f"
           filename=$(basename "$f")
           filewithoutextforimage="${filename%.*}"
           nametofile=$filewithoutextforimage | cut -c1-10;
           echo $filewithoutextforimage | cut -c1-10 1> $blockpath 2>&amp;1
       filewithoutext="${f%.*}"
       fileextention="${f##*.}"
       image_path='/home/webuser/public_html/shareportal/video_images/'$filewithoutextforimage'.png'
       outputfilename=$conversionprocessdir"$filewithoutextforimage.webm"
       #ffmpeg conversion process starts here
       if (ffmpeg -i "$f" "$outputfilename" 1>> $blockpath 2>&amp;1)
       then
           #Extract Image of video file on provided time stamp
           if (ffmpeg -ss 00:00:06 -i "$f" -vframes:v 1 "$image_path")
           then
               echo "Image Extracted"
           else
               echo "Could not Extract Image"
           fi
           echo "Video Converted";
       else
           echo "Could Not Convert Video"
       fi
       #conversion Ends!!
       mv "$outputfilename" $movetodire
       mv "$fullfilename" $movetoArchive
    done
    else
    echo "File Not Found Directory is empty!!!-----"
    fi
  • Improve hls VOD mode hls performance problem.

    19 août 2018, par Ronak Patel
    Improve hls VOD mode hls performance problem.
    

    This fixes the creation of the hls manifest in hlsenc.c by writing the
    entire manifest at the end for VOD playlists. Live & Event Playlists are unaffected.
    This also fixes the behavior with HLS_TEMP_FILE to work correctly when
    - hlsflags temp_file is specified, instead of always relying on use_rename, which caused these problems.

    Files that would previously take over a week to fragment now take
    1 minute on the same hardware. This was a 153 hour audio file (2.2GB of audio).

    Signed-off-by : Ronak Patel <ronak2121@yahoo.com>

    • [DH] libavformat/hlsenc.c