Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (57)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (6317)

  • str_replace %% na File Name In Batch File [closed]

    11 août 2024, par Harinder

    I want to replace the current file name inside a batch file

    


    for %%a in ("*.mp4") do  ffmpeg -i "%%~a" -vf "drawtext=text=%%~na:fontfile='C\:\\Users\\harin\\Desktop\\test\\Fonts\\Glamy Sunrise.ttf':fontcolor=black:fontsize=54:x=20:y=50" -b:v 1M -r 60 -b:a 144k  -crf 17 "C:\Users\harin\Desktop\test\in\Working\1\%%~na.mp4"


    


    Need to replace drawtext=text=%%~na with some thing like this drawtext=text=str_replace(array('-','_'),array(' ',''),%%~na)

    


    how can i do this... thx

    


  • %a and %%a suddenly don't work in Win 10 cmd and batch file respectively ?

    14 janvier 2017, par cobaltB12

    I was trying to batch convert a folder of .flac to .mp3 using FFMPEG, but when i ran my batch file I got the "%F is unexpected at this time" error, even though i used "%%F" in the batch file. To test what was really the problem, i proceeded to type variations of %F into cmd directly, but could not get it to work either. Did something change in windows 10 regarding the use of variable names in the for loop ?

    cmd commands I tried :

    C:\Users\yt\Music\Joe Hisaishi (Classical Guitar) - Copy>for "%F" in     (*.flac) echo %F
    "%F" was unexpected at this time.

    C:\Users\yt\Music\Joe Hisaishi (Classical Guitar) - Copy>for %F in     (*.flac) echo %F
    echo was unexpected at this time.

    C:\Users\yt\Music\Joe Hisaishi (Classical Guitar) - Copy>for "%%F" in     (*.flac) echo %%F
    "%%F" was unexpected at this time.

    C:\Users\yt\Music\Joe Hisaishi (Classical Guitar) - Copy>for "%f" in     (*.flac) echo %f
    "%f" was unexpected at this time.

    C:\Users\yt\Music\Joe Hisaishi (Classical Guitar) - Copy>for "%g" in     (*.flac) echo %g
    "%g" was unexpected at this time.

    C:\Users\yt\Music\Joe Hisaishi (Classical Guitar) - Copy>for "%g" in     ("*.*") echo %g
    "%g" was unexpected at this time.

    C:\Users\yt\Music\Joe Hisaishi (Classical Guitar) - Copy>for "%g" in     ("*.*") do echo %g
    "%g" was unexpected at this time.

    original batch file for FFMPEG

    cd "\Users\yt\Music\Joe Hisaishi (Classical Guitar) - Copy"
    echo in directory "%cd%"
    pause
    for "%%F" in ("*.flac") do (
    echo converting "%%F"
    "C:\Users\yt\Downloads\OtherApps\FFMPEG\bin\ffmpeg.exe" -i "%%F"     -codec:a libmp3lame -qscale:a 2 "%%~nF.mp3"
    echo del "%%F"
    )
    cd "%~dp0"
  • Extracting Subtitles using FFMPEG (Unsupported subtitles codec : eia_608)

    4 octobre 2017, par Marian Montagnino

    The info for the input file is :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cpcdemo.mov':
    Metadata:
       major_brand     : qt
       minor_version   : 537199360
       compatible_brands: qt
       creation_time   : 2010-06-23T17:51:49.000000Z
       encoder         : CoreMediaAuthoring 700, CoreMedia 484.11, i386
    Duration: 00:01:45.90, start: 0.000000, bitrate: 940 kb/s
       Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
       Metadata:
       creation_time   : 2010-06-23T17:51:49.000000Z
       handler_name    : Apple Alias Data Handler
       Stream #0:1: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 480x270 [SAR 1:1 DAR 16:9], 800 kb/s, 23.98 fps, 23.98 tbr, 23976 tbn, 47952 tbc (default)
       Metadata:
       creation_time   : 2010-06-23T17:51:49.000000Z
       handler_name    : Apple Alias Data Handler
       Stream #0:2(eng): Subtitle: eia_608 (c608 / 0x38303663), 480x270, 4 kb/s (default)
       Metadata:
       creation_time   : 2010-06-23T17:51:49.000000Z
       handler_name    : Apple Alias Data Handler

    And shows that stream #0:2 contains subtitles in eia_608 format. Using the following command to extract those subtitles into the output.srt file :

    ffmpeg -i cpcdemo.mov -map 0:2 -c:s copy output.srt

    We get the following output :

    ffmpeg version N-85692-g78a5fc4 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
    configuration: --prefix=/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build/include --extra-ldflags=-L/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build/lib --bindir=/tmp/gm-ffmpeg-1.0.4/BUILDROOT/gm-ffmpeg-1.0.4-1.el7.centos.x86_64/opt/graymeta/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
    libavutil      55. 61.100 / 55. 61.100
    libavcodec     57. 93.100 / 57. 93.100
    libavformat    57. 72.101 / 57. 72.101
    libavdevice    57.  7.100 / 57.  7.100
    libavfilter     6. 87.100 /  6. 87.100
    libswscale      4.  7.101 /  4.  7.101
    libswresample   2.  8.100 /  2.  8.100
    libpostproc    54.  6.100 / 54.  6.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cpcdemo.mov':
    Metadata:
       major_brand     : qt
       minor_version   : 537199360
       compatible_brands: qt
       creation_time   : 2010-06-23T17:51:49.000000Z
       encoder         : CoreMediaAuthoring 700, CoreMedia 484.11, i386
    Duration: 00:01:45.90, start: 0.000000, bitrate: 940 kb/s
       Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
       Metadata:
       creation_time   : 2010-06-23T17:51:49.000000Z
       handler_name    : Apple Alias Data Handler
       Stream #0:1: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 480x270 [SAR 1:1 DAR 16:9], 800 kb/s, 23.98 fps, 23.98 tbr, 23976 tbn, 47952 tbc (default)
       Metadata:
       creation_time   : 2010-06-23T17:51:49.000000Z
       handler_name    : Apple Alias Data Handler
       Stream #0:2(eng): Subtitle: eia_608 (c608 / 0x38303663), 480x270, 4 kb/s (default)
       Metadata:
       creation_time   : 2010-06-23T17:51:49.000000Z
       handler_name    : Apple Alias Data Handler
    File 'output.srt' already exists. Overwrite ? [y/N] y
    [srt @ 0x259c460] Unsupported subtitles codec: eia_608
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Stream mapping:
    Stream #0:2 -> #0:0 (copy)
       Last message repeated 1 times

    It states that eis_608 is an unsupported codec, except I see that it’s listed as a supported codec under :

    ffmpeg -codecs

    Any possible reasons why this may be failing ?