Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (74)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • 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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (12124)

  • Rawvideo to mp4 container

    21 février 2020, par Expressingx

    How can I stream rawvideo codec to mp4 container ? The error is Could not find tag for codec rawvideo in stream #0, codec not currently supported in container. Url is for example video=Logitech HD Webcam C270 and Format is dshow. Filename is lets say out.mp4

    AVFormatContext* pInputFmtCtx = avformat_alloc_context();
    AVInputFormat* inputFormat = av_find_input_format(Format);

    avformat_open_input(&pInputFmtCtx, url, inputFormat, null);
    if (avformat_find_stream_info(pInputFmtCtx, null) != -1)
      ... find stream index

    AVCodec* videoDecoder = avcodec_find_decoder(pInputFmtCtx->streams[_vidStreamIndex]->codecpar->codec_id);

    AVCodecContext* videcCodecCtx = avcodec_alloc_context3(videoDecoder);
    avcodec_parameters_to_context(videcCodecCtx, videoCodecParams);

    avcodec_open2(videcCodecCtx, videoDecoder, null);

    // and the output context
    AVFormatContext* pOutputFmtCtx = null;
    avformat_alloc_output_context2(&pOutputFmtCtx, null, null, fileName);

    // iterate over streams of input context and when we find it
    AVStream* in_stream = pInputFmtCtx->streams[i];
    AVCodecParameters* in_codecpar = in_stream->codecpar;

    AVStream* out_stream = avformat_new_stream(pOutputFmtCtx, null);

    // init h264 encoder
    AVCodec* videoEncoder = ffmpeg.avcodec_find_encoder(AVCodecID.AV_CODEC_ID_H264);
    pVideoEncoderCodecContext = ffmpeg.avcodec_alloc_context3(videoEncoder);

    pVideoEncoderCodecContext->time_base = videcCodecCtx->time_base;
    pVideoEncoderCodecContext->framerate = videcCodecCtx->framerate;
    pVideoEncoderCodecContext->width = videcCodecCtx->width;
    pVideoEncoderCodecContext->height = videcCodecCtx->height;
    pVideoEncoderCodecContext->bit_rate = videcCodecCtx->bit_rate;
    pVideoEncoderCodecContext->gop_size = videcCodecCtx->gop_size;
    pVideoEncoderCodecContext->pix_fmt = AVPixelFormat.AV_PIX_FMT_YUV420P;
    pVideoEncoderCodecContext->flags |= ffmpeg.AV_CODEC_FLAG_GLOBAL_HEADER;

    // copy parameters to outstream codec
    avcodec_parameters_copy(out_stream->codecpar, in_codecpar);

    ....

    // after that
    avio_open(&pOutputFmtCtx->pb, fileName, AVIO_FLAG_WRITE);
    avformat_write_header(pOutputFmtCtx, &opts);

    // and reading
    while (av_read_frame(pInputFormatContext, pkt) >= 0)

    // decode
    avcodec_send_packet(videcCodecCtx, pkt);
    //receive the raw frame from the decoder
    avcodec_receive_frame(videcCodecCtx, frame);

    // now encode if its video packet
    int ret = avcodec_send_frame(pVideoEncoderCodecContext, frame);
    if (ret < 0)
    {
       continue;
    }

    while (ret >= 0)
    {
       ret = avcodec_receive_packet(pVideoEncoderCodecContext, packet);

       if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
       {
              return;
       }

       av_packet_rescale_ts(packet, pVideoEncoderCodecContext->time_base, pOutputFmtCtx->streams[packet->stream_index]->time_base);
       av_interleaved_write_frame(pOutputFmtCtx, pkt);

       av_packet_unref(packet);
    }

    This works fine if the camera streams H264, but if the camera streams rawvideo, it doesn’t stream to the file and throws error.

    EDIT As suggested I’m trying to encode it now, but avcodec_send_frame() returns -22 and nothing is saved to the file. Where do I miss ? Code edited.

  • parser not found for codec wmav2

    5 décembre 2011, par HashCoder

    I am getting a warning when I run the below command.

    Warning : [asf @ 01C787A0] parser not found for codec wmav2, packets or times may be inval
    id.

    I am using the latest ffmpeg.exe, did I miss any parameters. Any suggestions please.

    ffmpeg -i Assets\Logitech_webcam_on_PC.wmv -sameq -f swf -y -an -s 640x360 MySlide.swf
    ffmpeg version N-35295-gb55dd10, Copyright (c) 2000-2011 the FFmpeg developers
     built on Nov 30 2011 00:52:52 with gcc 4.6.2
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
    ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
    ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
    able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
    -enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
    c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
    libxvid --enable-zlib
     libavutil    51. 29. 1 / 51. 29. 1
     libavcodec   53. 39. 1 / 53. 39. 1
     libavformat  53. 22. 0 / 53. 22. 0
     libavdevice  53.  4. 0 / 53.  4. 0
     libavfilter   2. 50. 0 /  2. 50. 0
     libswscale    2.  1. 0 /  2.  1. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    [asf @ 01C787A0] parser not found for codec wmav2, packets or times may be inval
    id.

    Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000
    /1) -> 0.08 (1/12)
    Input #0, asf, from 'Assets\Logitech_webcam_on_PC.wmv':
     Metadata:
       WMFSDKVersion   : 11.0.5721.5265
       WMFSDKNeeded    : 0.0.0.0000
       IsVBR           : 1
       VBR Peak        : 50500.0000
       Buffer Average  : 66550.0000
     Duration: 00:00:36.22, start: 0.000000, bitrate: 497 kb/s
       Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 32000 Hz, 1 channels,
    s16, 20 kb/s
       Stream #0:1(eng): Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 320x180, 422 kb/
    s, 0.08 tbr, 1k tbn, 1k tbc
    [buffer @ 02AA9760] w:320 h:180 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
    [scale @ 02AA9A80] w:320 h:180 fmt:yuv420p -> w:640 h:360 fmt:yuv420p flags:0x4
    Output #0, swf, to 'MySlide.swf':
     Metadata:
       WMFSDKVersion   : 11.0.5721.5265
       WMFSDKNeeded    : 0.0.0.0000
       IsVBR           : 1
       VBR Peak        : 50500.0000
       Buffer Average  : 66550.0000
       encoder         : Lavf53.22.0
       Stream #0:0(eng): Video: flv1, yuv420p, 640x360, q=2-31, 200 kb/s, 90k tbn,
    0.08 tbc
    Stream mapping:
     Stream #0:1 -> #0:0 (wmv2 -> flv)
    Press [q] to stop, [?] for help
    frame=    4 fps=  0 q=0.0 size=      97kB time=00:00:48.00 bitrate=  16.6kbits/s
    frame=    5 fps=  0 q=0.0 Lsize=     111kB time=00:01:00.00 bitrate=  15.2kbits/
    s dup=0 drop=599
    video:111kB audio:0kB global headers:0kB muxing overhead 0.128646%
  • Processing 3.0 get Error=2 No such file or directory

    29 octobre 2016, par Tuang Pingfavilunda

    I cannot figure it out what happen to my Processing file. I am trying to use VideoExport library and my Macbook Pro cannot play it, but the Mac-mini is able to do so.

    Before the error happened it is another error=13 permission denied thing, so I messed in the terminal for a while with chmod 777 and finding the file with ls. I don’t know if that may be the reason that caused this happen. FYI, I also installed ffmpeg already.

    And this is the full error :

       java.io.IOException: Cannot run program "/Users/Tuang/Desktop/DMA_WORKS/Work1_Facial Muscles/Cam_Rec/sketch_161027a/sketch_161027a.pde": error=2, No such file or directory
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
       at com.hamoid.VideoExport.startFfmpeg(Unknown Source)
       at com.hamoid.VideoExport.initialize(Unknown Source)
       at com.hamoid.VideoExport.saveFrame(Unknown Source)
       at Basic.draw(Basic.java:32)
       at processing.core.PApplet.handleDraw(PApplet.java:2412)
       at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1540)
       at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)
    Caused by: java.io.IOException: error=2, No such file or directory
       at java.lang.UNIXProcess.forkAndExec(Native Method)
       at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
       at java.lang.ProcessImpl.start(ProcessImpl.java:134)
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
       ... 7 more
    VideoExport error: Ffmpeg failed. Study /Users/Tuang/Desktop/DMA_WORKS/Work1_Facial_Muscles/Camera_Recorder/Basic/basic.mp4.txt for more details.
    Could not run the sketch (Target VM failed to initialize).
    For more information, read revisions.txt and Help → Troubleshooting.
    </init>

    1) The java.io.IOException : trying to call "/Work1_Facial Muscles/Cam_Rec/sketch_161027a/sketch_161027a.pde" which doesn’t exist for real. It is gone for a long time but seems like the program stuck here.

    2) "basic" is a file name from the Example of the Library. I just use it to test. Surprisingly, Every files that have been saved and changed the name still get the java.io.IOException’s error of the missing sketch_161027a.pde file.


    What I have done :
    1 I have already done the Homebrew thing to install ffmpeg.
    2 I deleted everything of Processing and reinstall it again.

    Any suggestion ?