Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (52)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6412)

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

  • 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 &#39;Assets\Logitech_webcam_on_PC.wmv&#39;:
     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 &#39;MySlide.swf&#39;:
     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%
  • 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(&amp;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(&amp;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(&amp;pOutputFmtCtx->pb, fileName, AVIO_FLAG_WRITE);
    avformat_write_header(pOutputFmtCtx, &amp;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 &lt; 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.