Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (47)

  • 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

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8838)

  • When converting video through ffmepg show error

    9 septembre 2019, par Krunal

    I am trying to convert video through ffmepg but its show this error
    "Error initializing output stream 1:0 — Error while opening encoder for output stream #1:0 - maybe incorrect parameters such as bit_rate, rate, width or height".
    Its working fine on my system but facing the issue on server.

    Metadata:
           major_brand     : qt
           minor_version   : 0
           compatible_brands: qt
           encoder         : Lavf58.20.100
           Stream #0:0(eng): Video: h264 (libx264), yuv420p, 426x240, q=-1--1, 400 kb/s, 23.98 fps, 90k tbn, 23.98 tbc (default)
           Metadata:
             creation_time   : 2019-07-15T08:22:53.000000Z
             handler_name    : Core Media Video
             encoder         : Lavc58.35.100 libx264
           Side data:
             cpb: bitrate max/min/avg: 428000/0/400000 buffer size: 600000 vbv_delay: -1
           Stream #0:1(und): Audio: aac (LC), 48000 Hz, stereo, fltp, 64 kb/s (default)
           Metadata:
             creation_time   : 2019-07-15T08:22:53.000000Z
             handler_name    : Core Media Audio
             encoder         : Lavc58.35.100 aac
       [libx264 @ 0x6501780] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
       Error initializing output stream 1:0 -- Error while opening encoder for output stream #1:0 - maybe incorrect parameters such as bit_rate, rate, width or heigh
  • FFMPEG, the penultimate image from the .txt file doesn't show in the video

    25 octobre 2019, par ArmKh

    I’m trying to create a video from the images using ffmeg. Actually, the creating of the video works but there is a small problem. I have a text file with the names of the images (paths) which I’m using in the video. The file looks like this

    file 'image1.jpg'
    file 'image2.jpg'
    file 'image3.jpg'
    file 'image4.jpg'
    file 'image5.jpg'

    And the ffmeg command is following

    ffmpeg -y -r 1/5 -f concat -safe 0 -i imagenames.txt -i some_audio.mp3 -c:v libx264 -vf fps=30 -pix_fmt yuv420p -t 30 output.mp4

    This video should keep the frame on every image for 5 seconds. But the problem is the penultimate image ( image4 in this case ) is not being shown in the video. So, it keeps on image3 10 seconds and moves to image5

    So, the video in seconds looks like this

    [image1] -> [image2] -> [image3] -> [image4] -> [image5]
      5sec        5sec       10sec        0sec        5sec

    And the problem is not with the image4 exactly. In case of swapping image3 and image4, the video will skip image3

    [image1] -> [image2] -> [image4] -> [image3] -> [image5]
      5sec        5sec       10sec        0sec        5sec

    Hope you’ll have any suggestions to fix this issue

  • ffmpeg libfdk-aac open coder error and show The encoder timebase is not set

    28 octobre 2019, par RodSteward

    I try to encode some pcm data,and I compile ffmpeg for myself with libfdk-aac,but When I use a aac encoder,It shows timebase is not set,but aac data seems not need a timebase,and even I set the timebase,it shows the same error again

    here is the Initializationcode :

       AVCodec *pCodec;
       AVCodecContext *pCodecCtx = NULL;
       int i, ret, got_output;
       FILE *fp_in;
       FILE *fp_out;

       AVFrame *pFrame;
       uint8_t* frame_buf;
       int size = 0;

       AVPacket pkt;
       int y_size;
       int framecnt = 0;

       char filename_in[] = "tdjm.pcm";

       AVCodecID codec_id = AV_CODEC_ID_AAC;
       char filename_out[] = "tdjm.aac";

       int framenum = 1000;

       avcodec_register_all();

       pCodec = avcodec_find_encoder_by_name("libfdk_aac");
       if (!pCodec) {
           printf("Codec not found\n");
           return -1;
       }
       pCodecCtx = avcodec_alloc_context3(pCodec);
       if (!pCodecCtx) {
           printf("Could not allocate video codec context\n");
           return -1;
       }

       //pCodecCtx->codec_id = codec_id;
       pCodecCtx->codec_type = AVMEDIA_TYPE_AUDIO;
       pCodecCtx->sample_fmt = AV_SAMPLE_FMT_S16;
       pCodecCtx->sample_rate = 44100;
       pCodecCtx->channel_layout = AV_CH_LAYOUT_STEREO;
       pCodecCtx->channels = av_get_channel_layout_nb_channels(pCodecCtx->channel_layout);
       pCodecCtx->bit_rate = 64000;
       pCodecCtx->time_base = AVRational{1,10};

       if (avcodec_open2(pCodecCtx, pCodec, NULL) < 0) {
           printf("Could not open codec\n");
           return -1;
       }