Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (63)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

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

Sur d’autres sites (8609)

  • Failed to capture a avi file using opencv

    30 avril 2017, par Wei

    I am quite new to c++ compilation. I am trying to work on a simple problem using opencv where I read a video file and display it.

    My code looks like :

    #include <opencv></opencv>cv.h>
    #include <opencv></opencv>highgui.h>
    #include "opencv2/opencv.hpp"
    #include <opencv2></opencv2>core/core.hpp>
    #include <opencv2></opencv2>highgui/highgui.hpp>


    #include
    #include

    #include <algorithm>
    #include
    #include
    #include
    #include <fstream>
    #include <iostream>
    #include <vector>
    #include <list>
    #include <string>


    using namespace cv;

    IplImage* image = 0;
    IplImage* prev_image = 0;

    int show = 1;

    int main( int argc, char** argv )
    {
       int frameNum = 0;

       char* video = argv[1];
       VideoCapture capture(video);

       if( !capture.isOpened() ) {
           printf( "Could not initialize capturing..\n" );
           return -1;
       }

       if( show == 1 )
           cvNamedWindow( "Video", 0 );

       while( true ) {
           IplImage* frame = 0;
           int i, j, c;

           // get a new frame
           //frame = cvQueryFrame( capture );
           Mat mat_img;
           capture >> mat_img;
           IplImage frame1 = mat_img.operator IplImage();
           frame = &amp;frame1;
           if( !frame )
               break;

           if( !image ) {
               image =  cvCreateImage( cvSize(frame->width,frame->height), 8, 3 );
               image->origin = frame->origin;
           }

           cvCopy( frame, image, 0 );

           if( show == 1 ) {
               cvShowImage( "Video", image);
               c = cvWaitKey(3);
               if((char)c == 27) break;
           }

           std::cerr &lt;&lt; "The " &lt;&lt; frameNum &lt;&lt; "-th frame" &lt;&lt; std::endl;
           frameNum++;
       }

       if( show == 1 )
           cvDestroyWindow("Video");

       return 0;
    }
    </string></list></vector></iostream></fstream></algorithm>

    Then I compile it like :

    g++ test.cpp -o Video -pipe -D __STDC_CONSTANT_MACROS -D STD=std -Wall -I. -I/usr/local/ -O3 -DNDEBUG -ggdb -L/usr/local/ -lopencv_core -lopencv_highgui -lopencv_video -lopencv_imgproc -lavformat -lavdevice -lavutil -lavcodec -lswscale

    Compilation works fine and no errors returned.

    However, when I was running it, I got :

    (Video:5651): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
    Could not initialize capturing..

    Some other information :
    1. I test my opencv and ffmpeg by running simple examples, which work well.
    2. I can stream frames from my camera and display it using opencv.

    Anyone has idea of what causes this ?

    Any idea is appreciated.

  • ffmpeg. I correct that to insert the logo

    12 mai 2012, par user1390921
    private void btnStart_Click(object sender, EventArgs e)
    {
    this.btnStart.Enabled = false;
    this.progressBar1.Value = 0;

    string srcFile = Path.Combine(this.txtSource.Text, this.lstFiles.SelectedItem.ToString());
    MessageBox.Show(srcFile);
    string dstFile = Path.Combine(this.txtOutput.Text,
    Path.GetFileNameWithoutExtension(this.lstFiles.SelectedItem.ToString())) + "." + this.cboOutputFormat.SelectedItem;
    MessageBox.Show(dstFile);
    string imafile = Path.Combine("movie= "+this.openFileDialog1.SafeFileName);
    MessageBox.Show(imafile);


               string videoRateOption = string.Empty;
    if (this.cboVideoRate.SelectedIndex != 0)
    {
    videoRateOption = " -b:v " + this.cboVideoRate.SelectedItem.ToString().Split(&#39; &#39;)[0] + "k ";
    MessageBox.Show(videoRateOption);
    }

    string videoSizeOption = string.Empty;
    if (this.lstVideoSize.SelectedIndex != 0)
    {
    videoSizeOption = " -s " + this.lstVideoSize.SelectedItem.ToString().Split(&#39; &#39;)[0] + " ";
    }


               this.Text = "Converting...";
    ThreadPool.QueueUserWorkItem((object state) =>
    {
    ConvertFile(srcFile, imafile, dstFile, videoRateOption, videoSizeOption);
    });
    }


    string strFFMPEGOut;
    ProcessStartInfo psiProcInfo = new ProcessStartInfo();
    TimeSpan estimatedTime = TimeSpan.MaxValue;

    StreamReader srFFMPEG;

                   string ste = ""movie=watermarklogo.png [wm];[in][wm] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]"";
    string strFFMPEGCmd = " -i "" + srcFile + "" -ar 44100 " + videoRateOption + videoSizeOption +"-vf"+ ste + "-y ""
    + dstFile + """;

    psiProcInfo.FileName = Application.StartupPath + ((IntPtr.Size == 8) ? "\x64" : "\x86") + "\ffmpeg.exe";
    psiProcInfo.Arguments = strFFMPEGCmd;
    psiProcInfo.UseShellExecute = false;
                   psiProcInfo.WindowStyle = ProcessWindowStyle.Hidden;
    psiProcInfo.UseShellExecute = false;
    psiProcInfo.RedirectStandardError = true;
    psiProcInfo.ErrorDialog = true;
    psiProcInfo.RedirectStandardOutput = true;
    psiProcInfo.CreateNoWindow = true;

    prcFFMPEG.StartInfo = psiProcInfo;

    prcFFMPEG.Start();

    There is no response that I push the start button.
    There is no response that I push the start button that I tried to fix the code that I
    inserted the logo in the movie with Ffmpeg.
    Is that be okay if I don't choose the path of logo File. and Is there any something wrong that I did.

  • Unable to find a suitable output format for "ffmpeg" [duplicate]

    25 mars 2020, par deva

    I’m trying to convert video to mp3 using ffmpeg library. when i execute the commands its fail and logs says :
    Unable to find a suitable output format for "ffmpeg".

    There is my code :

       try {

    String[] cmd = new String[]{"ffmpeg", "-i", selectedVideo.get(i),"-y", dstto};

           if (cmd.length!=0){
               fFmpeg.execute(cmd, new ExecuteBinaryResponseHandler(){

                   @Override

                   public  void onSuccess(String s){

                       Toast.makeText(getApplicationContext(),"success"+ s, Toast.LENGTH_SHORT).show();

                   }



                   @Override

                   public  void onFailure(String s){

                       Toast.makeText(getApplicationContext(),"fail"+ s, Toast.LENGTH_SHORT).show();

                       log.setText(s);

                   }

               });

           }

       } catch (FFmpegCommandAlreadyRunningException e) {

           e.printStackTrace();

       } ```