Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (76)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

Sur d’autres sites (8461)

  • Best Codec and Pixel Formats to use in FFMPEG Pipeline

    19 décembre 2022, par user20623229

    I have created an FFMPEG Pipeline to stream video frames to an RTSP server. The frames are RGB frames with 3 dimensions. My pipeline command is as follows :

    


    openPipeLine = _popen("ffmpeg -f rawvideo -r 30 -video_size 720x1280 -pixel_format bgr24 -i pipe: -vcodec libx264 -crf 24 -pix_fmt yuv420p -f rtsp rtsp://localHost:8554/mystream", "w");


    


    I can barely make out the picture when I connect to the server via VLC Media. The colors seem scrambled. I've attached a sample image and the output on the server.

    


    Are there any recommended Codec's that I can use to solve this ? Perhaps the pixel format should be changed. I'm currently using a Codec and pixel format that I found online without knowing if these are the best options.
original frame
server output

    


    Thank you very much.

    


  • FFMPEG Pipeline

    7 décembre 2022, par user20623229

    I created an FFMPEG pipeline so that I can stream video frames to an RTSP server. I created a synthetic video for testing where each frame is a green number on a black background. The video plays on my screen but it does not stream to the server because I get the error "Unable to find a suitable output format for 'rtsp ://10.0.0.6:8554/mystream"
My code is below. The source code is taken from the answer : How to stream frames from OpenCV C++ code to Video4Linux or ffmpeg ?

    


    int main() {
    int width = 720;
    int height = 1280;
    int fps = 30;

    FILE* pipeout = _popen("ffmpeg -f rawvideo -r 30 -video_size 720x1280 -pixel_format bgr24 -i pipe: -vcodec libx264 -crf 24 -pix_fmt yuv420p rtsp://10.0.0.6:8554/mystream", "w");



    for (int i = 0; i < 100; i++)
    {
        Mat frame = Mat(height, width, CV_8UC3);
        frame = Scalar(60, 60, 60); //Fill background with dark gray 
        putText(frame, to_string(i + 1), Point(width / 2 - 50 * (int)(to_string(i + 1).length()), height / 2 + 50), FONT_HERSHEY_DUPLEX, 5, Scalar(30, 255, 30), 10);  // Draw a green number

        imshow("frame", frame);
waitKey(1); 

        fwrite(frame.data, 1, width * height * 3, pipeout);
    }
    // Flush and close input and output pipes
    fflush(pipeout);

    _pclose(pipeout);   //Windows
    return 0;
}


    


    When I change -f rawvideo to -f rtsp in the FFMPEG command, I no longer get the error but the program just displays the first frame on the screen and seems to get stuck. Is there a wrong parameter in the pipeline. When I change the RTSP url to a file name such as output.mkv, it works perfectly and saves the video to the file.

    


  • Getting this error in ffmpeg pipeline : Non-monotonous DTS in output stream 0:0 ; previous : 4951970, current : 4951659 ; changing to 4951971

    6 décembre 2022, par RoshaanAli

    Error : Non-monotonous DTS in output stream 0:0 ; previous : 4951970, current : 4951659 ; changing to 4951971. This may result in incorrect timestamps in the output file.

    


    I am using AWS Chime streaming then passing there data stream to FFMPEG and then going live with that data stream using AWS IVS(Interactive video service).
I am using ffmpeg for changing aspects of video on live streaming and brightness and contrast.
But when we turn off camera and after some time reopen it we facing the above mention error.
I have read about concat but we don't have input file actually we are passing data stream is ffmpeg that's why its not working.

    


    Here is my ffmpeg command

    


    ffmpeg=ffmpeg.spawn('ffmpeg', [
            '-i', '-' ,
            // '-f', 'concat',
            // '-segment_time_metadata','1',
            // '-use_wallclock_as_timestamps', '1',
            '-c:v', 'libx264',
            '-b:v', '2567k',
            '-maxrate', '6000K',
            '-preset', 'ultrafast',
            '-profile:v', 'baseline',
            '-level', '3.0',
            // '-aspect', '9:16',
            '-force_key_frames', 'expr:gte(t,n_forced*2)',
            '-movflags', 'faststart',
            '-fflags', 'nobuffer',
            '-tune', 'zerolatency',
            '-acodec', 'aac',
            '-ab', '160k',
            '-ar', '44100',
            '-f', 'flv',
            'rtmps-url/secret-key-replaced'
        ])


    


    I have tried this command -use_wallclock_as_timestamps', '1' but it does nothing to error.