Recherche avancée

Médias (91)

Autres articles (60)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (9084)

  • ffmpeg streaming slow on android

    10 juillet 2016, par gemisoft

    I am trying to forward HLS stream http://vevoplaylist-live.hls.adaptive.level3.net/vevo/ch1/06/prog_index.m3u8 to streaming server from my Android device.

    I am using https://github.com/WritingMinds/ffmpeg-android-java library to get ffmpeg working in my Android Studio project.

    The problem is that when I stream in 720p resolution with ffmpeg from my Android phone the server income rate is max 500kbps on 4G network what is not enough for 720p streaming and also 480p.

    I tried to troubleshoot this issue by streaming from the same network but using my PC and the server stream income rate was good - around 1200kbps for 720p streaming.

    Is it possible that Android device has too slow hardware for ffmpeg ? is there a way to use mentioned library with Android hardware acceleration ? Would hardware acceleration with MediaCodec API improve streaming speed ?

    Here is log from my application :
    https://1drv.ms/t/s !AtXVGSZVYflZhFwIhg1s1jq_6e7g

    Here is CPU usage on my Android device :
    https://1drv.ms/f/s !AtXVGSZVYflZhGFT2akG2tD2uelB

    Here is CPU usage on my PC :
    https://1drv.ms/f/s !AtXVGSZVYflZhGIPSwe5GHjHWFCG

    Thanks

  • FFmpeg encode 8192x8192@60 with high quality from image sequence

    20 décembre 2017, par Daniel R.

    I am looking for the right ffmpeg config or an alternative software to encode a long sequence of images captured with 60fps and a resolution of 8192x8192 pixel.

    What i tried is to use h264 encoding, but at this high resolution it cannot be suitable since i couldnt play the encoded video.

    Using h265/HEVC i can play the video but i have nasty compression artifacts especially at the borders of the image.

    Here is the command i used with ffmpeg-3.4.1 at Windows 64-bit static Lib :

    .\ffmpeg.exe -framerate 60 -i ""E:\RenderedFrames\img%d.jpg"" -c:v libx265 -crf 28 output.mp4

    Here is the log of ffmpeg

    C:\ffmpeg-20171218-74f408c-win64-static\bin> .\ffmpeg.exe -framerate 60 -i ""D:\SansSousi\%d.jpg"" -c:v
    libx265 -crf 27 output3.mp4
    ffmpeg version git-2017-12-18-74f408c Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 7.2.0 (GCC)
    configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
    libavutil 56. 6.100 / 56. 6.100
    libavcodec 58. 8.100 / 58. 8.100
    libavformat 58. 3.100 / 58. 3.100
    libavdevice 58. 0.100 / 58. 0.100
    libavfilter 7. 7.100 / 7. 7.100
    libswscale 5. 0.101 / 5. 0.101
    libswresample 3. 0.101 / 3. 0.101
    libpostproc 55. 0.100 / 55. 0.100
    Input #0, image2, from 'D:\SansSousi\%d.jpg':
    Duration: 00:00:03.02, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 8192x8192 [SAR 1:1 DAR 1:1], 60 tbr, 60 tbn, 60 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (mjpeg (native) -> hevc (libx265))
    Press [q] to stop, [?] for help
    [swscaler @ 0000027b64c702c0] deprecated pixel format used, make sure you did set range correctly
    x265 [info]: HEVC encoder version 2.6×6b079854e56e
    x265 [info]: build info [Windows][GCC 7.2.0][64 bit] 8bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    x265 [info]: Main profile, Level-8.5 (Main tier)
    x265 [info]: Thread pool created using 16 threads
    x265 [info]: Slices : 1
    x265 [info]: frame threads / pool features : 4 / wpp(128 rows)
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
    x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
    x265 [info]: References / ref-limit cu / depth : 3 / on / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress : CRF-27.0 / 0.60
    x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
    x265 [info]: tools: lslices=8 deblock sao
    Output #0, mp4, to 'output3.mp4':
    Metadata:
    encoder : Lavf58.3.100
    Stream #0:0: Video: hevc (libx265) (hev1 / 0x31766568), yuv420p, 8192x8192 [SAR 1:1 DAR 1:1], q=2-31, 60 fps, 15360 tbn, 60 tbc
    Metadata:
    encoder : Lavc58.8.100 libx265
    frame= 33 fps=1.8 q=-0.0 size= 1024kB time=00:00:00.00 bitrate=129060923.1kbits/s speed=3.63e-006x frame= 181 fps=1.1 q=-0.0 Lsize= 8112kB time=00:00:02.96 bitrate=22398.3kbits/s speed=0.0183x
    video:8107kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.060955%
    x265 [info]: frame I: 1, Avg QP:28.18 kb/s: 528757.92
    x265 [info]: frame P: 36, Avg QP:30.76 kb/s: 36726.89
    x265 [info]: frame B: 144, Avg QP:35.78 kb/s: 14814.45
    x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
    x265 [info]: consecutive B-frames: 2.7% 0.0% 0.0% 0.0% 97.3%

    encoded 181 frames in 161.36s (1.12 fps), 22012.19 kb/s, Avg QP:34.74

    What can i do to improve the quality of the encoded video ?
    File size is secondary

  • Extremely high bit rate when encoding video with libavcodec

    10 janvier 2014, par niculare

    I am trying to capture the camera output and make a video using libavcodec. As an example on how to accomplish this i have used ffmpeg muxing example.

    The problem is that a 4 seconds video has a size of 15mb and a bitrate of 30000 kb/s, although I have set the bitrate on AVCodecContext to 400000 (I consider this value is in bits / sec, not kb/s).

    I have also tried to record the video using ffmpeg from command line and it has a bitrate of 700 kb/s.

    Does anybody have an idea why the bitrate is not preserved and thus the resulting file is very large ? The code I have used to initialize the codec context is below :

    initialization part :

    avformat_alloc_output_context2(&m_formatContext, NULL, NULL, filename);
    outputFormat = m_formatContext->oformat;

    codec = avcodec_find_encoder(outputFormat->video_codec);

    m_videoStream = avformat_new_stream(m_formatContext, codec);

    m_videoStream->id = m_formatContext->nb_streams - 1;

    codecContext = m_videoStream->codec;

    codecContext->codec_id = outputFormat->video_codec;

    codecContext->width = m_videoResolution.width();
    codecContext->height = m_videoResolution.height();

    int m_bitRate = 400000;
    codecContext->bit_rate = m_bitRate;
    codecContext->rc_min_rate = m_bitRate;
    codecContext->rc_max_rate = m_bitRate;
    codecContext->bit_rate_tolerance = 0;

    codecContext->time_base.den = 20;
    codecContext->time_base.num = 1;

    codecContext->pix_fmt = AV_PIX_FMT_YUV422P;

    if (m_formatContext->oformat->flags & AVFMT_GLOBALHEADER)
       codecContext->flags |= CODEC_FLAG_GLOBAL_HEADER;
    /* open it */
    ret = avcodec_open2(codecContext, codec, NULL);

    avFrame = avcodec_alloc_frame();

    ret = avpicture_alloc(&avPicture, codecContext->pix_fmt, codecContext->width, codecContext->height);

    *((AVPicture *)avFrame) = avPicture;

    av_dump_format(m_formatContext, 0, filename, 1);

    if (!(outputFormat->flags & AVFMT_NOFILE)) {
       ret = avio_open(&m_formatContext->pb, filename, AVIO_FLAG_WRITE);
    }

    ret = avformat_write_header(m_formatContext, NULL);

    if (avFrame)
       avFrame->pts = 0;