Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (67)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • 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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (8541)

  • Discord music Bot Python starts ffmpeg, green light appears around bot but no audio plays [closed]

    27 avril 2023, par QuestionHaver99

    I've tried using FFmpegOpusAudio and FFMPEGPCMaudio instead, but it gives the same issue. FFMPEG starts and the green light of the bot in the channel shows, but no audio plays, and then the bot exits the channel when the song should be over and FFMPEG terminates. I've tried streaming the audio and playing from a local file, and the same issue.

    


    and just as a quick checklist of confirmed not the issues : the volume is fine and the permissions are fine and ffmpeg is in environment variables and set up correctly.

    


    any advice would be greatly appreciated

    


  • Merge pull request #311 from juristr/master

    31 janvier 2012, par Jörn Zaefferer

    m localization/messages_de.js Merge pull request #311 from juristr/master Grammar error in localization/messages_de.js

  • why does concatting multiple videos renders no audio ?

    19 juin 2015, par dd-s

    As the title tells, I’m having issues with FFMPEG concat. It’s not really pertinent to the problem, but perhaps helpful to getting me the correct answer.

    app/models/event.rb

    class Event < ActiveRecord::Base
     has_many :videos
    end

    app/models/video.rb

    class Video < ActiveRecord::Base
     belongs_to :event
    end

    app/jobs/video_concatenator_job.rb

    class VideoConcatenatorJob < ActiveJob::Base
     queue_as :default
     attr_reader :event

     def perform(event_id)
       @event = Event.find event_id
       concatenator = VideoConcatenate.new(video_paths, output_name)
       concatenator.call
     end

     private
       def output_name
         event.id
       end

       def video_paths
         [intro_video.to_s] + event.videos.live.map { |video| video.event_video.download.path }
       end

       def intro_video
         image = annotate_image
         `ffmpeg -loop 1 -i "#{image}" -c:v libx264 -t 5 -pix_fmt yuv420p -y -vf scale=320:240 "#{output_name}"`
       end

       def annotate_image
         return event.intro_image.download.path if event.intro_text.blank?
         image = MiniMagick::Image.open event.intro_image.download.path
         output = Rails.root.join('tmp', 'ffmpeg', 'intro', "#{event.id}.jpg")
         image.combine_options do |c|
           . . .
           c.annotate '0', "#{event.intro_text}"
           . . .
         end
         image.write output.to_s
         output
       end


    end

    app/models/video_concatenate.rb

    class VideoConcatenate
     attr_accessor :input
     attr_reader :file_name

     def initialize(input, file_name)
       @input = input
       @file_name = file_name
     end

     def call
       `ffmpeg -i "concat:#{list_transcoder}" -c copy -bsf:a aac_adtstoasc "#{output}"`
     end

     private

       def output
         Rails.root.join("tmp", "ffmpeg", "concatenated", file_name)
       end

       def list_transcoder
         output_array = []
         # first transcoding them to mpeg transport stream
         input.map(&:to_s).each_with_index do |video, index|
           stream = finished_video_path("concatenations", "#{file_name}-#{index}.ts")
           `ffmpeg -i "#{video}" -y -c copy -bsf:v h264_mp4toannexb -f mpegts "#{stream}"`
           output_array << stream
         end
         output_array.join("|")
       end
    end

    So when the job is performed. It takes an intro_image and intro_text and annotates that image with MiniMagick. It then takes that annotated image and turns it into a 5 second .mp4. Then it takes that annotated intro video and the video files associated with the event, and concatenated them all into one single .mp4.

    If I take out [intro_video.to_s] + from VideoConcatenatorJob.video_paths then the issue doesn’t happen. something must be wrong with my annotated video. Any help is extremely appreciated.