Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (81)

  • 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

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (11249)

  • Pydub The system can not find the file specified

    11 janvier 2021, par Madar

    So here is my code :

    


    from pydub import AudioSegment
sound1 = AudioSegment.from_mp3("sound_0.mp3")
sound2 = AudioSegment.from_mp3("sound_1.mp3")

sound = sound1 + sound2
sound.export("test.mp3",format="mp3")


    


    Problem :
I got the error message : WindowsError : [Error 2] The system can not find the file specified

    


    System configuration
Python version : 3.8
Pydub version : I just installed it
ffmpeg or avlib ? : ffmpeg
ffmpeg/avlib version : 2020-12-15-git-32586a42da-full_build-www.gyan.dev

    


    What did I try ?
So, I found some things to do on a Stackoverflow subject,
I tried to add this

    


    pydub.AudioSegment.ffmpeg = "way//to//ffmpeg.exe"


    


    But it doesn't worked, then this

    


    AudioSegment.converter = "way//to//ffmpeg.exe"


    


    Still doesn't work, so, because I'm on spyder with anaconda, I tried this on the anaconda prompt

    


    conda install -c conda-forge ffmpeg


    


    I even tried to put ffmpeg.exe,ffplay.exe in the current working directory but still doesn't worked..

    


    So I'm desperately here for some help, thanks in advance

    


  • using for loop in powershell with ffmpeg to create thumbnails

    29 septembre 2020, par blue

    I have this basic for loop combined with ffmpeg that creates thumbnails for each video.

    


    Could anyone help me figure out why it doesn't work ? I don't really know much about powsershell.

    


    If i were to use a regular array it works but when i use a pre-sized array it does not.
EDIT :
somehow figured it out, i should have included the extention'.png' in the array instead of adding at the end of the for loop.i also didn't define a size for the array.

    


    $files = @(Get-ChildItem -Path 'D:\other stuff\ffmpeg test\*.mp4')
$filetext = @()
$test = 'd.png'

  
 for ($i=0; $i -lt $files.length; $i++){ 
 $filetext += (Get-Item $files[$i]).Basename + '.png'
 ffmpeg -i $files[$i] -ss 00:00:01  -vframes 1 $filetext[$i] 

}


    


    PS D:\other stuff\ffmpeg test> $files = @(Get-ChildItem -Path 'D:\other stuff\ffmpeg test\*.mp4')
$filetext = [Object[]]::new(100)


for ($i=0; $i -lt $files.length; $i++) {
  $filetext[$i] = % {$files[$i].BaseName}
  ffmpeg -i $files[$i] -ss 00:00:01  -vframes 1 $filetext[$i]'.png'
    
}

ffmpeg : ffmpeg version 2020-09-27-git-a3a6b56200-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
At line:7 char:3
+   ffmpeg -i $files[$i] -ss 00:00:01  -vframes 1 $filetext[$i]'.png'
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (ffmpeg version ...mpeg developers:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
  built with gcc 10.2.0 (Rev3, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib 
--enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm 
--enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libwavpack --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus 
--enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 59.100 / 56. 59.100
  libavcodec     58.108.100 / 58.108.100
  libavformat    58. 59.100 / 58. 59.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 87.100 /  7. 87.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\other stuff\ffmpeg test\sample1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.25.101
  Duration: 00:00:30.87, start: 0.000000, bitrate: 
411 kb/s
    Stream #0:
0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 460x258 [SAR 1:1 DAR 230:129], 276 kb/s, 
29.97 fps, 
29.97 tbr, 
11988 tbn, 
59.94 tbc
 (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:
1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : 
SoundHandler
[NULL @ 000001c582d03700] 
Unable to find a suitable output format for 'sample1'
sample1: Invalid argument
ffmpeg : ffmpeg version 2020-09-27-git-a3a6b56200-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
At line:7 char:3
+   ffmpeg -i $files[$i] -ss 00:00:01  -vframes 1 $filetext[$i]'.png'
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (ffmpeg version ...mpeg developers:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
  built with gcc 10.2.0 (Rev3, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib 
--enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm 
--enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libwavpack --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus 
--enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 59.100 / 56. 59.100
  libavcodec     58.108.100 / 58.108.100
  libavformat    58. 59.100 / 58. 59.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 87.100 /  7. 87.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\other stuff\ffmpeg test\sample2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.25.101
  Duration: 
00:00:24.9
3
, start:
 
0.000000, bitrate: 789 kb/s
    Stream #0:
0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 460x460 [SAR 1:1 DAR 1:1], 658 kb/s, 30 fps, 30 tbr, 15360 tbn, 
60 tbc (default)
    Metadata:
      handler_name    : 
VideoHandler
    Stream #0:
1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[NULL @ 00000267c8bb0540] 
Unable to find a suitable output format for 'sample2'
sample2: Invalid argument


    


  • pgssubdec : fix subpicture output colorspace and range

    24 avril 2016, par Jan Ekström
    pgssubdec : fix subpicture output colorspace and range
    

    Functionality used before didn’t widen the values from limited to
    full range. Additionally, now the decoder uses BT.709 where it
    should be used according to the video resolution.

    Default for not yet set colorimetry is BT.709 due to most observed
    HDMV content being HD.

    BT.709 coefficients were gathered from the first two parts of BT.709
    to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
    They were additionally confirmed by manually calculating values.

    Fixes #4637

    • [DH] libavcodec/pgssubdec.c
    • [DH] libavutil/colorspace.h