Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (11354)

  • ffmpeg failed to seek near the end the of video

    2 novembre 2020, par HanXu

    I have a video with duration 10.00 :

    


    


    $ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 small.avi

    


    $ 10.000000

    


    


    However, when I want to take a screenshot at the last frame by

    


    


    $ ffmpeg -ss 10.00 -i small.avi -frames:v 1 -q:v 2 -f image2 -y output.jpg

    


    


    It complains that

    


    


    could not seek to position 10.000

    


    


    In fact, even if I try to take screenshot at 9.98s, ffmpeg still fails to seek

    


    


    $ ffmpeg -ss 9.98 -i small.avi -frames:v 1 -q:v 2 -f image2 -y output.jpg

    


    could not seek to position 9.98

    


    


    However, it succeeds for 9.979999s.

    


    Following is the detailed info of my video by running

    


    


    $ ffprobe -v error -i small.avi -show_streams -show_format -print_format json

    


    


    {
    "streams": [
        {
            "index": 0,
            "codec_name": "dvvideo",
            "codec_long_name": "DV (Digital Video)",
            "codec_type": "video",
            "codec_time_base": "1/25",
            "codec_tag_string": "dvsd",
            "codec_tag": "0x64737664",
            "width": 720,
            "height": 576,
            "coded_width": 720,
            "coded_height": 576,
            "has_b_frames": 0,
            "sample_aspect_ratio": "16:15",
            "display_aspect_ratio": "4:3",
            "pix_fmt": "yuv420p",
            "level": -99,
            "chroma_location": "topleft",
            "refs": 1,
            "r_frame_rate": "25/1",
            "avg_frame_rate": "25/1",
            "time_base": "1/25",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 250,
            "duration": "10.000000",
            "bit_rate": "28915663",
            "nb_frames": "250",
            "disposition": {
                "default": 0,
                "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
            }
        },
        {
            "index": 1,
            "codec_name": "pcm_s16le",
            "codec_long_name": "PCM signed 16-bit little-endian",
            "codec_type": "audio",
            "codec_time_base": "1/48000",
            "codec_tag_string": "[1][0][0][0]",
            "codec_tag": "0x0001",
            "sample_fmt": "s16",
            "sample_rate": "48000",
            "channels": 2,
            "bits_per_sample": 16,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/48000",
            "start_pts": 0,
            "start_time": "0.000000",
            "bit_rate": "1536000",
            "nb_frames": "480256",
            "disposition": {
                "default": 0,
                "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
            }
        }
    ],
    "format": {
        "filename": "small.avi",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "avi",
        "format_long_name": "AVI (Audio Video Interleaved)",
        "start_time": "0.000000",
        "duration": "10.000000",
        "size": "37948606",
        "bit_rate": "30358884",
        "probe_score": 100,
        "tags": {
            "encoder": "Lavf58.29.100"
        }
    }
}


    


    It seems that there are some mismatching between ffmpeg seeking and the duration of the video ? How to correctly take a screenshot at, say 9.99s ?

    


    Much thanks for any help !

    


  • Select subtitle stream in ffmpeg in order to take screenshot

    7 octobre 2020, par Snake Eyes

    I want to capture screen from mkv which has embedded subtitles which media info looks like :

    


    General
Complete name                            : MyVideo.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 2.25 GiB
Duration                                 : 1 h 47 min
Overall bit rate                         : 2 993 kb/s
Writing application                      : mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
Writing library                          : libebml v1.3.5 + libmatroska v1.4.8

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1 h 47 min
Bit rate                                 : 2 735 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.055
Stream size                              : 2.05 GiB (91%)
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : A_EAC3
Duration                                 : 1 h 47 min
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 197 MiB (9%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Text #1
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 46 min
Bit rate                                 : 53 b/s
Count of elements                        : 1626
Stream size                              : 42.1 KiB (0%)
Title                                    : SDH
Language                                 : English
Default                                  : No
Forced                                   : No

Text #2
ID                                       : 4
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 46 min
Bit rate                                 : 53 b/s
Count of elements                        : 1595
Stream size                              : 41.8 KiB (0%)
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Menu
01:44:57.011                             : en:Credits


    


    I'm trying to capture with Spanish subtitle stream in the screen

    


    I tried :

    


    ffmpeg -ss 14 -copyts -i C:\MyVideo.mkv -map 0:0 -map 0:3 -codec copy -codec:3 mov_text -vframes 1 C:\test.png


    


    but is not working, means the PNG is not PNG actually. I don't know the format is output.

    


    How to capture screen with spanish subtitle (position 4 in mediainfo) ?

    


  • avformat/asfdec_o : Export metadata that applies to the whole file

    12 novembre 2020, par Andreas Rheinhardt
    avformat/asfdec_o : Export metadata that applies to the whole file
    

    The ASF specification of Metadata Objects' stream number is as follows :

    "Specifies whether the entry applies to a specific digital media stream
    or whether it applies to the whole file. A value of 0 in this field
    indicates that it applies to the whole file ; otherwise, the entry
    applies only to the indicated stream number and must be between 1 and
    127."

    Yet the asf_o demuxer (the one originating from Libav) has always
    treated such metadata as if it applied to a stream even though no stream
    with a stream number may exist in a valid ASF file. This is fixed in
    this commit ; it affected e.g. the file
    wma_with_metadata_library_object_tag_trimmed.wma from the FATE suite.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/asfdec_o.c