Get mediafiles of asset.

22Aug2011

Retrieve a detailed list of the mediafiles of an asset.

Request URL

/asset/$asset_id/mediafile [GET]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
asset_id (ALPHA_NUM)The ID of the mediafile to retrieve.Required-
is_oai (BOOL)Include extra information required for OAI output.OptionalFALSE-
is_still (BOOL)Include the stills in the output.OptionalFALSE-
mediamosa_version (MEDIAMOSA_VERSION)Provide the version to get the REST call returned in the format of the specified MediaMosa version. Keep empty or skip to retrieve in current (latest) version. Provide '2' to retrieve the REST call in 2.x format. Or be more specific by providing up to 3 digits; '2.3.0'. This setting will override any setting used by client application or the default setting in MediaMosa.Optional-
tag (STRING)Search on tag.Optional-

Example Request

asset/F2J4KfIVAiwicAygMfXpPUuT/mediafile

Example Response

<items>
  <item id="1">
    <mediafile_id>1zVCthfDab50KwdksbsqGJU7</mediafile_id>
    <asset_id>F2J4KfIVAiwicAygMfXpPUuT</asset_id>
    <mediafile_id_source>mHFdpBJz9dTK911fRpI14MKK</mediafile_id_source>
    <tag></tag>
    <app_id>5</app_id>
    <owner_id>SURFNET.michiel</owner_id>
    <group_id></group_id>
    <is_original_file>FALSE</is_original_file>
    <is_downloadable>FALSE</is_downloadable>
    <is_streamable>FALSE</is_streamable>
    <is_still>FALSE</is_still>
    <filename>Introduction.flv</filename>
    <uri></uri>
    <transcode_profile_id>13</transcode_profile_id>
    <tool>ffmpeg</tool>
    <command>videobitrate:200000;fps:15;size:352x288;videocodec:flv;audiocodec:libmp3lame;audiobitrate:40000;audiosamplingrate:22050;maintain_aspect_ratio:yes;padding:no</command>
    <file_extension>flv</file_extension>
    <is_protected>DOMAIN_REALM</is_protected>
    <created>2009-06-17 18:04:17</created>
    <changed>2009-09-21 13:03:04</changed>
    <transcode_inherits_acl>FALSE</transcode_inherits_acl>
    <metadata>
      <video_codec>flv</video_codec>
      <colorspace>yuv420p</colorspace>
      <width>352</width>
      <height>288</height>
      <fps>15.00</fps>
      <audio_codec>mp3</audio_codec>
      <sample_rate>22050</sample_rate>
      <channels>stereo</channels>
      <file_duration>00:00:20.4</file_duration>
      <container_type>flv</container_type>
      <bitrate>40</bitrate>
      <bpp>0.03</bpp>
      <filesize>491381</filesize>
      <mime_type>video/x-flv</mime_type>
      <created>2009-06-17 18:04:48</created>
      <changed>2009-11-10 17:02:37</changed>
      <is_hinted>FALSE</is_hinted>
      <is_inserted_md>TRUE</is_inserted_md>
    </metadata>
    <ega_download_url></ega_download_url>
    <ega_stream_url>http://www.20.test.surfmedia.nl/app/video/F2J4KfIVAiwicAygMfXpPUuT/play?format_id=1zVCthfDab50KwdksbsqGJU7</ega_stream_url>
    <ega_play_url>http://www.20.test.surfmedia.nl/app/video/F2J4KfIVAiwicAygMfXpPUuT/play?format_id=1zVCthfDab50KwdksbsqGJU7</ega_play_url>
  </item>
  <item id="2">
    <mediafile_id>mHFdpBJz9dTK911fRpI14MKK</mediafile_id>
    <asset_id>F2J4KfIVAiwicAygMfXpPUuT</asset_id>
    <mediafile_id_source></mediafile_id_source>
    <tag></tag>
    <app_id>5</app_id>
    <owner_id>SURFNET.michiel</owner_id>
    <group_id>default</group_id>
    <is_original_file>TRUE</is_original_file>
    <is_downloadable>FALSE</is_downloadable>
    <is_streamable>FALSE</is_streamable>
    <is_still>FALSE</is_still>
    <filename>Introduction.mov</filename>
    <uri></uri>
    <transcode_profile_id></transcode_profile_id>
    <tool></tool>
    <command></command>
    <file_extension></file_extension>
    <is_protected>DOMAIN_REALM</is_protected>
    <created>2009-06-17 17:51:58</created>
    <changed>2009-09-21 13:03:04</changed>
    <transcode_inherits_acl>TRUE</transcode_inherits_acl>
    <metadata>
      <video_codec>qtrle</video_codec>
      <colorspace>rgb32</colorspace>
      <width>640</width>
      <height>480</height>
      <fps>24.00</fps>
      <audio_codec>pcm_s16be</audio_codec>
      <sample_rate>44100</sample_rate>
      <channels>stereo</channels>
      <file_duration>00:00:20.0</file_duration>
      <container_type>mov;mp4;m4a;3gp;3g2;mj2</container_type>
      <bitrate>5863</bitrate>
      <bpp>0.8</bpp>
      <filesize>14659968</filesize>
      <mime_type>video/quicktime</mime_type>
      <created>2009-06-17 18:03:17</created>
      <changed>2009-11-10 17:02:37</changed>
      <is_hinted>TRUE</is_hinted>
      <is_inserted_md>FALSE</is_inserted_md>
    </metadata>
    <ega_download_url></ega_download_url>
    <ega_stream_url>http://www.20.test.surfmedia.nl/app/video/F2J4KfIVAiwicAygMfXpPUuT/play?format_id=mHFdpBJz9dTK911fRpI14MKK</ega_stream_url>
    <ega_play_url>http://www.20.test.surfmedia.nl/app/video/F2J4KfIVAiwicAygMfXpPUuT/play?format_id=mHFdpBJz9dTK911fRpI14MKK</ega_play_url>
  </item>
</items>