Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (27)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

Sur d’autres sites (7282)

  • extracting single frame from MediaElemet or FFmpegInterop

    13 janvier 2016, par Jakub Wisniewski

    I am writing app (Windows Phone 8.1 Store App) that allows user to connect to IP Camera. I am using FFmpeg Interop library for ffmpeg which allows me to play eg. rtsp streams in media element. I need now a way to somehow extract a single frame from stream or from media element.

    I have tested other application wchih allows connecting to IP cameras - IP Centcom, and they have working snapshots only for mjpeg streams as far as I now (they were not working for rtsp). Becouse of that I belive that it is impossible or at very least very hard to export frame from media element.

    I have different question - if anyone has ever used FFmpeg Interop and would like to help/explain me how could I modify/extend FFmpegInteropMSS to add method called ’GetThumbnailForStream’ that would work similary to ’GetMediaStreamSource’ but would return single frame (bitmap or jpg) instead of MediaStreamSource ?

    Every help would be appreciated

    EDIT :

    I have found something ;

    in MediaSampleProvider in method WriteAVPacketToStream (line 123) there is line

    auto aBuffer = ref new Platform::Array(avPacket->data, avPacket->size);

    and I belive that this is the place that stores single frame data that is needed to convert into bitmap - now since I do not know c++ too much I have a question : how can I convert it into a form that I could return via public method ?

    When returning :

    Platform::Array^

    I get

    ’FFmpegInterop::MediaSampleProvider’ : a non-value type cannot have any public data members

    EDIT2 :

    Ok I am doing approprate projection to byte according to this microsoft information, now I need to check if this is correct data.

  • Pulseaudio record multiple xfbv screens with python

    10 octobre 2020, par Eric Lagarda

    I’m trying to do something complicated and I need some help.

    


    I’m able to record a session (video and audio) with python using xvfb and ffmpeg.

    


    I just want to visit a page using selenium and record the video and audio. It’s working but when I try to run multiple instances, the audio is mixing between records.

    


    How can achieve that ? I’m using pulseaudio. I know that with alsa you can set like a interface per instance, but I don’t know how to do it.

    


    Thanks for you support and comments.

    


  • Custom video cropping using ffmpeg

    5 octobre 2019, par Priyanka

    I’m using the writingminds ffmpeg library for cropping the video and getting the height, width ,x and y coordinates via a custom selector.
    I’m using the following code for cropping :

    String[] cmd = {"-i", path, "-filter:v", "crop=" + valuewidth + ":" +
    valueheight + ":" + valuex + ":" + valuey, "-c:a", "copy", videoPath};
    execFFmpegBinary(cmd);

    On debugging, I’m getting this log :

    03-29 11:15:36.069 198-9920/? I/OMXCodec: [OMX.qcom.video.decoder.avc] Crop
    rect is 368 x 272 @ (0, 0)
    03-29 11:15:36.209 198-684/? E/MediaPlayerService: WFD client is not created
    03-29 11:15:36.229 198-9925/? I/OMXCodec: [OMX.qcom.video.decoder.avc] Crop
    rect is 368 x 272 @ (0, 0)
    03-29 11:15:36.359 15596-15596/zoptal.com.appegovidexample
    D/CropperActivity: ffmpeg : correct Loaded
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
    '/storage/emulated/0/WhatsApp/Media/WhatsApp Animated Gifs/VID-20170318-
    WA0000.mp4':

    Metadata:

    major_brand     : mp42

    minor_version   : 1

    compatible_brands: mp41mp42isom

    creation_time   : 2017-03-10 14:32:13

    Duration: 00:00:05.00, start: 0.080000, bitrate: 206 kb/s

     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,  
     /smpte170m/bt709), 368x272, 203 kb/s, 14 fps, 100 tbr, 600 tbn, 1200 tbc
     (default)

     Metadata:

    creation_time   : 2017-03-10 14:32:13

    handler_name    : Core Media Video

    [Parsed_crop_0 @ 0x41e47550] Invalid too big or non positive size for width
    '630' or height '592'

    [Parsed_crop_0 @ 0x41e47550] Failed to configure input pad on Parsed_crop_0

    Error opening filters!
    03-29 11:17:32.253 15596-15596/zoptal.com.appegovidexample
     D/CropperActivity: Finished command : ffmpeg [Ljava.lang.String;@427f0d48
     03-29 11:17:32.273 15596-15596/zoptal.com.appegovidexample E/MediaPlayer:
     Unable to create media player

    EDIT :
    I tried scaling the video by adding"scale=1280:720" to the command(as default crop rect based on video was 368 x 272 @ (0, 0)).Now, I’m getting this error :

    Metadata:

    creation_time   : 2017-03-10 14:32:13

    handler_name    : Core Media Video

    [NULL @ 0x41b65c80] Unable to find a suitable output format for
    'crop=692:745:115:115'

    crop=692:745:115:115: Invalid argument

    EDIT : I solved it in the following way :

           float[]ghi=  cropImageView.getCropPoints();
           int a= Math.round(ghi[0]);
           int b= Math.round(ghi[1]);
           int c= Math.round(ghi[2]);
           int d= Math.round(ghi[3]);
           String[] cmde = {"-i", path ,"-filter:v", "crop=" + 240 + ":" +
           220 + ":" + a + ":" + b, "-c:a", "copy", videoPath};
           execFFmpegBinary(cmde);