Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (93)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Les sons

    15 mai 2013, par
  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6077)

  • use anullsrc in ffmpeg command

    7 juin 2019, par S.T

    I have ffmpeg command that i want to add anullsrc filter to it

    I tried to add the command in different places there but there is always a problem. the command is taking 2 movies and merging them to one movie side by side. the audio is the 2 movies together.

    This is the command :

    ffmpeg -i loop2.mp4 -i loop1.mp4 -i logo.png -filter_complex "[0:v]pad=width=iw+20:height=ih+20:x=10:y=10:color=black[a] ;[1:v]pad=width=iw+20:height=ih+20:x=10:y=10:color=black[b] ;nullsrc=size=640x480[base] ;[a]setpts=PTS-STARTPTS, scale=320x480[left] ;[b]setpts=PTS-STARTPTS, scale=320x480[right] ;[base][left]overlay=shortest=1[tmp1] ;[tmp1][right] overlay=320:0[video] ;[video]overlay=5:5[videoandlogo] ;[0:a]apad [apa] ;[apa][1:a]amerge=inputs=2,pan=stereo|FL

    In the command i have the nullsrc for the video and i want to add also the anullsrc for the audio.
    Can some one help ? Thanks.

    I have a problem when doing this command with the right file (always the right, even if i switched the files), the audio is not synced with the video and i think its because i didn’t use the anullsrc (maybe i am wrong). it happens only on files that i concat them - took one video, and concat it a few times to itself with a different command - loop, and created a new file. the looped video is synced, only the merge is destroying the audio sync (on regular files without loop the sync is good after the merge).
    Thanks.

  • Converting bat to bash script [on hold]

    15 juillet 2019, par dezxela

    Please help me with coversion this script from here to bash :
    https://stackoverflow.com/a/38291960/11786146

    This part of the code seems to be reconciled in me, but I’m not sure that it’s correct :

    #  path to ffmpeg
    export  ffmpeg='/home/user/bin'
    #  source movies from
    export  movieSource='/mnt/dev1/radio/Masha'
    #  tmp dir
    export  tmpDir='/mnt/dev1/radio/Masha'


    #  setup positon, color, background, font for the text overlays
    #  filterComplex, quotes have to be escaped! -> \"
    #  BITC - Burned In Time Code
    export  filterComplexTimecode='drawtext=fontfile='/usr/share/fonts/truetype/freefont/FreeSerif.ttf': timecode='10\:00\:00\:00': timecode_rate=24: x=(w-tw)/2: y=h-(1*lh)-3: fontsize=20: fontcolor=white@0.4: box=1: boxcolor=0x00000000@0.4: boxborderw=4'
    #  Date
    export  filterComplexDate='drawtext=fontfile='/usr/share/fonts/truetype/freefont/FreeSerif.ttf': text='%{localtime\:%X}': x=(w-tw-3): y=h-(1*lh)-3: fontsize=20: fontcolor=white@0.4: box=1: boxcolor=0x00000000@0.4: boxborderw=4'
    #  Shotname
    export  filterComplexShotname='drawtext=fontfile='/usr/share/fonts/truetype/freefont/FreeSerif.ttf': x=0: y=h-(1*lh)+1: fontsize=20: fontcolor=white@0.4: box=1: boxcolor=0x00000000@0.4: boxborderw=4:'

    #  create a list of all files
    find "$movieSource" -name "*.mp4" -type f | sort -R | while read j; do echo "file '$j'" >> $tmpDir/filelist.txt; done

    echo filename, durationInSeconds > $tmpDir/fileNameDuration.txt
    for file in $movieSource/*.mp4; do
     #  Reset current duration to 0 (zero) for each loop
     export  curDuration=0
     #  get the filename without file extenion
     export  fileName=${file##*/}
     #  get the duration of a single clip
     #  and write it to a tmp textfile
     $ffmpeg/ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$file" > $tmpDir/fileTempDuration.txt
     #  read the textfile again into a variable
    read -p  < $tmpDir/fileTempDuration.txt last curDuration

     #  write the filename and the duration to a new list of all files
    echo $fileName,$curDuration >> $tmpDir/fileNameDuration.txt ;done

    #  concate a filter complex string for ffmpeg with all clipnames as textlayer with a inpoint and outpoint
    export  filterComplexShotnameCombined=
    #  floating numbers are not supported by batch, so we need to work-around that
    source  :IntAsFP b=0.000000
    for i in $tmpDir/fileNameDuration.txt; do
     source  :IntAsFP a=$j
     source  :IntToFP inPoint=$b 6
     export  c=$(expr a + b)
     export   b=c
     source  :IntToFP outPoint=$c 6
     #  just to check whats going on...
     echo name: $i   duration: $j   inPoint: $inPoint   outPoint: $outPoint
     export  filterComplexShotnameCombined='$filterComplexShotnameCombined, $filterComplexShotname text=$i: enable=between(t\,$inPoint\,$outPoint^^^)';done
  • Video not playing on all browsers (FFMPEG)

    12 février 2021, par Mithradantor

    For days I have been struggeling with ffmpeg (PHP).

    


    I have a website where users can upload video's. Obviously people use .mov, .mp4 and .mpeg created by various devices such as cameras, mobile telephones, tablets and many more devices. The problem I have is that those movies either work on Firefox or Chrome, but almost never on both. No clue why, I guess it has to do with codecs and browser support.

    


    I am using FFMpeg to turn them into webm files. This works 95% of the time. In all browsers I have a working video and the sound works too. But sometimes there is no sound at all.

    


    When I open the movie in a other browser (or Windows media player for example) I do hear sound. It is so random to in what browser or software it works or does not work.

    


    Does anyone know of a way to make sure that your movies work in every browsers i.e. Chrome, FireFox and Safari with both video and audio ? and if so, how can I transform them and into what format (codecs ?)

    


    I dont mind converting a movie into three different formats, as long as both video and audio works.

    


    I hope someone can give me some advice. I have tried many ways but none work cross-browser so far.

    


    An example of the code that I use :

    


    $video->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');


    


    Does anyone know how I can make it work on every browser ?

    


    What I already tried is (amongst others) :

    


    using an original mp3 or mov and convert it into webm with this code :

    


    ffmpeg -i origin.mov -c:a libvorbis -strict -2 -c:v libvpx-vp9 output.webm

    


    Unfortunately in FireFox i have visual and audio but in Chrome I have nothing, just a blank screen.