Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (8)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (3234)

  • Why seek on ts file is so slow ?

    2 juillet 2015, par skipper

    I am dealing with a ts file, following is ffprobe output :

    ffprobe version N-45589-gb6a0b8b-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2007-2014 the FFmpeg developers
     built on Aug 28 2014 02:30:32 with gcc 4.8 (Debian 4.8.3-9)
     configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8
     libavutil      54.  7.100 / 54.  7.100
     libavcodec     56.  0.101 / 56.  0.101
     libavformat    56.  3.100 / 56.  3.100
     libavdevice    56.  0.100 / 56.  0.100
     libavfilter     5.  0.103 /  5.  0.103
     libswscale      3.  0.100 /  3.  0.100
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  0.100 / 53.  0.100
    [hevc @ 0x298b4a0] No start code is found.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] No start code is found.
       Last message repeated 2 times
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] No start code is found.
       Last message repeated 7 times
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] No start code is found.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [hevc @ 0x298b4a0] PPS id out of range: 0
    [hevc @ 0x298b4a0] Error parsing NAL unit #2.
    [mpegts @ 0x2987560] decoding for stream 0 failed
    [mpegts @ 0x2987560] Could not find codec parameters for stream 0 (Video: hevc ([36][0][0][0] / 0x0024)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mpegts, from 'mp4box-jlsj-4k.ts':
     Duration: 00:02:15.00, start: 0.001111, bitrate: 31116 kb/s
     Program 1
       Stream #0:0[0x65]: Video: hevc ([36][0][0][0] / 0x0024), 25 tbr, 90k tbn, 90k tbc
       Stream #0:1[0x66]: Audio: eac3, 48000 Hz, 5.1(side), fltp, 448 kb/s

    The problem I’m having is that seeking on this file is extremely slow, it took more than 1 minute to complete seek operation.

    This ts file is 500MB in size, has 2,793,052 ts packets, 2,750,469 video packets, 137 video packets with random_acces_indicator.
    What’s the possible reason for the slow seek ? Why is ffmpeg reporting these errors ? What do I need to do for the analysis ?

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

  • ac3dec_fixed : always use the USE_FIXED=1 variant of the AC3DecodeContext

    13 mars 2015, par Andreas Cadhalpun
    ac3dec_fixed : always use the USE_FIXED=1 variant of the AC3DecodeContext
    

    The AC3DecodeContext has a float (USE_FIXED=0) and an integer
    (USE_FIXED=1) variant, both of which can be present in the same binary.
    This is not only very confusing, but it also breaks horribly, when one
    variant is used by code expecting the other.

    This currently happens, because eac3dec.c is only compiled for the float
    variant, but also used from ac3dec_fixed.c, which uses the integer
    variant.

    The result is memory corruption, leading to crashes.

    So compile eac3dec.c once for each variant and adapt it, so that it
    works with the integer variant.

    A loss of precission and scaling bug has been fixed by the committer
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/Makefile
    • [DH] libavcodec/ac3dec.h
    • [DH] libavcodec/ac3dec_fixed.c
    • [DH] libavcodec/ac3dec_float.c
    • [DH] libavcodec/eac3dec.c