Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (50)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

  • cv::VideoWriter Class Failing to Write Frames to Video File

    23 septembre 2022, par adav0033

    I am attempting to using the OpenCV VideoWriter class to save a two camera video feed to a single video file. I am using the FFMPEG API to ahcieve the desired outcome and am trying to generate an .mkv file with the Fourcc code FFV1 for lossless frame writing. Currently I am expriencing upon launching of the pipeline the file writer is creating a file in the directory specified and upon completion of the pipeline the writer is transformed into a video file .mkv however no frames are being written to said file.
My constructor :

    


    cv::VideoWriter writer(out_vid_name + ".mkv", cv::VideoWriter::fourcc('F','F','V','1'), cam_fps,frame_double_size, true);


    


    Note that cv::Size(3840,1080) = frame_double_size and cam_fps is a param

    


    My video capture :

    


    cv::VideoCapture cap(out_vid_name + ".mkv", cv::CAP_FFMPEG);


    


    and my writer :

    


    while (controller->running && ros::ok()) //Shutdown race condition exists. One thread will have to be SIGTERM'ed
        {
            std::shared_lock guard(doubleSaveFrame->mtx);
            doubleSaveFrame->cond_var.wait(guard, [&]{ return doubleSaveFrame->cond_bool_save; });
            doubleSaveFrame->cond_bool_save = false;
            std_msgs::String msg;
            msg.data = std::to_string(frame_count);
            frame_count++;
            frame_pub.publish(msg);

            writer.write(doubleSaveFrame->getHost());
            cv::Mat frame = doubleSaveFrame->getHost();
            int rows = frame.rows;
            int cols = frame.cols;
            std::cout << "rows: " << std::to_string(rows) << " cols: "<< std::to_string(cols) << std::endl;
            cv::imwrite("home/Documents/camera/imwritefun"+ std::to_string(frame_count) +".JPG", doubleSaveFrame->getHost());
        }
        writer.release();


    


    Note that this code above produced successfully the camera frames to file when cv::imwrite was executed, however the the writer failed to write to video file. I am very new to OpenCV and the associated methods used here, if anyone has an idea on what is causing the issue that would be extremely helpful as research has not prevailed a solution.

    


  • Function calling using class() not working when used to add video files with mkvmerge, FFmpeg

    7 septembre 2022, par jiraiya_sensei
    import subprocess
filename = input('file name: ')
track1 = input('file name: ')
track2 = input('file name: ')
outputfile = input('file name: ')


class trial:

    #constructor of trial class
    def __init__(self):
        self.filename =filename
        self.track1 =track1
        self.track2 =track2
        self.outputfile =outputfile

    def mkvmerge(self):
        self.commandlist = [
            "mkvmerge",
            "-o",
            self.outputfile,
            self.track1,
            self.track2,
            self.filename

            ]
        return

    def runmkvmerge(self):
        self.mkvmerge()
        print(self.commandlist)

object = trial()
object.runmkvmerge()


    


    //I learned about the init and class() so I used that to write this code but although it shows no error the script does not work. I am trying to add audio files to a video file using mkvmerge and the command is very simple but strangely it does not work//

    


  • lavu/class : improve AVClass doxy

    28 septembre 2024, par Anton Khirnov
    lavu/class : improve AVClass doxy
    
    • [DH] libavutil/log.h