Recherche avancée

Médias (91)

Autres articles (40)

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

  • ffmpeg normalized mp3 audio and album art went missing

    29 août 2022, par SomeoneInNeedOfHelp

    I used below ffmpeg command to normalized audio of my songs and the album art is missing after running below command

    


    ffmpeg -i "Original.mp3" -af loudnorm=I=-18:LRA=4:TP=-1 -ar 44100 -map 0:v -b:a 192k "Normalized.mp3"


    


    ffprobe Original.mp3

    


    Input #0, mp3, from 'Original.mp3':
  Metadata:
    encoded_by      : Switch Free Home Version © NCH Software
    comment         :
    disc            : 1
    track           : 0
    album_artist    : Artist
    genre           : Pop
    artist          : Artist
    title           : Song Title
    album           : Song album
    date            : 2001
  Duration: 00:04:15.91, start: 0.000000, bitrate: 200 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
  Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1279x1280 [SAR 96:96 DAR 1279:1280], 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      title           : thumbnail
      comment         : Cover (front)


    


    ffprobe Normalized.mp3

    


    Input #0, mp3, from 'Original.mp3':
  Metadata:
    encoded_by      : Switch Free Home Version © NCH Software
    comment         :
    disc            : 1
    track           : 0
    album_artist    : Artist
    genre           : Pop
    artist          : Artist
    title           : Song Title
    album           : Song album
    date            : 2001
    encoder         : Lavf58.67.100
Duration: 00:04:15.92, start: 0.025056, bitrate: 265 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
    Metadata:
      encoder         : Lavc58.12
  Stream #0:1: Video: png, rgb24(pc), 1279x1280 [SAR 1:1 DAR 1279:1280], 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      title           : thumbnail
      comment         : Cover (front)


    


    How can I keep the album art from the source file ?

    


  • Is it possible using FFMPEG to replace one ".ts" file in a HLS ts file collection with another ".ts" file ?

    27 juillet 2019, par Vadim

    There is a video, actually an HLS stream (sequence of TS files)
    I would like to take out one TS chunk and replace it with another.
    Another chunk will be encoded using same FFMPEG encoding settings.

    In case you wonder why i need this :
    There is a five hours HLS stream. One of TS has a wrong title on the video. I need to change that TS without re-encoding the whole HLS stream.

    Currently i tried :

    1. Take TS and convet it using FFMPEG into mp4
    2. Edit mp4 video (change title) and save as new mp4
    3. Convert new mp4 into new TS (using FFMPEG, same settings as was used for original video)
    4. Replace original TS with the new TS.

    But it doesn’t work, player shows loading in progress icon. (in the network console i see that this new TS is loaded normally, with status 200)

    As soon as i replace new TS with original one, player plays it normally.

    Both TS files start with I-frame, both have audio. There’s only a slight difference in the sequence of P and B frames.

    old new
    I   I
    P   P
    B   B
    B   B
    P   P
    B   B
    B   B
    B   B
    P   P
    B   B
    B   P
    B   B
    P   B
    P   B
    B   P

    How can i get new TS chunk working in original TS sequence ?

    Update :

    As per szatmary advice (below) i tried to include "-copyts" flag during all ts>mp4>ts conversions. Also tried "-copytb" flag with all 3 options -1, 0, and 1. However result still the same - player doesn’t play HLS TS sequence (m3u8) with new TS chunk.

    Adding "#EXT-X-DISCONTINUITY" tag after replaced TS in the M3U8 list, doesn’t fix the situation.

    Without "#EXT-X-DISCONTINUITY" tag, player gives error :

    VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) There appears to be a playback issue.

    code: 4
    message: "There appears to be a playback issue."

    __proto__:
    MEDIA_ERR_ABORTED: 1
    MEDIA_ERR_CUSTOM: 0
    MEDIA_ERR_DECODE: 3
    MEDIA_ERR_ENCRYPTED: 5
    MEDIA_ERR_NETWORK: 2
    MEDIA_ERR_SRC_NOT_SUPPORTED: 4
    code: 0
    message: ""
    status: null

    With "#EXT-X-DISCONTINUITY" tag, player gives error :

    VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) There appears to be a playback issue.

    code: 3
    message: "error"

    __proto__:
    MEDIA_ERR_ABORTED: 1
    MEDIA_ERR_CUSTOM: 0
    MEDIA_ERR_DECODE: 3
    MEDIA_ERR_ENCRYPTED: 5
    MEDIA_ERR_NETWORK: 2
    MEDIA_ERR_SRC_NOT_SUPPORTED: 4
    code: 0
    message: ""
    status: null

    Both TS files (old one and new one) have video and audio streams.

    Looks like something else should be done. I think solution will be similar to ad insertion.

  • FFmpeg : Different color brightness converting mov to mp4 with alpha

    3 août 2023, par Miguel Zafra

    I am using this code :

    


    ffmpeg -i in.mov -c:v hevc_videotoolbox -allow_sw 1 -alpha_quality 0.9 -tag:v hvc1 -q:v 100 -vf premultiply=inplace=1 out-n.mp4


    


    To convert my MOV with alpha to MP4 with alpha for a web use. However the export color is different.

    


    Original :

    


    enter image description here

    


    MP4 Export :

    


    enter image description here

    


    Any idea of how can I keep the original MOV colors ?

    


    Thank you