
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (50)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (7198)
-
ffmpeg - converting one audio track of a multi-track mp4
30 décembre 2023, par Shaun.MI'm having a few mp4 with two audio tracks,
an english one in aac and a french one in dts.


Now I want to convert only the french dts to eac3 with a single ffmpeg command.


I use


ffmpeg -hide_banner -i input.mp4 ^
 -map_metadata -1 ^
 -map 0:0 -c:v copy ^
 -map 0:1 -c:a copy ^
 -map 0:2 -c:a eac3 -b:a 1536k ^
 -metadata:s:a:0 language=eng ^
 -metadata:s:a:0 title="Stereo" ^
 -metadata:s:a:1 language=fra ^
 -metadata:s:a:1 title="Stereo" ^
output.mp4



This works quite nice, but it converts both audio tracks to eac3, instead of leaving the first one untouched ...
What's wrong in the command ?


(ffmpeg version 2023-12-23-git-f5f414d9c4-full_build-www.gyan.dev under Windows 10)


-
avformat/ffrtmpcrypt : Fix int-conversion warning
22 décembre 2023, par Frank Plowmanavformat/ffrtmpcrypt : Fix int-conversion warning
The gcrypt definition of `bn_new` used to use the return statement
on errors, with an AVERROR return value, regardless of the signature
of the function where the macro is used - it is called in
`dh_generate_key` and `ff_dh_init` which return pointers. As a result,
compiling with gcrypt and the ffrtmpcrypt protocol resulted in an
int-conversion warning. GCC 14 may upgrade these to errors [1].This patch fixes the problem by changing the macro to remove `AVERROR`
and instead set `bn` to null if the allocation fails. This is the
behaviour of all the other `bn_new` implementations and so the result is
already checked at all the callsites. AFAICT, this should be the only
change needed to get ffmpeg off Fedora's naughty list of projects with
warnings which may be upgraded to errors in GCC 14 [2].[1] : https://gcc.gnu.org/pipermail/gcc/2023-May/241264.html
[2] : https://www.mail-archive.com/devel@lists.fedoraproject.org/msg196024.htmlSigned-off-by : Frank Plowman <post@frankplowman.com>
Signed-off-by : Martin Storsjö <martin@martin.st> -
ffmpeg - store desired output to python variable
15 janvier 2024, par Chris PIf i run :
ffmpeg -list_devices true -f dshow -i dummy
i get :

ffmpeg version 2023-01-30-git-2d202985b7-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
 built with gcc 12.2.0 (Rev10, 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-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --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 57. 44.100 / 57. 44.100
 libavcodec 59. 59.100 / 59. 59.100
 libavformat 59. 36.100 / 59. 36.100
 libavdevice 59. 8.101 / 59. 8.101
 libavfilter 8. 56.100 / 8. 56.100
 libswscale 6. 8.112 / 6. 8.112
 libswresample 4. 9.100 / 4. 9.100
 libpostproc 56. 7.100 / 56. 7.100
[dshow @ 00000236357d0480] "HP True Vision HD Camera" (video)
[dshow @ 00000236357d0480] Alternative name "@device_pnp_\\?\usb#vid_04f2&pid_b6ab&mi_00#6&763f234&2&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
[dshow @ 00000236357d0480] "Microphone Array (Intel® Smart Sound Technology for Digital Microphones)" (audio)
[dshow @ 00000236357d0480] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{E8824DE9-F848-47F1-BB2A-EB24E11050FC}"
dummy: Immediate exit requested



From this output i want to store : "HP True Vision HD Camera" (first video output) in a python variable.


Is this possible ?


I am trying


import subprocess
ffmpeg_command = ["ffmpeg", "-list_devices", "true","-f", "dshow", "-i", "dummy"]
pipe = subprocess.run(ffmpeg_command,stdout=subprocess.PIPE,stderr=subprocess.PIPE,bufsize=10**8)
output = pipe.stdout
lines = output.splitlines()
for line in lines:
 if line.startswith("[dshow @"):
 if "(video)" in line:
 camera_info = line.split("\"")[1]
 print(camera_info)