Recherche avancée

Médias (0)

Mot : - Tags -/logo

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (58)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (9194)

  • In using FFmpeg SDK, the mp4 file encoded with HEVC(x265) codec not playing in general player

    26 octobre 2016, par Wiktor Kostus

    Everyone !

    I am going to encode mp4 file (x264 codec) to HEVC(x265) codec using FFmpeg SDK.
    Also, I am going to write the encoded file into .mp4 file container.

    The problem I am facing is that the encoded file is played well in FFplay and VLC player but it isn’t played in general HEVC player.

    I used the general method to encode the codec in FFmpeg SDK. I think I have a mistake to use the avformat_write_header() function. It seems that some parameters to pass AVFormatContext, AVOutputFormat or AVCodecContext for HEVC codec are missing.

    Finally, I would like to know the way to write the HEVC codec into mp4 container. I also would like to know the right parameters related to Context instances for HEVC codec.

    Below is my tiny demo code. (I have skipped the code related to InputStream since I think I have a mistake in OutputStream)

    AVFormatContext* pFormatCtx;
    AVOutputFormat* fmt;
    AVStream* video_st;
    AVCodecContext* pCodecCtx;

    const char* out_file = "output.mp4";

    pFormatCtx = avformat_alloc_context();
    fmt = av_guess_format(NULL, out_file, NULL);
    pFormatCtx->oformat = fmt;

    if (avio_open(&pFormatCtx->pb, out_file, AVIO_FLAG_READ_WRITE) < 0){
       printf("Failed to open output file! \n");
       return -1;
    }

    video_st = avformat_new_stream(pFormatCtx, 0);
    video_st->time_base.num = 1;
    video_st->time_base.den = 25;  

    if (video_st==NULL){
       return -1;
    }
    //Param that must set
    pCodecCtx = video_st->codec;
    pCodecCtx->codec_id =AV_CODEC_ID_HEVC;
    pCodecCtx->codec_id = fmt->video_codec;
    pCodecCtx->codec_type = AVMEDIA_TYPE_VIDEO;
    pCodecCtx->pix_fmt = PIX_FMT_YUV420P;
    pCodecCtx->width = in_w;  
    pCodecCtx->height = in_h;
    pCodecCtx->time_base.num = 1;  
    pCodecCtx->time_base.den = 25;  
    pCodecCtx->bit_rate = 400000;  
    pCodecCtx->gop_size=250;
    pCodecCtx->qmin = 10;
    pCodecCtx->qmax = 51;
    pCodecCtx->max_b_frames = 1;

    // Set Option
    AVDictionary *param = 0;
    av_dict_set(&param, "preset", "ultrafast", 0);
    av_dict_set(&param, "tune", "zero-latency", 0);
    av_dict_set(&param, "x265-params", "crf=25", 0);

    pCodec = avcodec_find_encoder(pCodecCtx->codec_id);
    if (!pCodec){
       printf("Can not find encoder! \n");
       return -1;
    }
    if (avcodec_open2(pCodecCtx, pCodec,&param) < 0){
       printf("Failed to open encoder! \n");
       return -1;
    }

    //Write File Header
    avformat_write_header(pFormatCtx, NULL); <------ I think it takes any error in here.

    Help me what I am doing wrong.

    Thank you for your consider.

  • Revision b62ddd5f8b : General code cleanup. Switching from mi_{width, height}_log2 and b_{width, heig

    28 août 2013, par Dmitry Kovalev

    Changed Paths :
     Modify /vp9/decoder/vp9_decodframe.c


     Modify /vp9/encoder/vp9_bitstream.c


     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_rdopt.c



    General code cleanup.

    Switching from mi_width, height_log2 and b_width, height_log2 to
    num_8x8_blocks_wide, high and num_4x4_blocks_wide, high. Removing
    redundant code, adding const.

    Change-Id : Iaab2207590fd24d0b76999071778d1395dc5cd5d

  • ffmpeg : how to extract 1st video, english audio and french subtitle from video file in one command line ?

    15 mai 2020, par Sxilderik

    I have read many posts related to extracting streams per language with ffmpeg, but it seems that the -map 0:m:language:xxx is global, and goes for all streams.

    



    Let’s say I have a video file that contains hopefully one english audio stream and some french subtitle streams, among possibly many other streams. I want to get a smaller file with the first video track, the (first) english audio stream and all the french subtitle streams.

    



    If I run

    



    ffmpeg -i "$file" -map 0:v:0 -vcodec copy -map 0:m:language:eng -acodec copy -map 0:m:language:fre -scodec copy -f matroska "${file%.*}.mkv_out"


    



    I get in file.mkv_out all audio and subtitle tracks which are either french or english.

    



    Is there a way to achieve this, without having any prior knowledge of track numbers in the original file ?

    



    Thanks.