
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (95)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe 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 (6957)
-
CMD Batch Variable Won't Save FFprobe Output
15 juillet 2017, par Matt McManisI have an CMD Batch Script that will convert a folder of mp4 videos to webm.
You will need :
- FFmpeg/FFprobe installed and set in Environment Variables to run from CMD.
- A folder with an mp4 for FFprobe to parse.
To make it easy, this is only the first part of the script, showing the
Video Bitrate
variable.Here is a full script, just replace the paths.
https://pastebin.com/raw/3ng77ExzHow the Script works :
- Loops through all videos in folder
- Has FFprobe parse the Video’s Bitrate and save it to
%V
and
%vBitrate%
. - Has FFmpeg use
%V
. Such as-b:v %V
will become the parsed value
-b:v 9401k
. - Converts each video from mp4 to webm using the parsed Bitrate
Problem
I can’t get FFprobe’s Output to save to the variable. I’ve come up with a workaround, having it first save the bitrate value to a
temp file
, then import that to the%vBitrate%
variable.Example :
(%V > tmp_vBitrate) & SET /p vBitrate= < tmp_vBitrate
.
Works
Temp File Variable
cd "C:\Users\Matt\Videos\" && for %f in (*.mp4) do ffprobe -i "C:\Users\Matt\Desktop\Test\%~f" -select_streams v:0 -show_entries stream=bit_rate -v quiet -of csv="p=0" & for /f "tokens=*" %V in ("ffprobe -i "%~f" -select_streams v:0 -show_entries stream=bit_rate -v quiet -of csv=p=0") do (echo ) & (%V > tmp_vBitrate) & SET /p vBitrate= < tmp_vBitrate & del tmp_vBitrate & for /F %V in ('echo %vBitrate%') do (echo %V)
Does Not Work
Memory Variable
cd "C:\Users\Matt\Videos\" && for %f in (*.mp4) do ffprobe -i "C:\Users\Matt\Desktop\Test\%~f" -select_streams v:0 -show_entries stream=bit_rate -v quiet -of csv="p=0" & for /f "tokens=*" %V in ("ffprobe -i "%~f" -select_streams v:0 -show_entries stream=bit_rate -v quiet -of csv=p=0") do (echo ) & SET vBitrate=%V & for /F %V in ('echo %vBitrate%') do (echo %V)
Testing It
Run the first command. When it is finished, type
echo %vBitrate%
in CMD and press Enter. You’ll see the bitrate of the last mp4 file parsed.Do the same for the second command and you’ll see it doesn’t work.
Solution
I would like to get rid of the
Temp File Variable
and get the second command to work.(%V > tmp_vBitrate) & SET /p vBitrate= < tmp_vBitrate
to justSET vBitrate=%V
.Maybe this whole thing can be simplified ? Am I using the variables wrong ?
-
Python ffmpeg does not save the mp4 clips to file
30 janvier 2021, par oo92I'm using the ffmpeg Python library to save 60 second mp4 clips to file from Twitch livestreams using its API. This is my code :


current_dir = os.getcwd()

client = TwitchClient(client_id='')
streams_now = client.streams.get_live_streams(limit=100, offset=900)
epoch = str(math.ceil(time.time()))

if not os.path.exists(current_dir + '/twitch_videos/'):
 os.mkdir(current_dir + '/twitch_videos/')

for i in range(0, 1):
 try:
 username = streams_now[i]['channel']['name']
 id = streams_now[i]['id']
 game = streams_now[i]['game']
 game = game.translate(str.maketrans({':': '-', ' ': '-', "'": '', '!': '', '&': '_', '.': '', '+': '_'}))
 streaming = streamlink.streams('http://twitch.tv/' + username)
 stream = streaming["best"].url

 twitch_stream = ffmpeg.input(stream)

 twitch_stream = ffmpeg.filter(twitch_stream,
 'fps',
 fps=1,
 round='up')

 twitch_stream = ffmpeg.output(twitch_stream,
 current_dir + '/twitch_videos/' + '%d_' + username + '_' + epoch + '.mp4',
 sc_threshold='0',
 g='60',
 f='segment',
 segment_time='600',
 segment_format_options='movflags=+faststart',
 reset_timestamps='1')frl3dqgn21bbpp6tajjvg5pdevczac
 ffmpeg.run(twitch_stream)


 except:
 pass



I am concatenating the path it should go to, to the name of the file. But the folder is empty after I take a look.


-
How to save synthesized audio during streaming distribution
7 avril 2022, par its-ogawaI would like to stream a composite of microphone audio and digital sound sources by ffmpeg and save the delivery to an m3u8 file.


Below are the commands I have actually tried.


ffmpeg -rtbufsize 100M -f dshow -i video=<my webcam="webcam">:audio=<my microphone="microphone"> -re -stream_loop -1 -i <my sound="sound" source="source"> -filter_complex "[0]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,adelay=2100|2100,volume@voice=volume=10dB[voice],[1]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,azmq,volume@bgm=volume=0.2[bgm],[voice][bgm]amerge=inputs=2[out]" -map 0:v -map [out]:a -f mpegts -flush_packets 0 udp://XXX.XXX.XXX.XXX:XXX?pkt_size=1316 -f hls -hls_time 5 hls.m3u8
</my></my></my>


I have played an m3u8 created this way, but I cannot hear the digital sound source that I am supposed to have synthesized.
Even though the synthesized audio was audible when streamed.


Perhaps you need to set up something like
-map 0:v -map [out]:a
when saving to the m3u8 file, in which case theOutput with label 'out' does not exist in any defined filter graph, or was already used elsewhere.
message appears and does not work.