Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (81)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (11148)

  • How can I reencode a video to match another's codec exactly ?

    24 janvier 2020, par Stephen Schrauger

    When I’m on vacation, I usually use our camcorder to record videos. Since they’re all the same format, I can use ffmpeg to concat them into one large, smooth video without re-encoding.

    However, sometimes I will use a phone or other camera to record a video (if the camcorder ran out of space/battery or was left at a hotel).

    I’d like to determine the codec, framerate, etc used by my camcorder and use those parameters to convert the phone vidoes into the same format. That way, I will be able to concatonate all the videos without re-encoding the camcorder videos.

    Using ffprobe, I found my camcorder has this encoding :

     Input #0, mpegts, from 'camcorderfile.MTS':
     Duration: 00:00:09.54, start: 1.936367, bitrate: 24761 kb/s
     Program 1
       Stream #0:0[0x1011]: Video: h264 (High) (HDPR / 0x52504448), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
       Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s
       Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080

    The phone (iPhone 5s) encoding is :

     Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mov.MOV':
     Metadata:
       major_brand     : qt  
       minor_version   : 0
       compatible_brands: qt  
       creation_time   : 2017-01-02T03:04:05.000000Z
       com.apple.quicktime.location.ISO6709: +12.3456-789.0123+456.789/
       com.apple.quicktime.make: Apple
       com.apple.quicktime.model: iPhone 5s
       com.apple.quicktime.software: 10.2.1
       com.apple.quicktime.creationdate: 2017-01-02T03:04:05-0700
     Duration: 00:00:14.38, start: 0.000000, bitrate: 11940 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 11865 kb/s, 29.98 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2017-01-02T03:04:05.000000Z
         handler_name    : Core Media Data Handler
         encoder         : H.264
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)
       Metadata:
         creation_time   : 2017-01-02T03:04:05.000000Z
         handler_name    : Core Media Data Handler
       Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
       Metadata:
         creation_time   : 2017-01-02T03:04:05.000000Z
         handler_name    : Core Media Data Handler
       Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
       Metadata:
         creation_time   : 2017-01-02T03:04:05.000000Z
         handler_name    : Core Media Data Handler

    I’m presuming that ffmpeg will automatically take any acceptable video format, and that I only need to figure out the output settings. I think I need to use -s 1920x1080 and -pix_fmt yuv420p for the output, but what other flags do I need in order to make the phone video into the same encoding as the camcorder video ?

    Can I get some pointers as to how I can translate the ffprobe output into the flags I need to give to ffmpeg ?

    Edit : Added the entire Input #0 for both media files.

  • Sidekiq not processing video meta data using stremio-ffmpeg in rails app

    22 juillet 2017, par Arnold

    I am trying to process different video resolutions in background using carrierwave backgrounder, carrierwave-video and sidekiq. everything is working well (all the versions are created in background) except the meta data captured using stremio-ffmpeg. I am completely stuck and can’t figure out why the meta data are not being processed.

    below are my sample codes

    video_uploader.rb

    require 'streamio-ffmpeg'
    class VideoUploader < CarrierWave::Uploader::Base
    include CarrierWave::Video  # for your video processing
    include CarrierWave::Video::Thumbnailer
    include ::CarrierWave::Backgrounder::Delay
    # Include RMagick or MiniMagick support:
    # include CarrierWave::RMagick
    # include CarrierWave::MiniMagick
    # Choose what kind of storage to use for this uploader:
    storage :file
    # storage :fog
    #byebug
    process :save_metadata
    # Override the directory where uploaded files will be stored.
    # This is a sensible default for uploaders that are meant to be mounted:
    def store_dir
    default_path = "/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
    # if FLAVOR == "uglive"
    #   default_path = "/uglive#{default_path}"
    # end
    "#{VIDEO_STORAGE}#{default_path}"
    end
    version :thumb do
    process thumbnail: [{format: 'png', quality: 10, size: 360, strip: false,
    square: false, logger: Rails.logger}]
    def full_filename for_file
     png_name for_file, version_name
    end
    end
    def png_name for_file, version_name
    #remove all accents
    I18n.transliterate(%Q{#{version_name}_#
    {for_file.chomp(File.extname(for_file))}.png})
    end
    #save the video size in the model
    def save_metadata
    video = FFMPEG::Movie.new(file.file)
    if video.valid?
     model.duration = video.duration #(duration of the video in seconds)
     model.size = video.size #size is bytes
     model.video_codec = video.video_codec # "h264"
     model.width = video.width # 640 (width of the video in pixels)
     model.height = video.height # 480 (height of the video in pixels)
     model.audio_codec = video.audio_codec # "aac"
    end
    end
    # Different Video Resolutions
    version :res_480p, :do_not_delay => true do
    process encode_video: [:mp4, resolution: "720X480"]
    end
    version :res_720p do
    process encode_video: [:mp4, resolution: "1280X720"]
    end
    version :res_360p do
    process encode_video: [:mp4, resolution: "640x360"]
    end
    version :res_240p do
    process encode_video: [:mp4, resolution: "426x240"]
    end

    video.rb i called the mount uploader and background_process method (carrierwave video gem)

    mount_uploader :file, VideoUploader
    process_in_background :file

    when i run bundle exec sidekiq -q carrierwavethe version are created in background but the save_metadata method is never processed, so the duration,size,width, height, video_codec and audio_codec are nil in the Video model.

    I am stuck on this the whole day. any help will be highly welcome

  • ffmpeg yuvj422p color movie conversion avi2ogv

    28 juillet 2017, par 7Tonin

    While converting avi video to ogv, there is a color problem in output file.
    How can I solve this issue ?
    normal colors altered colors

    Actually a part of the problem is from the player - so weak question

    Command using ffmpeg-3.3.2-1.mga6.tainted :

    ffmpeg -i dscn0146.avi -pix_fmt yuv422p -s 640x480 dscn0146_hq.ogv -y

    And input metadata :

    Guessed Channel Layout for Input Stream #0.1 : mono
    Input #0, avi, from 'dscn0146.avi':
     Metadata:
       encoder         :
       maker           : NIKON
       model           : COOLPIX S3500
       creation_time   : 2017-07-22 12:09:06
     Duration: 00:00:07.33, start: 0.000000, bitrate: 11091 kb/s
       Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 10770 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
       Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> theora (libtheora))
     Stream #0:1 -> #0:1 (pcm_s16le (native) -> vorbis (libvorbis))

    Processes normaly, but fires a warning :

    [swscaler @ 0xd3c3a0] deprecated pixel format used, make sure you did set range correctly

    Output metadata :

    Output #0, ogv, to 'dscn0146_hq.ogv':
     Metadata:
       model           : COOLPIX S3500
       maker           : NIKON
       encoder         : Lavf57.71.100
       Stream #0:0: Video: theora (libtheora), yuv422p(progressive), 640x480, q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.89.100 libtheora
         model           : COOLPIX S3500
         maker           : NIKON
       Stream #0:1: Audio: vorbis (libvorbis), 22050 Hz, mono, fltp
       Metadata:
         encoder         : Lavc57.89.100 libvorbis
         model           : COOLPIX S3500
         maker           : NIKON