Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (21)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (2509)

  • ffmpeg encoding a video with time_base Not equal to framerate does not work in HML5 video players

    1er juillet 2019, par Gilgamesh22

    I have a time_base of 90000 with a frame rate of 30. I can generate a h264 video and have it work in VLC but this video does not work in the browser player. If I change the time_base to 30 It works fine.

    Note : I am changing the frame->pts appropriately to match the time_base.
    Note : Video does not have audio stream

    //header.h
    AVCodecContext *cctx;
    AVStream* stream;

    Here is the non working example code

    //source.cpp
    stream->time_base = { 1, 90000 };
    stream->r_frame_rate = { fps, 1 };
    stream->avg_frame_rate = { fps, 1 };

    cctx->codec_id = codecId;
    cctx->time_base = { 1 ,  90000 };
    cctx->framerate = { fps, 1 };

    // ......
    // add frame code later on timestamp are in millisecond
    frame->pts = (timestamp - startTimeStamp)* 90;

    Here is the working example code

    //source.cpp
    stream->time_base = { 1, fps};
    stream->r_frame_rate = { fps, 1 };
    stream->avg_frame_rate = { fps, 1 };

    cctx->codec_id = codecId;
    cctx->time_base = { 1 ,  fps};
    cctx->framerate = { fps, 1 };

    // ......
    //  add frame code timestamp are in millisecond
    frame->pts = (timestamp - startTimeStamp)/(1000/fps);

    Any ideas on why the second example works and the first does not in the HTML5 video player.

  • Fontconfig error : Cannot load default config file

    28 juin 2019, par sachin

    I am trying to add text in the video, but I am getting -

    Fontconfig error : Cannot load default config file
    [Parsed_drawtext_0 @ 0xea1aeaa0] impossible to init fontconfig

    below cmd to add text using FFmpeg lib-

    String[] cmd = new String[]
    "-i", savedVideoFilePath, "-vf", "drawtext=text="+"’"+timeStamp+"’"+" :
    fontfile=/android_asset/fonts/Poppins-Medium.ttf : fontcolor=white :
    fontsize=24 : x=(w-tw)/2 : y=(h/PHI)+th box=0 :","-codec:a" ,"copy" ,
    output_path
     ;

    log details -

    Error opening filters ! 2019-06-10 18:04:58.027
    18678-18678/com.rs.vir.debug E/FFMPEG FAilure : FAILED with output :
    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.8 (GCC)
    configuration : —target-os=linux —cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
    —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
    —enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
    -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
    -Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=
    libavutil 55. 17.103 / 55. 17.103
    libavcodec 57. 24.102 / 57. 24.102
    libavformat 57. 25.100 / 57. 25.100
    libavdevice 57. 0.101 / 57. 0.101
    libavfilter 6. 31.100 / 6. 31.100
    libswscale 4. 0.100 / 4. 0.100
    libswresample 2. 0.101 / 2. 0.101
    libpostproc 54. 0.100 / 54. 0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/data/user/0/com.rs.vir.debug/files/VIR_Customer/EVINV12207201906100303240000/Videos/sample.mp4’ :
    Metadata :
    major_brand : mp42
    minor_version : 0
    compatible_brands : isommp42
    creation_time : 2019-06-10 12:34:55
    com.android.version : 8.1.0
    Duration : 00:00:06.66, start : 0.000000, bitrate : 3724 kb/s
    Stream #0:0(eng) : Video : h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 720x480, 3464 kb/s, SAR 1:1
    DAR 3:2, 30.04 fps, 30 tbr, 90k tbn, 180k tbc (default)
    Metadata :
    rotate : 90
    creation_time : 2019-06-10 12:34:55
    handler_name : VideoHandle
    Side data :
    displaymatrix : rotation of -90.00 degrees
    Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 255 kb/s (default)
    Metadata :
    creation_time : 2019-06-10 12:34:55
    handler_name : SoundHandle
    Fontconfig error : Cannot load default config file
    [Parsed_drawtext_0 @ 0xea1aeaa0] impossible to init fontconfig
    [AVFilterGraph @ 0xea1cb040] Error initializing filter ’drawtext’ with args
    ’text=java.util.GregorianCalendar[time=1560170097814,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=libcore.util.ZoneInfo[id="Asia/Kolkata",mRawOffset=19800000,mEarliestRawOffset=19800000,mUseDst=false,mDstSavings=0,transitions=5],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2019,MONTH=5,WEEK_OF_YEAR=24,WEEK_OF_MONTH=2,DAY_OF_MONTH=10,DAY_OF_YEAR=161,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=6,HOUR_OF_DAY=18,MINUTE=4,SECOND=57,MILLISECOND=814,ZONE_OFFSET=19800000,DST_OFFSET=0] :
    fontfile=/android_asset/fonts/Poppins-Medium.ttf : fontcolor=white :
    fontsize=24 : x=(w-tw)/2 : y=(h/PHI)+th box=0 :’
    Error opening filters !

    please give me the solution for this.

  • FFMPEG RTSP issue

    18 mars 2019, par Joshua G

    So I am trying to stream an EZVIZ camera using FFMPEG. I am able to connect to the camera but when setting a duration like 5 or 10 seconds I get videos of random lengths (7, 5, 10, 30, etc). Sometimes the videos generated are black, sometimes green (though I can see the outlines of things and parts of the timestamp when it is green). I also get videos that show a length say 3 mins or so but they play ulta-fast, like a 3 min video plays in a millisecond and they are all black. Below is the log. Any help would be great !

    ./ffmpeg.exe -err_detect ignore_err -rtsp_transport tcp -i rtsp://un:pw@192.168.0.2/Streaming/channels/101 -vcodec copy -t 00:00:10 c:/Temp/vid.mp4
    ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.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-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    [h264 @ 046d7840] non-existing PPS 60 referenced
       Last message repeated 1 times
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] no frame!
    [h264 @ 046d7840] non-existing PPS 2 referenced
       Last message repeated 1 times
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] no frame!
    [h264 @ 046d7840] cabac_init_idc 5 overflow
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] no frame!
    [h264 @ 046d7840] concealing 15924 DC, 15924 AC, 15924 MV errors in P frame
    [h264 @ 046d7840] number of reference frames (0+2) exceeds max (1; probably corrupt input), discarding one
    [h264 @ 046d7840] non-existing PPS 28 referenced
       Last message repeated 1 times
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] no frame!
    [h264 @ 046d7840] non-existing PPS 7 referenced
       Last message repeated 1 times
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] no frame!
    [h264 @ 046d7840] illegal aspect ratio
    [h264 @ 046d7840] non-existing PPS 1 referenced
    [h264 @ 046d7840] illegal aspect ratio
       Last message repeated 2 times
    [h264 @ 046d7840] A non-intra slice in an IDR NAL unit.
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] no frame!
    [h264 @ 046d7840] Missing reference picture, default is 0
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] Frame num change from 3 to 413
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] non-existing PPS 1 referenced
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] non-existing PPS 23 referenced
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] slice type 32 too large at 2
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] reference count 1 overflow
    [h264 @ 046d7840] slice type 15 too large at 0
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] no frame!
    [h264 @ 046d7840] non-existing PPS 22 referenced
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] non-existing PPS 1 referenced
    [h264 @ 046d7840] decode_slice_header error
    [h264 @ 046d7840] Frame num change from 31 to 495
    [h264 @ 046d7840] decode_slice_header error
    [rtsp @ 046d4f00] decoding for stream 0 failed
    Input #0, rtsp, from 'rtsp://admin:b729sefc@192.168.0.2/Streaming/channels/101':
     Metadata:
       title           : Media Server V3.2.1
       comment         : Media Server Session Description : standard
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520 [SAR 1:1 DAR 168:95], 10 fps, 10 tbr, 90k tbn, 20 tbc
    Output #0, mp4, to 'c:/Temp/vid.mp4':
     Metadata:
       title           : Media Server V3.2.1
       comment         : Media Server Session Description : standard
       encoder         : Lavf58.12.100
       Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 2688x1520 [SAR 1:1 DAR 168:95], q=2-31, 10 fps, 10 tbr, 90k tbn, 90k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [NULL @ 046d7840] illegal reordering_of_pic_nums_idc 706.80 bitrate=1850.5kbits/s speed=5.97x
    [NULL @ 046d7840] illegal aspect ratio
    [NULL @ 046d7840] non-existing PPS 1 referenced=00:00:07.70 bitrate=2178.9kbits/s speed=4.51x
    [NULL @ 046d7840] reference count 2 overflowime=00:00:09.30 bitrate=2255.0kbits/s speed=2.74x
    [NULL @ 046d7840] non-existing PPS 1 referenced
    frame=   63 fps= 15 q=-1.0 Lsize=    2781kB time=00:00:09.90 bitrate=2301.5kbits/s speed=2.41x
    video:2780kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.054839%