Recherche avancée

Médias (5)

Mot : - Tags -/open film making

Autres articles (62)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (8830)

  • What is the right way to clean memory in ffmpeg ?

    27 mars 2018, par hagor

    Hi i have a class with these fields :

    bool m_initializedAndRegistered = false;
       std::atomic <bool> m_recievingFrames = false;
       int m_init_frames = 10000;
       int m_capacity = 10;
       std::thread readingThread;
       std::string m_streamAdress;
       SwsContext *m_img_convert_ctx_ptr = NULL;
       AVFormatContext *m_format_ctx_ptr = NULL;
       AVFormatContext *m_output_ctx_ptr = NULL;
       AVCodecContext *m_codec_ctx_ptr= NULL;// = NULL;
       AVPacket m_packet;
       AVStream *m_stream_ptr = NULL;
       AVCodec *m_codec_ptr = NULL;
       AVFrame *m_picture_ptr = NULL;
       AVFrame *m_picture_rgb_ptr = NULL;
       int m_video_stream_index = -1;
       uint8_t *m_picture_buffer_ptr = NULL;
       uint8_t *m_picture_buffer_2_ptr = NULL;
       circ_buffer m_imageBuffer;
    </bool>

    is it a correct way to clean all memory or do I forget to clean something ?
    It seems that I have 0.2 MB memory leak when I do this :

    m_recievingFrames = false;
    readingThread.join();
    readingThread.~thread();

    while (m_imageBuffer.size() > 0)
    {
       m_imageBuffer.receive().release();
    }
    av_packet_unref(&amp;m_packet);

    av_frame_free(&amp;m_picture_ptr);

    av_frame_free(&amp;m_picture_rgb_ptr);

    av_read_pause(m_format_ctx_ptr);
    avio_close(m_output_ctx_ptr->pb);
    avio_close(m_format_ctx_ptr->pb);

    avformat_close_input(&amp;m_format_ctx_ptr);
    avformat_close_input(&amp;m_output_ctx_ptr);
    avformat_free_context(m_output_ctx_ptr);
    avformat_free_context(m_format_ctx_ptr);

    m_video_stream_index = -1;
    av_free(m_picture_buffer_ptr);
    av_free(m_picture_buffer_2_ptr);

    avcodec_free_context(&amp;m_codec_ctx_ptr);

    av_free(m_stream_ptr);
    sws_freeContext(m_img_convert_ctx_ptr);

    I used malloc in m_picture_buffer_ptr allocation, but I cant free() it, because I get a heap exception. Do I need manually clean all Info for streams as it is suggested here ?

    My work is based on this old ffmpeg streamer.
    I don’t do av_register_all() and avformat_network_init() on every streamer restart.
    What is a good way (tool) to find memory leaks ?

  • Manually Adding h265 codec support to FFMPEG v1.0.10

    11 mars 2018, par Joe90210

    I have looked everywhere and I can’t seem to find a solution. I am using Debian 7 wheezy, I have managed to get as far as having the following version installed.

    ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers

    built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5)

    But as you will see below there is no H265 support which is making for a real headache trying to convert iOS MOV files to MP4. Has anybody had any luck with this ordeal ? I’ve looked through stackoverflow for 3 hours and see nothing even close here.

    ffmpeg -codecs | grep h26
    DEV.L. h261                 H.261
    DEV.L. h263                 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263
    version 2
    D.V.L. h263i                Intel H.263
    DEV.L. h263p                H.263+ / H.263-1998 / H.263 version 2
    DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_crystalhd h264_vdpau ) (encoders: libx264 libx264rgb )

    Using a different software version at this time is not an option, I am aware of how lacking the packages can be with Debian.

    Thank you

  • Recursively convert files in nested folders

    25 avril 2017, par E.Owen

    I wanted to just comment on an answer to a question very similar to this but I don’t have enough rep. I’m looking for a way to change this line of code :

    for i in *.mkv; do ffmpeg -i "$i" "${i%.*}.mp4"; done

    So that it includes .avi files and so that it can search through nested folders. I want to be able to target /Videos and have the script automatically traverse through the folder tree into /Videos/2016/January, convert all of the video files contained within that folder, then do the same for /Videos/2016/February and so on.

    Thanks in advance.

    (credit for above line of code goes to LordNeckBeard, from this post.)