Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (73)

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

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (7182)

  • How to apply complex filters more than once with different parameters while avoiding "too many inputs" errors in ffmpeg ?

    15 mai 2019, par Hugh Walxet

    I’m trying to apply the displace complex filter more than once in a video, at specific intervals with no proportional relationship. In each instance, I want to apply the displace filter with slightly different parameters. If I list it twice in the commands for the complex_filter, I get an error saying I have too many inputs.

    I might as well ask, separately, how I could apply the same filter with the same parameters more than once in a video, without re-iterating the same filter more than once in the command line. Put differently, how do I run a filter as specific times without writing the command several times sequentially, each with a different trigger time ?

    C :\Users\Me>ffmpeg -i c :\users\Me\desktop\house2.mp4 -i c :\users\Me\desktop\house3.mp4 -i c:users\Me\desktop\house4.mp4 -filter_complex "shuffleframes=enable=’between(t,21,27)’:mapping=0 9 2 1 10 5 8 6 7 4 3, shuffleframes=enable=’between(t,3,7)’:mapping=0 4 9 1 10 5 8 6 2 7 4 3, shuffleframes=enable=’between(t,15,19)’:mapping=0 6 2 1 10 5 8 3 7 4 9, [0][1][2] displace=enable=’between(t,9,10)’:edge=wrap, [0][1][2] displace=enable=’between(t,20,21)’:edge=smear" c :\users\Me\desktop\houseglitch.mp4

  • Unable to parse graph description substring in passing two word in android ffmpeg command

    16 janvier 2017, par Virani Ashish

    i have create video editing application and i have add text in video but i can add text in android ffmpeg command with space in two word like ’ashish virani’ then error occur.

    VideoEditingActivity: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
                 built with gcc 4.8 (GCC)
                 configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
                 libavutil      55. 17.103 / 55. 17.103
                 libavcodec     57. 24.102 / 57. 24.102
                 libavformat    57. 25.100 / 57. 25.100
                 libavdevice    57.  0.101 / 57.  0.101
                 libavfilter     6. 31.100 /  6. 31.100
                 libswscale      4.  0.100 /  4.  0.100
                 libswresample   2.  0.101 /  2.  0.101
                 libpostproc    54.  0.100 / 54.  0.100
               Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/GifMaker/video/Txt_1484571055758.mp4':
                 Metadata:
                   major_brand     : isom
                   minor_version   : 512
                   compatible_brands: isomiso2avc1mp41
                   encoder         : Lavf57.25.100
                 Duration: 00:00:05.85, start: 0.021333, bitrate: 714 kb/s
                   Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x200 [SAR 1:1 DAR 12:5], 578 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
                   Metadata:
                     handler_name    : VideoHandler
                   Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
                   Metadata:
                     handler_name    : SoundHandler
               [AVFilterGraph @ 0xacf304f0] **Unable to parse graph description substring: "ccjcjcjc
               v**
               gv:x=210:y=20"
               Error opening filters!
  • Filtering string for hidden character when read from file in bash [duplicate]

    19 mai 2021, par BharathYes

    I am writing a bash script to trim video file into small pieces and finally merge them into a single video file using ffmpeg based on specified time.

    


    #!/bin/bash

filename="$1"
linecount=`wc -l "${filename}.txt"`
echo -n "" > to-merge.list

# file split by time
count=0
IFS=''
while read -r fromTime ; read -r toTime; do
    echo "$fromTime and $toTime done"
    ffmpeg -i "${filename}.mp4" -ss $fromTime -to $toTime -c copy "${filename}_pt_${count}.mp4"
    echo "file '${filename}_pt_${count}.mp4'" >> to-merge.list
    count=$((count+1))
done < "${filename}.txt"

# file merge
`ffmpeg -f concat -safe 0 -i to-merge.list -c copy "${filename}-trimmed.mp4"`


    


    The input file contains time (odd lines are taken as start time and even as the end time). A file I use is :

    


    00:00:00
00:39:34
00:39:38
01:23:14
01:23:16
02:03:45
02:03:48
02:43:43


    



    


    problem faced

    


    The echo in while loop prints this : done02:03:45

    


    The overwriting makes me think the time stored in the variables must contain a special character at the end that makes it invalid in ffmpeg.
ffmpeg throws this error : Invalid duration specification for ss: 01:23:16

    


    Is there a way to cleanup the time variable ?

    


    I have tried to find what is causing this issue or how to get rid of it but drawing a blank.

    



    


    what I have tried so far

    


    use grep -Eo '[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}' to find time. While this works on the shell I am unable to use it in the script.

    


    Tried splitting time by : into hour, min and sec and saving them into an array to then merge them back but this makes it unnecessarily complicated and error prone.

    


    PS :
Is while read to be preferred for reading multiple lines like here or should tools like sed be used for best practice ? Such as sed '2,4 !d' /tmp/test.txt ?