Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (70)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (11564)

  • Big question of Target size, or video bitrate must be specified when using two-pass

    14 juillet 2022, par Rojojun

    I tried to solve the error which is Target size, or video bitrate must be specified when using two-pass.

    


    But I couldn't find how to solve it and how to find path of video exactly I attached my code below this post

    


    Please give me some tips of solving the problem !

    


    @Service
public class ThumbnailService {

    public HashMap exportThumbnail(File file) throws Exception {
        // file is from controller and form-data
        //String inputPath = "Users/hojunna/Download/my/";
        //String outputPath = "/usr/local/video/thumbnail/";

        String ffmpegBasePath = "/opt/homebrew/bin/";
        FFmpeg ffmpeg = new FFmpeg(ffmpegBasePath+"ffmpeg");        
        FFprobe ffprobe = new FFprobe(ffmpegBasePath+"ffprobe");    
        
        FFmpegBuilder builder = new FFmpegBuilder()
                .setInput("/Users/hojunna/Desktop/" + file)                         
                //.overrideOutputFiles(true)                    
                //.addExtraArgs("-ss", "00:00:01")          
                .addOutput("/Users/hojunna/Desktop/test.jpg")       
                .setFrames(1)
                .setVideoFilter("select='gte(n\\,10)',scale=200:-1")
                .done();

        FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);      
        executor.createJob(builder).run();                                  
        executor.createTwoPassJob(builder).run();                           

        HashMap resultMap = new HashMap();
        return resultMap;
    }
}


    


  • Question about coding design of interface and receivers

    14 décembre 2018, par the_real_one

    I am trying to create an interface for an FFmpeg conversion scheme where :

    • New() should return whatever implements it
    • (receiver *interface) Convert() is the only method that should be implemented and the underlying details hidden (source files from : URL, File, etc.)

    How would I accomplish the above problem and design the code in such a way that you have various New() methods returning an FFmpegConverer that enforces the implementation of the Convert() method but with the underlying details behind each New() being different ? Or is that just a bad design to begin with ?

    My code may be less relevant than my problem statement but this is what I have so far which does not pass any go sanity checks :

    // FfmpegConverter is the interface for setting the public facing local
    // video files
    type FfmpegConverter interface {
     Convert() error
    }

    // localVideo holds the file information for a downloaded video
    type localVideo struct {
     inputAudioFile * os.File
     inputVideoFile * os.File
     outputVideoFile * os.File
    }

    // New initializes a new FfmpegConverter
    func New(inputVideoFilePath string, inputAudioFilePath string, outputVideoFilePath string)(ffmpegConverter FfmpegConverter, err error) {
     ffmpegConverter = & localVideo {}

     // Set input video file
     ffmpegConverter.inputVideoFile, err = os.Open(inputVideoFilePath)
     if err != nil {
       return
     }
     if err = ffmpegConverter.inputVideoFile.Close();
     err != nil {
       return
     }

     // Set input audio file
     ffmpegConverter.inputAudioFile, err = os.Open(inputAudioFilePath)
     if err != nil {
       return
     }
     if err = ffmpegConverter.inputAudioFile.Close();
     err != nil {
       return
     }

     // Set output video file
     ffmpegConverter.outputVideoFile, err = os.Create(outputVideoFilePath)
     if err != nil {
       return
     }
     if err = ffmpegConverter.outputVideoFile.Close();
     err != nil {
       return
     }

     return
    }

    // Convert will convert the input video and input audio files to an combined
    // output video file
    func(l * localVideo) Convert()(err error) {
     // Do stuff with the internal struct
     // ...
    }
  • question regarding ffmpeg webcam stream (RTMP)

    7 janvier 2021, par J Hwang

    I am a novice if you will regarding FFMPEG.
I was tasked with creating a Windows-based C++ project that takes a live webcam stream, does the necessary decoding and encoding, and sends it via RTMP to a server.
The constraints were that the output format be "flv" due to the design of the server end and that it take both audio and video input. Quality of the stream isn't that much of an issue as long as the audio doesn't desync too much from the video.

    


    I drew on the prior works of https://github.com/leixiaohua1020 in simplest_ffmpeg_streamer and simplest_ffmpeg_device.

    


    Specifically, I tried to mesh together the logic behind the readcamera project to provide an input stream and send it to an output address using the streamer part that previously took a local flv video as input.

    


    However, I ran into some problems.

    


    First of all, I know vfwcap is very much outdated but it seems dshow has some problems with the input part as well as the output part so I'm opting for whichever works first.

    


    Second of all, I don't really understand how to set the codec for the input. The input is using rawvideo by default and I tried to add settings as shown.
pFormatCtx->video_codec_id = AV_CODEC_ID_MPEG4;
However, none of the even slightly relevant codec settings seemed to work. All showed the same error message in the vfwcap error message image below.

    


    I would very much appreciate any pointers on achieving 1. change of codec in input stage 2. fixes for the dshow case

    


    I have put the full code up on github with the appropriate mentions.
https://github.com/luorix1/ffmpeg

    


    error message_dshow

    


    error message_vfwcap