Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (53)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (6966)

  • Set a subtitle language using ffmpeg

    19 mars 2017, par Sam

    I tried googling a way to set the language of a subtitle stream with ffmpeg and found the -slang option. So I tried the following command but immediately receive an error :

    ffmpeg -i input.avi -i subs.srt -c:a copy -c:s mov_text -slang eng -c:v libx264 -profile:v high -level:v 4.0 output.mp4
    ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
    built on Jul 18 2013 23:00:53 with Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)

    libavutil 52. 13.100 / 52. 13.100

    libavcodec 54. 86.100 / 54. 86.100

    libavformat 54. 59.106 / 54. 59.106

    libavdevice 54. 3.102 / 54. 3.102

    libavfilter 3. 32.100 / 3. 32.100

    libswscale 2. 1.103 / 2. 1.103

    libswresample 0. 17.102 / 0. 17.102

    libpostproc 52. 2.100 / 52. 2.100

    Unrecognized option ’slang’.

    Error splitting the argument list : Option not found

    After more googling I found another way to do it using the -metadata command :

    ffmpeg -i input.mp4 -i subs.srt -c:a copy -c:v copy -c:s mov_text -metadata:s:s:0 language=eng output.mp4

    And that works absolutely fine. But this isn’t mentioned in the ffmpeg man page, whereas -slang is, which makes me think the -metadata command is maybe outdated or in some other way not as good as -slang.

    1. What is the difference between using the two above methods (-slang vs -metadata) ?
    2. Why did my -slang command give an error ? Have I used it incorrectly ?
  • Generate a thumbnail image every X seconds

    1er août 2013, par rabotalius

    I'm trying to generate a thumbnail every minute, but i'm getting the following error :

    ffmpeg -i Hung.mp4 -f image2 -vf fps=fps=1/60 img%03d.jpg

    [mjpeg @ 0x2f06da0] bitrate tolerance too small for bitrate
    [mjpeg @ 0x2f1b7c0] ff_frame_thread_encoder_init failed
    Output #0, image2, to 'img%03d.jpg':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: mp41
       Stream #0:0(eng): Video: mjpeg, yuvj420p, 1280x536 [SAR 1:1 DAR 160:67], q=2-31, 200 kb/s, 90k tbn, 0.02 tbc
       Metadata:
         creation_time   : 2013-07-22 00:01:41
         handler_name    : VideoHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> mjpeg)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
  • Paperclip-ffmpeg not working on Rails

    28 juillet 2013, par Lee7355512727

    I installed Paperclip-ffmpeg and tried to upload a flv file, but it seems there are some problems converting the file.

    I added Paperclip.options[:command_path] = "/usr/bin/" (I got the path by using which ffmpeg) to my config/environments/development.rb file, following the instructions on the paperclip-ffmpeg github page.

    Here is my model subquestion.rb, which contains a paperclip field called qflv :

    class Subquestion < ActiveRecord::Base
       belongs_to :question
       has_many :qimages , :dependent =>  :destroy

       has_attached_file :qflv, styles: {
           medium: {geometry: "640*480", format: 'flv'},
           thumb: {geometry: "100*100#", format: 'jpg', time: 10}
       }, processors: [:ffmpeg]

    And here is my _subquestion_fields.html.erb file, where users upload videos :

    <%= f.file_field :qflv %>

    _subquestion_fields.html.erb is rendered by question.html.erb file :

    <%= nested_form_for @question, :url => {:action => 'create_question'} do |f| %>
          <%= f.fields_for :subquestions do |builder| %>
          <%= render 'subquestion_fields', :f => builder %>

    And here is part of the error message :

    WARNING: gnome-keyring:: couldn't connect to: /run/user/li/keyring-CsW4u8/pkcs11: No such file or directory
    ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
     built on Mar 30 2013 22:23:21 with gcc 4.7.2
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    [flv @ 0x8ba50a0] Estimating duration from bitrate, this may be inaccurate
    Input #0, flv, from '/tmp/03000201005171FC8274A20623ECA86B119768-56C7-7A62-DB7A-A4B599F64EE720130727-1837-13757l9.flv':
     Metadata:
       metadatacreator : modified by youku.com in 20111202
       hasKeyframes    : true
       hasVideo        : true
       hasAudio        : true
       hasMetadata     : true
     Duration: 00:05:25.03, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: h264 (High), yuv420p, 448x336 [PAR 1:1 DAR 4:3], 15 tbr, 1k tbn, 30 tbc
       Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
    Incorrect frame size
    Failed to set value '0x0' for option 's'
    WARNING: gnome-keyring:: couldn't connect to: /run/user/li/keyring-CsW4u8/pkcs11: No such file or directory
    ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
     built on Mar 30 2013 22:23:21 with gcc 4.7.2
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    [flv @ 0x86490a0] Estimating duration from bitrate, this may be inaccurate
    Input #0, flv, from '/tmp/03000201005171FC8274A20623ECA86B119768-56C7-7A62-DB7A-A4B599F64EE720130727-1837-13757l9.flv':
     Metadata:
       metadatacreator : modified by youku.com in 20111202
       hasKeyframes    : true
       hasVideo        : true
       hasAudio        : true
       hasMetadata     : true
     Duration: 00:05:25.03, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: h264 (High), yuv420p, 448x336 [PAR 1:1 DAR 4:3], 15 tbr, 1k tbn, 30 tbc
       Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
    Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p'
    [buffer @ 0x864c180] w:448 h:336 pixfmt:yuv420p
    [scale @ 0x8653840] w:448 h:336 fmt:yuv420p -> w:448 h:336 fmt:yuvj420p flags:0x4
    [crop @ 0x864dc20] w:448 h:336 -> w:0 h:0
    [crop @ 0x864dc20] Invalid too big or non positive size for width '0' or height '0'
    Error opening filters!


    Started POST "/test_geisinger/roots/questions/create" for 127.0.0.1 at 2013-07-27 23:12:31 -0400
    Processing by RootsController#create_question as HTML
     Parameters: {"utf8"=>"✓", "authenticity_token"=>"EiJk5dBf1nL96BtUiKc0qALCg0Bj9mQ0dx9IodfYdO0=", "question"=>{"explanation"=>"flv", "choice_id"=>"8", "correct_selection_id"=>"32", "quiz_id"=>"10", "subquestions_attributes"=>{"0"=>{"subquestion_type"=>"flv", "_destroy"=>"false", "qflv"=>#x-flv\r\n", @tempfile=#tmp/RackMultipart20130727-1837-1f6g2s0>>}}}, "commit"=>"Submit"}
    [paperclip] [ffmpeg] ffmpeg -i "/tmp/03000201005171FC8274A20623ECA86B119768-56C7-7A62-DB7A-A4B599F64EE720130727-1837-13757l9.flv" 2>&1
    [paperclip] [ffmpeg] Command Success
    [paperclip] [ffmpeg] Making...
    [paperclip] [ffmpeg] Building Destination File: '03000201005171FC8274A20623ECA86B119768-56C7-7A62-DB7A-A4B599F64EE720130727-1837-13757l9' + 'flv'
    [paperclip] [ffmpeg] Destination File Built
    [paperclip] [ffmpeg] Adding Geometry
    [paperclip] [ffmpeg] Extracting Target Dimensions
    [paperclip] [ffmpeg] Target Size is Available
    [paperclip] [ffmpeg] Keeping Aspect Ratio
    [paperclip] [ffmpeg] Resize
    [paperclip] [ffmpeg] Convert Options: 0x0
    [paperclip] [ffmpeg] Adding Format
    [paperclip] [ffmpeg] Adding Source
    [paperclip] [ffmpeg] Building Parameters
    [paperclip] [ffmpeg] -i :source -s 0x0 -y :dest
    Command :: ffmpeg -i '/tmp/03000201005171FC8274A20623ECA86B119768-56C7-7A62-DB7A-A4B599F64EE720130727-1837-13757l9.flv' -s 0x0 -y '/tmp/03000201005171FC8274A20623ECA86B119768-56C7-7A62-DB7A-A4B599F64EE720130727-1837-13757l920130727-1837-11o3enh.flv'
    [paperclip] An error was received while processing: #tmp/03000201005171FC8274A20623ECA86B119768-56C7-7A62-DB7A-A4B599F64EE720130727-1837-13757l9.flv' -s 0x0 -y '/tmp/03000201005171FC8274A20623ECA86B119768-56C7-7A62-DB7A-A4B599F64EE720130727-1837-13757l920130727-1837-11o3enh.flv'' returned 1. Expected 0

    There might be some problems with pkcs11 so I found this article :

    https://bugzilla.redhat.com/show_bug.cgi?id=783568

    But I could not find /etc/xdg/autostart/gnome-keyring-*.desktop.

    Thank you !