Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (71)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (6161)

  • ffmpeg change metadata inside video file

    26 novembre 2020, par virtualsets

    Hello I have problems to change timecode insdie metadata of a video file "mov"

    


    ruta=r"E:\Brutos-sin-eliminar\inma-ruben-22-2-2020\multicam\\"
nombre=r"A019_02230134_C186.mov"
comand="ffmpeg -i " + nombre + " -ss 0 -map 0 -acodec copy -vcodec copy -timecode 01:20:10:00 -metadata:s:2:0 timecode=01:20:10:00 -metadata:s:1:0 timecode=01:20:10:00 -metadata:s:0:2 -metadata:s:0:2  timecode=01:10:10:00"+ " convert_" + nombre

os.popen(comand)


    


    I need to put muy own timecode to the file but this command not works.

    


    The console give me

    


      mov @ 00000225287fdc00] You requested a copy of the original timecode track so timecode metadata are now ignored
Output #0, mov, to 'convert_A019_02230134_C186.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    com.blackmagic-design.camera.windowedSensor: 1
    com.apple.proapps.manufacturer: Blackmagic Design
    com.blackmagic-design.camera.uuid: 3cf1dd9e-e307-47ff-864e-5487fea3fa47
    com.blackmagic-design.camera.projectFPS: 25
    com.apple.proapps.shootingRate: 50
    com.blackmagic-design.camera.cameraType: Blackmagic Pocket Cinema Camera 4K
    com.blackmagic-design.camera.shutterAngle: 180°
    com.blackmagic-design.camera.shutterMode: Angle
    com.blackmagic-design.camera.iso: 3200
    com.blackmagic-design.camera.whiteBalanceKelvin: 3000
    com.blackmagic-design.camera.whiteBalanceTint: -44
    com.apple.proapps.customgamma: com.blackmagic-design.camera.filmlog
    com.blackmagic-design.camera.look.LUTName: Blackmagic Pocket 4K Film to Extended Video.cube
    com.blackmagic-design.camera.guides.aspectRatio: 2:1
    com.blackmagic-design.camera.guides.safeArea: 90
    com.blackmagic-design.camera.firmware: 6.6
    com.apple.proapps.clipID: A019_02230134_C186
    com.apple.proapps.reel: 19
    com.apple.proapps.scene: 1
    com.apple.proapps.shot: 99
    com.apple.proapps.isGood: 0
    com.blackmagic-design.camera.environment: interior
    com.blackmagic-design.camera.dayNight: day
    com.apple.proapps.cameraName: A
    com.blackmagic-design.camera.colorScience: Blackmagic Pocket Cinema Camera 4K, Color Science Gen 4
    com.blackmagic-design.camera.dateRecorded: 2020:02:23
    timecode        : 01:20:10:00
    encoder         : Lavf58.11.101
    Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 122315 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 01:10:10:00
      handler_name    : ?Apple Alias Data Handler
      encoder         : Apple ProRes 422
      timecode        : 01:10:10:00
    Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2020-02-23T00:34:02.000000Z
      handler_name    : ?Apple Alias Data Handler
      timecode        : 01:20:10:00
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2020-02-23T00:34:02.000000Z
      handler_name    : ?Apple Alias Data Handler
      timecode        : 01:20:10:00
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
Press [q] to stop, [?] for help
frame=  467 fps=0.0 q=-1.0 Lsize=  281452kB time=00:00:18.64 bitrate=123693.3kbits/s speed=71.1x    
video:278913kB audio:2531kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.002533%


    


    I dont understand why not modificate the mov file... when open the metadata it is oringinal.

    


    Reggards

    


  • Piping images to FFMPEG using stdin causes artifacts

    15 avril 2021, par Michael Joseph Aubry

    I am sending images from puppeteer as a base64 buffer to stdin childProcess.stdin.write(frame); The images are piped one frame at a time inside a loop.

    


    This works well except I am getting weird artifacts and frames flickering — here is an example https://s3.us-west-2.amazonaws.com/storycreator.v2.rendered/cknhtqu2e0016niuuqmtu5u7b?t=0

    


    I've found when hardcoding a delay between each frames being piped that the artifacts/flickering is reduced.

    


    await new Promise((resolve) => {
  setTimeout(() => {
    resolve("done");
  }, 3000);
});

// then after 3s pipe the buffer
childProcess.stdin.write(frame);


    


    Another solution I found to solve the issue is to encode it as a .h264 then convert it to a .mp4. The problem is the video timing is drastically off.

    


    // The ffmpeg command
