Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (26)

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

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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (5079)

  • avcodec/mfenc : expose more properties of the media foundation encoder

    28 mars 2024, par Mark Samuelson
    avcodec/mfenc : expose more properties of the media foundation encoder
    
    • [DH] libavcodec/mf_utils.h
    • [DH] libavcodec/mfenc.c
  • acces to data stream (KLV) with windows media-foundation

    20 février 2023, par hacenesh

    Is there any way to acces data stream with Windows Media Foundation ?

    


    I have a video stream that contains tree streams : Audio, video and Data stream
When I opend the file with ffmpeg I can access the three stream :

    


      

    • AVMEDIA_TYPE_AUDIO
    • 


    • AVMEDIA_TYPE_VIDEO
    • 


    • AVMEDIA_TYPE_DATA
    • 


    


    This image show more details about the data stream I wanted to retrieve.
enter image description here

    


    With windows media-foundation I can only see audio and video streams.

    


    IMFMediaSource* pVideoSource = NULL;
IMFSourceReader* pVideoReader = NULL;           
....
....
while (pVideoReader->GetStreamSelection(stmIndex, &isSelected) == S_OK) {
      printf("Stream %d is selected %d.\n", stmIndex, isSelected);

      CHECK_HR(pVideoReader->GetCurrentMediaType(stmIndex, &pStmMediaType), "Failed to get media type for selected stream.");

      std::cout << "Media type: " << GetMediaTypeDescription(pStmMediaType) << std::endl;

      GUID majorMediaType;
      pStmMediaType->GetGUID(MF_MT_MAJOR_TYPE, &majorMediaType);
      if (majorMediaType == MFMediaType_Audio) {
          std::cout << "Source audio stream index is " << stmIndex << "." << std::endl;
      }
      else if (majorMediaType == MFMediaType_Video) {
          std::cout << "Video stream index is " << stmIndex << "." << std::endl;
      }
      stmIndex++;
      SAFE_RELEASE(pStmMediaType);
  }



    


    **Output **

    


    


    Stream 0 is selected 1.
Media type : MFMediaType_Audio : MF_MT_AUDIO_AVG_BYTES_PER_SECOND=16031, MF_MT_AUDIO_BLOCK_ALIGNMENT=1, 33026EE0-E387-4582-AE0A-34A2AD3BAA18=1, MF_MT_AUDIO_NUM_CHANNELS=2, MF_MT_MAJOR_TYPE=MFMediaType_Audio, MF_MT_AUDIO_SAMPLES_PER_SECOND=48000, MF_MT_AAC_AUDIO_PROFILE_LEVEL_INDICATION=254, MF_MT_AUDIO_PREFER_WAVEFORMATEX=1, MF_MT_USER_DATA=, MF_MT_FIXED_SIZE_SAMPLES=1, MF_MT_AAC_PAYLOAD_TYPE=1, MF_MT_ALL_SAMPLES_INDEPENDENT=1, MF_MT_SAMPLE_SIZE=1, MF_MT_SUBTYPE=MFAudioFormat_AAC,
Source audio stream index is 0.
Stream 1 is selected 1.
Media type : MFMediaType_Video : MF_MT_FRAME_SIZE=W:1920 H : 1080, MF_MT_MPEG_SEQUENCE_HEADER=, MF_MT_MAJOR_TYPE=MFMediaType_Video, MF_MT_AM_FORMAT_TYPE=E06D80E3-DB46-11CF-B4D1-00805F6CBBEA, MF_MT_MPEG2_LEVEL=41, MF_MT_MPEG2_PROFILE=66, MF_MT_FIXED_SIZE_SAMPLES=1, MF_MT_FRAME_RATE=25/1, MF_MT_PIXEL_ASPECT_RATIO=1:1, MF_MT_SAMPLE_SIZE=1, MF_MT_INTERLACE_MODE=2, MF_MT_SUBTYPE=3F40F4F0-5622-4FF8-B6D8-A17A584BEE5E,
Video stream index is 1.
Source media type count : 1, is first stream selected 1.
Default output media type for source reader :
MFMediaType_Video : MF_MT_FRAME_SIZE=W:1920 H : 1080, MF_MT_MPEG_SEQUENCE_HEADER=, MF_MT_MAJOR_TYPE=MFMediaType_Video, MF_MT_AM_FORMAT_TYPE=E06D80E3-DB46-11CF-B4D1-00805F6CBBEA, MF_MT_MPEG2_LEVEL=41, MF_MT_MPEG2_PROFILE=66, MF_MT_FIXED_SIZE_SAMPLES=1, MF_MT_FRAME_RATE=25/1, MF_MT_PIXEL_ASPECT_RATIO=1:1, MF_MT_SAMPLE_SIZE=1, MF_MT_INTERLACE_MODE=2, MF_MT_SUBTYPE=3F40F4F0-5622-4FF8-B6D8-A17A584BEE5E,

    


    


    I also looked on the sample metadata. I didn't find anything.
MFSampleExtension_CaptureMetadata

    


     HRESULT hr = videoSample->GetUnknown(MFSampleExtension_CaptureMetadata, IID_IMFAttributes, (void**)&pAttributes);


    


    Result

    


    


    hr = 0xc00d36e6 : The requested attribute was not found.
access to data stream with media-foundation

    


    


  • How to add transition effects like fade in, fade out, slide in, etc, to a video [on hold]

    31 mai 2018, par Janhavi Savla

    I am trying to add crossfade effect to a series of images ina folder and then create a video but I am getting an error :’tuple’ object has no attribute ’crossfadein’.
    How should I resolve it ?
    Here’s the code :

    from moviepy.editor import *
    import os

    delay =1
    H = 720
    W = 1280
    output = "out.mp4"
    path = "/Users/test/Desktop/Image_test_data/testdata2"
    dirs = os.listdir( path )
    ext = '.jpg'
    clips=[]
    images = [img for img in os.listdir(path) if img.endswith(ext)]

    for image in images:
       img=ImageClip(path+'/'+image).set_duration(2).resize(height=H,width=W)
       clips.append(img)

    final = concatenate([clip.crossfadein(delay) for clip in enumerate(clips)],
        padding=-delay, method="compose")

    final.write_videofile(output,fps=24, audio_codec="aac")