Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (89)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

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

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

  • ffmpeg - Retriving video macroblock info with -debug mb_type command

    14 juin 2018, par fabridigua

    I am trying to get the information about all the macroblocks in the frames of a video (mp4).
    In particular i’m using the ffmpeg command :

    ffmpeg -debug mb_type -i input.mp4 out.mp4 2> macroblocks.txt

    It seams to work fine, but... i don’t understand how to parse the output !

    I see that after many uninteresting writings, starts a group of blocks starting with

    "New frame, type : [FRAME TYPE]"

    so I assume that these are the blocks referring to each frame containing the type of each macroblock.. but what mean the symbols inside ?

    New frame, type : B [h264 @ 000001c0241c1cc0] d < X- < I > > > >
    X d d d d d < < d < d > < d d > d < d d d < > <
    d < > X < d d > d X d < > d X d > > d d+ d

    From the theory I know that there are intra or predicted macroblocks, but i don’t understand how parse this info from the "New frame"-blocks.

    • What mean i,I,A,<,>,X,|,etc.?

    Also often there are sentences like

    nal_unit_type : 1(Coded slice of a non-IDR picture), nal_ref_idc : 2

    or

    cur_dts is invalid (this is harmless if it occurs once at the start
    per stream)

    that i really don’t understand...
    I can’t too find a documentation..
    Can anyone help me ?

  • ffmpeg - Retrieving video macroblock info with -debug mb_type command

    18 juin 2018, par fabridigua

    I am trying to get the information about all the macroblocks in the frames of a video (mp4).
    In particular i’m using the ffmpeg command :

    ffmpeg -debug mb_type -i input.mp4 out.mp4 2> macroblocks.txt

    It seems to work fine, but... i don’t understand how to parse the output !

    I see that after many uninteresting writings, starts a group of blocks starting with

    "New frame, type : [FRAME TYPE]"

    so I assume that these are the blocks referring to each frame containing the type of each macroblock.. but what do the symbols inside mean ?

    New frame, type : B [h264 @ 000001c0241c1cc0] d < X- < I > > > >
    X d d d d d < < d < d > < d d > d < d d d < > <
    d < > X < d d > d X d < > d X d > > d d+ d

    From the theory I know that there are intra or predicted macroblocks, but i don’t understand how to parse this info from the "New frame"-blocks.

    • What means i,I,A,<,>,X,|,etc.?

    Also often there are sentences like

    nal_unit_type : 1(Coded slice of a non-IDR picture), nal_ref_idc : 2

    or

    cur_dts is invalid (this is harmless if it occurs once at the start
    per stream)

    that i really don’t understand...
    I can’t too find a documentation..
    Can anyone help me ?

  • Python - getting duration of a video with ffprobe and splitting the video into pieces

    22 octobre 2018, par ZelelB

    I am trying to split a video with ffmpeg, implementing a python script.

    I am getting this error :

    Command '['ffprobe', '-i', 'path_to_my_video/MVI_0731.MP4', '-hide_banner']' returned non-zero exit status 1.

    Here is the code I am using to split the video :

    for video_file in video_files:
           try:
               # Call "ffprobe" to get duration of input video.
               ffprobe_process = subprocess.run(args=["ffprobe", "-i", video_file, "-hide_banner"],
                                              check=True,
                                              stdout=subprocess.PIPE,
                                              stderr=subprocess.PIPE,
                                              encoding="utf-8",
                                              shell=True)

               # "ffprobe" writes to stderr instead of stdout!
               duration_string = extract_duration_from_ffprobe_output(ffprobe_process.stderr)            
               duration_in_seconds = duration_string_to_seconds(duration_string)

               # Make start_stop_list
               start_stop_list = read_start_stop_list(start_stop_lists[nbr_video])
               nbr_video += 1
               total_pieces = int(len(start_stop_list))

    This is the line causing the problem :

    ffprobe_process = subprocess.run(args=["ffprobe", "-i", video_file, "-hide_banner"],
                                              check=True,
                                              stdout=subprocess.PIPE,
                                              stderr=subprocess.PIPE,
                                              encoding="utf-8",
                                              shell=True)

    When I change it to this line of code :

    ffprobe_process = subprocess.run(args=['ffprobe', '-i', video_file, '-show_entries', 'format=duration', '-v', 'quiet', '-of', 'csv=%s' % ("p=0")])

    it works, I mean, the script goes after that line, but then throws the following error at the next line :

    470.240000
    expected string or bytes-like object

    470.240000 is the right duration of my video. So the new line that I changed it with works better, but still not working with my code somehow.

    Anyone has an idea how I can solve this ?