Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (45)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (7831)

  • TV audio extracted using ffmeg does not work in iOS (but it works in the simulator)

    26 janvier 2014, par Genar

    I can process a TV signal (well I have a .ts video which comes from a TV channel), using ffmpeg but the audio cannot be understood in an iPhone/iPad. The most strange is that the audio (and video) works properly in the simulator (and also in an Android real device, but this is another point), but in a real iPhone/iPad device the video is OK but the audio sounds like a metallic box and nothing can be understood.

    I have created the ffmpeg libraries for iOS (I have tried the version 2.0.2 and also the version 2.1.3) using the information provided in the following link :

    Installing ffmpeg ios libraries armv7, armv7s, i386 and universal on Mac with 10.8

    The aforementioned link explains how to create the ffmpeg include folders and the universal libraries which I have included into my project (the libraries created are : libavcodec.a, libavdevice.a, libavfilter.a, libavformat.a, libavresample.a, libavutil.a, libswresample.a and libswscale.a).

    The sampling frequency used is 48000.

    The audio got from ffmpeg is then stored into a buffer and then "inserted" using OpenAL ; but, from the same TV content (the same .ts video file) the audio data which is generated from ffmpeg in an iPhone/iPad is totally different from the audio data generated from ffmpeg in the simulator (which can reproduce both the audio and video perfectly).

    Thanks in advance,

  • concatenate mp4 videos with ffmpeg concat demuxer in android

    6 mai 2016, par Ara Badalyan

    I want to concatenate mp4 videos with ffmpeg, the problem is when I want to merge videos taken with Iphone and Android it throws problem

    " Non-monotonous DTS in output stream 0:1 ; previous : 150528, current : 139268 ; changing to 150529. This may result in incorrect timestamps in the output file."

    This is my code

    merge.txt

    file 'iphone.mp4'
    file 'android.mp4'

    ffmpeg command

    ffmpeg -f concat -i marge.txt -c copy -y merge.mp4

    If I can’t merge this videos how can i make them with same parameters (frame rate, bitrate...) and merge them ?

    P.S I use ffmpeg version 2.4.2 , because I can’t find android ffmpeg library higher then 2.4.2.

  • Stream specifier ':a' in filtergraph description [0:v][0:a][1:v][1:a]concat=a=1:n=2:v=1[s0][s1] matches no streams

    6 septembre 2022, par Mash

    I am using ffmpeg-python and I am trying to make a code that gets all the clips from a folder, converts all of them to the same format then merge all of them with their audio to one final video file.

    


    Here is how the python script looks like

    


    import os
import ffmpeg

dir = "./clips/"

# Reshape video
for f in os.listdir(dir):
  (
    ffmpeg
    .input(os.path.join(dir, f))
    .filter("scale", size="hd1080", force_original_aspect_ratio="increase")
    .filter('fps', fps=60, round='up')
    .output(str(os.path.join(dir, f))[:-4] + "_reshaped.mp4")
    .run()
  )

# Select reshaped video
files = []

for f in os.listdir(dir):
  if "_reshaped.mp4" in str(os.path.join(dir, f)):
    files.append(ffmpeg.input(str(os.path.join(dir, f))))

# eparate video and audio, then flat the array
video_and_audios_files = [item for sublist in map(lambda f: [f.video, f.audio], files) for item in sublist]

# concat all
joined = (
    ffmpeg
    .concat(*video_and_audios_files, v=1, a=1)
    .node
)

# merge video and audio
(
    ffmpeg
    .output(joined[0], joined[1], "./out.mp4")
    .run()
)



    


    Now here is my output, this is the output of the part of the code that merges every clip into one (aka the merge video and audio section of the code)

    


    ffmpeg version 5.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf &#xA;--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband&#xA;  libavutil      57. 28.100 / 57. 28.100&#xA;  libavcodec     59. 37.100 / 59. 37.100&#xA;  libavformat    59. 27.100 / 59. 27.100&#xA;  libavdevice    59.  7.100 / 59.  7.100&#xA;  libavfilter     8. 44.100 /  8. 44.100&#xA;  libswscale      6.  7.100 /  6.  7.100&#xA;  libswresample   4.  7.100 /  4.  7.100&#xA;  libpostproc    56.  6.100 / 56.  6.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./clips/clip1_reshaped.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.27.100&#xA;  Duration: 00:00:26.02, start: 0.000000, bitrate: 7432 kb/s&#xA;  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 7425 kb/s, 60 fps, 60 tbr, 15360 tbn (default)      &#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc59.37.100 libx264&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./clips/clip2_reshaped.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.27.100&#xA;  Duration: 00:00:05.00, start: 0.000000, bitrate: 11445 kb/s&#xA;  Stream #1:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, unknown/bt709/unknown, progressive), 1920x1080, 11438 kb/s, 60 fps, 60 tbr, 15360 tbn (default)        &#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc59.37.100 libx264&#xA;Stream specifier &#x27;:a&#x27; in filtergraph description [0:v][0:a][1:v][1:a]concat=a=1:n=2:v=1[s0][s1] matches no streams.&#xA;Traceback (most recent call last):&#xA;  File "c:\Users\USERNAME\Desktop\auto_poster\concat_vids.py", line 38, in <module>&#xA;    .run()&#xA;  File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\lib\site-packages\ffmpeg\_run.py", line 325, in run&#xA;    raise Error(&#x27;ffmpeg&#x27;, out, err)&#xA;ffmpeg._run.Error: ffmpeg error (see stderr output for detail)&#xA;</module>

    &#xA;

    Can I get some help please ? I am on Windows 10

    &#xA;