Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (89)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

Sur d’autres sites (7140)

  • ffprobe not showing language tag for ASS files in Ubuntu

    9 juillet 2023, par Efraín

    This is something that has me totally lost, because I'm not sure what could I have done, but from one week to another, "language" stopped appearing in the tags of an ASS track on a MKV. I know this just started to appear, because just last week I ended working on an script to detect the language of tracks, and today that I decided to test it again, I noted that it started to fail, and from my debug it's because ffprobe is now printing this

    


    {
    "index": 2,
    "codec_name": "ass",
    "codec_long_name": "ASS (Advanced SSA) subtitle",
    "codec_type": "subtitle",
    "codec_tag_string": "[0][0][0][0]",
    "codec_tag": "0x0000",
    "r_frame_rate": "0/0",
    "avg_frame_rate": "0/0",
    "time_base": "1/1000",
    "start_pts": 0,
    "start_time": "0.000000",
    "duration_ts": 1430816,
    "duration": "1430.816000",
    "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0,
        "timed_thumbnails": 0
    },
    "tags": {
        "BPS-eng": "85",
        "DURATION-eng": "00:23:34.830000000",
        "NUMBER_OF_FRAMES-eng": "262",
        "NUMBER_OF_BYTES-eng": "15128",
        "_STATISTICS_WRITING_APP-eng": "mkvmerge v40.0.0 ('Old Town Road + Pony') 32-bit",
        "_STATISTICS_WRITING_DATE_UTC-eng": "2023-07-02 11:29:54",
        "_STATISTICS_TAGS-eng": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
    }
}


    


    Where it should be a field called "language" in the "tags", like this(Note that other file types, like SRT, or audio tracks show it correctly)

    


    "tags": {
    "language": "eng",
    "BPS-eng": "128000",
    "DURATION-eng": "00:23:50.813000000",
    "NUMBER_OF_FRAMES-eng": "61620",
    "NUMBER_OF_BYTES-eng": "22893018",
    "_STATISTICS_WRITING_APP-eng": "mkvmerge v40.0.0 ('Old Town Road + Pony') 32-bit",
    "_STATISTICS_WRITING_DATE_UTC-eng": "2023-07-02 11:29:54",
    "_STATISTICS_TAGS-eng": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
}


    


    The weird part is that is the same file I used for testing(And it worked), and I haven't edited it, so I'm not sure why is this happening, Does someone knows if I might have messed up something installing a library for another thing that might have caused it ?

    


    Just in case is necessary, this is the command I use : ffprobe -v quiet -print_format json -show_streams <file></file>

    &#xA;

  • How to add an arbitrary, formatted timestamp to a video with FFMPEG ? [duplicate]

    23 avril 2018, par Neil M.

    This question already has an answer here :

    I am calling ffmpeg from a custom tool to concatenate video files while overlaying a timestamp in the output. The output video needs to have a timestamp starting at an arbitrary time. The format must be a 12-hour clock with seconds and meridiem, e.g. 10:34:59 AM or 6:13:09 PM. Here’s the full command I’m using right now :

    ffmpeg\bin\ffmpeg.exe -y -i "concat:input.mod" -ss 00:00:00 -t 00:02:17
    -an -vcodec libx264 -profile:v baseline -level 13 -b:v 2000k -vf
    "drawtext=fontcolor=white:fontsize=16:fontfile="/Windows/Fonts/arial.ttf":
    box=1:boxcolor=black@0.3:x=(w-text_w-10):y=(h-text_h-5):
    timecode='02\:36\:17\;00':rate=30000/1001" output.mp4

    This outputs a 2 minute, 17 second duration video beginning at the start of the input file. The output video has a timecode in the bottom-right corner beginning at the time 02:36:17 and ending at 02:38:34. What I want is exactly this, but instead of printing "02:36:17 ;00" on frame 0 and counting up from there, it should print "2:36:17 AM" on frame 0 and count up from there.

    I have tried using the localtime function to output formatted time, but the time value it uses is the time that the drawtext filter is called. It doesn’t take a parameter for an arbitrary time.

    I have also looked at the pts function, which seems to allow an arbitrary offset but only supports two formatting options, neither of which is the clock format I need.

    What is the proper way to add a timestamp with an arbitrary starting time and format using ffmpeg ?

  • How to display progress on user side in FFMPEG transcoding in rails ?

    21 décembre 2015, par Jiggs

    I am using Streamio-ffmpeg to process files. The gem shows the progress of the transcoding in the console. I want to display this progress to the user. Is there anyway of doing this ?

    This is my lib : (Where the transcoding is done)

    file = ::FFMPEG::Movie.new(tmpfile)

    encoded_file = File.join(directory, new_name)

    file.transcode(encoded_file) { |progress| progressing = (progress * 100).round(2); puts "#{progressing} %"; }

    The |progress| progressing = (progress * 100).round(2) ; puts "#progressing %" ; is responsible for printing the progress to the console. Can I display this in my views instead ?

    Output on console is :-

    I, [2015-12-21T12:48:55.322814 #19642]  INFO -- : Running transcoding...
    ffmpeg -y -i /home/tps/sites/demo_projects/blog/public/uploads/tmp/1450682335-19642-6992/tmpfile  /home/tps/sites/demo_projects/blog/public/uploads/tmp/1450682335-19642-6992/mp4_SampleVideo_1080x720_5mb.mp4

    0.0 %

    6.63 %

    9.57 %

    11.4 %

    13.46 %

    15.86 %

    18.3 %

    21.64 %

    25.03 %

    28.61 %

    32.09 %

    36.62 %

    43.29 %

    48.6 %

    53.23 %

    57.69 %

    61.68 %

    66.49 %

    70.1 %

    72.91 %

    75.75 %

    79.07 %

    83.73 %

    88.81 %

    93.07 %

    96.72 %

    99.05 %

    99.97 %

    100.0 %

    I, [2015-12-21T12:49:10.058592 #19642]  INFO -- : Transcoding of /home/tps/sites/demo_projects/blog/public/uploads/tmp/1450682335-19642-6992/tmpfile to /home/tps/sites/demo_projects/blog/public/uploads/tmp/1450682335-19642-6992/mp4_SampleVideo_1080x720_5mb.mp4 succeeded

    I tried out "using include ActionController::Live" but i don’t get any proper result. I don’t know to how to use "include ActionController::Live" in this situation.