const childProcess = spawn(ffmpeg, [
  "-y",
  "-f",
  "image2pipe",
  "-pix_fmt",
  "argb",
  "-s",
  "1920x1080",
  "-r",
  `${fps ? `${fps}` : 100}`,
  "-i",
  "async:cache:pipe:0",
  "-an",
  "-vcodec",
  "libx264",
  "-pix_fmt",
  "yuv420p",
  "-r",
  `${fps ? `${fps}` : 100}`,
  "-y",
  `/tmp/${renderId}.mp4` // using .h264 seems to solve flicker but causes a weird framerate
]);


    


  • FFMPEG - Apple 720p30 Surround MP4 H.264 AAC stereo ; Dolby Digital

    10 décembre 2020, par Dean Van Greunen

    i would like the FFmpeg cli settings which will match this (this is a handbrake preset)

    


    enter image description here

    


    Here is the presetting file, I dont understand what these would be for ffmpeg.

    


    {
    "AlignAVStart": false,
    "AudioCopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:mp3",
      "copy:truehd",
      "copy:flac",
      "copy:eac3"
    ],
    "AudioEncoderFallback": "ac3",
    "AudioLanguageList": [],
    "AudioList": [
      {
        "AudioBitrate": 160,
        "AudioCompressionLevel": 0.0,
        "AudioDitherMethod": null,
        "AudioEncoder": "av_aac",
        "AudioMixdown": "stereo",
        "AudioNormalizeMixLevel": false,
        "AudioSamplerate": "auto",
        "AudioTrackQualityEnable": false,
        "AudioTrackQuality": -1.0,
        "AudioTrackGainSlider": 0.0,
        "AudioTrackDRCSlider": 0.0
      },
      {
        "AudioBitrate": 640,
        "AudioCompressionLevel": 0.0,
        "AudioDitherMethod": null,
        "AudioEncoder": "copy:ac3",
        "AudioMixdown": "none",
        "AudioNormalizeMixLevel": false,
        "AudioSamplerate": "auto",
        "AudioTrackQualityEnable": false,
        "AudioTrackQuality": -1.0,
        "AudioTrackGainSlider": 0.0,
        "AudioTrackDRCSlider": 0.0
      }
    ],
    "AudioSecondaryEncoderMode": true,
    "AudioTrackSelectionBehavior": "first",
    "ChapterMarkers": true,
    "ChildrenArray": [],
    "Default": false,
    "FileFormat": "av_mp4",
    "Folder": false,
    "FolderOpen": false,
    "Mp4HttpOptimize": false,
    "Mp4iPodCompatible": false,
    "PictureAutoCrop": true,
    "PictureBottomCrop": 0,
    "PictureLeftCrop": 0,
    "PictureRightCrop": 0,
    "PictureTopCrop": 0,
    "PictureDARWidth": 0,
    "PictureDeblockPreset": "off",
    "PictureDeblockTune": "medium",
    "PictureDeblockCustom": "strength=strong:thresh=20:blocksize=8",
    "PictureDeinterlaceFilter": "decomb",
    "PictureCombDetectPreset": "default",
    "PictureCombDetectCustom": "",
    "PictureDeinterlacePreset": "default",
    "PictureDeinterlaceCustom": "",
    "PictureDenoiseCustom": "",
    "PictureDenoiseFilter": "off",
    "PictureDenoisePreset": "light",
    "PictureDenoiseTune": "none",
    "PictureSharpenCustom": "",
    "PictureSharpenFilter": "off",
    "PictureSharpenPreset": "medium",
    "PictureSharpenTune": "none",
    "PictureDetelecine": "off",
    "PictureDetelecineCustom": "",
    "PictureItuPAR": false,
    "PictureKeepRatio": true,
    "PictureLooseCrop": false,
    "PictureModulus": 2,
    "PicturePAR": "auto",
    "PicturePARWidth": 0,
    "PicturePARHeight": 0,
    "PictureRotate": null,
    "PictureWidth": 1280,
    "PictureHeight": 720,
    "PictureForceHeight": 0,
    "PictureForceWidth": 0,
    "PresetDescription": "H.264 video (up to 720p30), AAC stereo audio, and Dolby Digital (AC-3) surround audio, in an MP4 container. Compatible with Apple iPhone 4, 4S, and later; iPod touch 4th, 5th Generation and later; iPad 1st Generation, iPad 2, and later; Apple TV 2nd Generation and later.",
    "PresetName": "Apple 720p30 Surround",
    "Type": 0,
    "UsesPictureFilters": true,
    "UsesPictureSettings": 1,
    "SubtitleAddCC": false,
    "SubtitleAddForeignAudioSearch": true,
    "SubtitleAddForeignAudioSubtitle": false,
    "SubtitleBurnBehavior": "foreign",
    "SubtitleBurnBDSub": false,
    "SubtitleBurnDVDSub": false,
    "SubtitleLanguageList": [],
    "SubtitleTrackSelectionBehavior": "none",
    "VideoAvgBitrate": 3000,
    "VideoColorMatrixCode": 0,
    "VideoEncoder": "x264",
    "VideoFramerate": "30",
    "VideoFramerateMode": "pfr",
    "VideoGrayScale": false,
    "VideoScaler": "swscale",
    "VideoPreset": "medium",
    "VideoTune": "",
    "VideoProfile": "high",
    "VideoLevel": "3.1",
    "VideoOptionExtra": "",
    "VideoQualityType": 2,
    "VideoQualitySlider": 21.0,
    "VideoQSVDecode": false,
    "VideoQSVAsyncDepth": 4,
    "VideoTwoPass": true,
    "VideoTurboTwoPass": false,
    "x264Option": null,
    "x264UseAdvancedOptions": false
  },