
Recherche avancée
Autres articles (32)
-
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 -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...) -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)
Sur d’autres sites (4317)
-
Stream PNG file to youtube with ffmpeg
3 avril 2022, par codingmaster398What I'm trying to do :
I have a PNG file that is constantly getting written to. I want to pipe it (while it changes) to YouTube's RTMP server.


What I've attempted :


runCommand(
 'ffmpeg',
 `-threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size 512 \
-loop 1 -re -i place.png \
-stream_loop -1 \
-filter:v "crop=in_w/2:in_h/2:1920:1280" \
-pix_fmt yuv420p -c:v libx264 -qp:v 19 -profile:v high -rc:v cbr_ld_hq -level:v 4.2 -r:v 60 -g:v 120 -bf:v 3 -refs:v 16 -preset fast -f flv rtmp://a.rtmp.youtube.com/live2/${steamKey}`,
 () => {},
 () => console.log('finished')
)

setInterval(()=>{
 image.write('./place.png') // Jimp },5000)



What happens :


ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 10.3.0 (GCC)
 configuration: --disable-static --prefix=/nix/store/7x62j0rls5dpriig91qrk0qh7hvvqd7k-ffmpeg-4.4.1 --arch=x86_64 --target_os=linux --enable-gpl --enable-version3 --enable-shared --enable-pic --enable-libsrt --enable-runtime-cpudetect --enable-hardcoded-tables --enable-pthreads --disable-w32threads --disable-os2threads --enable-network --enable-pixelutils --enable-ffmpeg --disable-ffplay --enable-ffprobe --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-avresample --enable-avutil --enable-postproc --enable-swresample --enable-swscale --disable-doc --enable-libass --enable-bzlib --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libmp3lame --enable-iconv --enable-libtheora --enable-libssh --enable-vaapi --enable-libdrm --enable-vdpau --enable-libvorbis --enable-libvpx --enable-lzma --disable-opengl --disable-libmfx --disable-libaom --enable-libpulse --enable-sdl2 --enable-libsoxr --enable-libx264 --enable-libxvid --enable-zlib --enable-libopus --enable-libspeex --enable-libx265 --enable-libdav1d --disable-debug --enable-optimizations --disable-extra-warnings --disable-stripping
 libavutil 56. 70.100 / 56. 70.100
 libavcodec 58.134.100 / 58.134.100
 libavformat 58. 76.100 / 58. 76.100
 libavdevice 58. 13.100 / 58. 13.100
 libavfilter 7.110.100 / 7.110.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 9.100 / 5. 9.100
 libswresample 3. 9.100 / 3. 9.100
 libpostproc 55. 9.100 / 55. 9.100

Input #0, png_pipe, from 'place.png':
 Duration: N/A, bitrate: N/A
 Stream #0:0: Video: png, rgba(pc), 2000x1000, 25 fps, 25 tbr, 25 tbn, 25 tbc
Option stream_loop (set number of times input stream shall be looped) cannot be applied to output url rtmp://a.rtmp.youtube.com/live2/[key here lol] -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for output file rtmp://a.rtmp.youtube.com/live2/[key here lol].
Error opening output files: Invalid argument

finished



References :


Send live stream packets to youtube with nodejs ?


streaming to youtube with ffmpeg


-
Matomo Further Invests in Security by Doubling Bug Bounty Rewards
7 janvier 2022, par erin — Community, Press Releases -
FFMPEG on MACOSX is complaining "no matches found"
15 juin 2022, par Byte PlayerI have a FFMPEG command line function that works perfectly on Windows but on Mac produces the following error :


"no matches found [1:a]adelay=15000:all=1[aud2]"

"no matches found [2:a]adelay=5000:all=1[aud3]"

Here is the command (less the full paths which just made it very hard to read). I've verified that the files exist at the paths specified by copying the file path from the command line and going into terminal, typing "open" then pasting in the copied path and pressing enter. In all cases they played.


ffmpeg -loglevel warning -hide_banner -y -i "file1.mp3" -t 5 -i "file2.mp3" -i "file3.mp3" -i "file4.mp3" -ss 25 -t 15 -i "file5.mp3" -ss 15 -t 5 -i "file6.mp3" -filter_complex [1:a]adelay=15000:all=1[aud1];[2:a]adelay=5000:all=1[aud2];[4:a]adelay=25000:all=1[aud4];[5:a]adelay=5000:all=1[aud5];[aud1][aud2][aud4][aud5]amix=inputs=6:duration=longest:dropout_transition=0:normalize=0 "output.mp3"



I know the immediate response (as it should be), is update your FFMPEG but I got the latest build (built on 2022-06-12) and here's what it reports...


ffmpeg version N-107092-g843c4346b1-tessus Copyright (c) 2000-2022 the FFmpeg developers
 built with Apple clang version 11.0.0 (clang-1100.0.33.17)
 configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
 libavutil 57. 26.100 / 57. 26.100
 libavcodec 59. 33.100 / 59. 33.100
 libavformat 59. 24.100 / 59. 24.100
 libavdevice 59. 6.100 / 59. 6.100
 libavfilter 8. 40.100 / 8. 40.100
 libswscale 6. 6.100 / 6. 6.100
 libswresample 4. 6.100 / 4. 6.100
 libpostproc 56. 5.100 / 56. 5.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...



Any insight or help would be GREATLY appreciated.