Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (103)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (7639)

  • Java merge ? mix ? 2 audio files(mp3) parallely and download it

    11 février 2024, par JoonSeo Yang

    is there any way to mix 2 audio files parallely and let user download it ?

    


    I was trying it by ffmpeg

    


    String audioInputPath1 = "sample_audio1.wav";
String audioInputPath2 = "sample_audio2.wav";
String outputFilePath1  = "filePath";
FFmpeg ffmpeg = new FFmpeg("C:\\filePath\\ffmpeg-master-latest-win64-gpl\\ffmpeg-master-latest-win64-gpl\\bin\\ffmpeg.exe");
FFmpegExecutor executor = new FFmpegExecutor(ffmpeg);
FFprobe ffprobe = new FFprobe("C:\\filePath\\ffmpeg-master-latest-win64-gpl\\ffmpeg-master-latest-win64-gpl\\bin\\ffprobe.exe");

FFmpegProbeResult probeResult = ffprobe.probe(audioInputPath1);
FFmpegProbeResult probeResult2 = ffprobe.probe(audioInputPath2);

FFmpegBuilder builder = new FFmpegBuilder()
.overrideOutputFiles(true)
.setInput(audioInputPath2)
.addInput(audioInputPath1)
.addOutput(outputFilePath2)
.setFormat("wav")
.setAudioCodec("libmp3lame")
.setAudioBitRate(256000)
.done();

executor.createJob(builder).run();


    


    after i run this code, i get proper .wav file at my outputfilepath, but what i get is just same copy of sample_audio2.wav. no concat, or merged with sample_audio1.wav can i get any help on this problem ??

    


  • Java merge ? mix ? 2 audio files(mp3) parallely and download it

    4 février 2024, par JoonSeo Yang

    is there any way to mix 2 audio files parallely and let user download it ?

    


    I was trying it by ffmpeg

    


    FFmpegBuilder builder = new FFmpegBuilder()
                .overrideOutputFiles(true)
                .setInput(audioInputPath1)
                .addInput(audioInputPath2)
                .addOutput(outputFilePath)
                .setFormat("mp3")
                .setAudioCodec("libmp3lame")
                .setAudioBitRate(256000)
                .done();

        executor.createJob(builder).run();


    


    but it doesnt work by codec problem, so i want to know if there any other way to reach my goal, or fix my ffmpeg code to make it work ?

    


  • Merge video and audio using ffmpeg and download immediately in django

    29 janvier 2024, par Suresh Chand

    I have video and audio file which is to be merge and download immediately. I have written some code but it will start download after merged. I want when user hit the url, then it will start merging and downloading immediately so that user don't have to wait for it.

    


    video_url = "./video.mp4"
audio_url = "./audio.mp4"

output_filepath = './merged.mp4'

try:
    process = subprocess.Popen([
        "ffmpeg",
        "-i", video_url,
        "-i", audio_url,
        "-c:v", "copy",
        "-c:a", "copy",
        "-f", "mp4",
        "-movflags", "frag_keyframe+empty_moov",
        "pipe:1"
    ], stdout=subprocess.PIPE)

    def generate_stream():
        while True:
            data = process.stdout.read(1024)
            if not data:
                break
            yield data

    response = StreamingHttpResponse(generate_stream(), content_type="video/mp4")
    response['Content-Disposition'] = 'attachment; filename="stream.mp4"'
    return response

except subprocess.CalledProcessError as e:
    return HttpResponse("Error: {}".format(e), status=500)


    


    But it will merge and then start downloading. I want to be at same time so that user don't have to wait until the merging process.

    


    I am using django and i am learning django