
Recherche avancée
Autres articles (66)
-
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 -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (6626)
-
ffmpeg - using bash variable for multiple inputs. Problem with spaces in filenames [duplicate]
30 août 2019, par drake7This question already has an answer here :
I want to concatenate files with different codecs. My code only works for filenames without spaces.
I have a fair amount of experience with using ffmpeg with bash.
However everything I’ve tried to solve the problem did’t work :Let’s say my videos are "01 video.mov" and "02 video.mp4".
not quoting $i : (This is the current status quo of my script.)
ffmpegInput="$ffmpegInput -i ${i}"
results in :
01: No such file or directory
quoting $i :
ffmpegInput="$ffmpegInput -i \"${i}\""
results in :
"01: No such file or directory
This code only works for filenames without spaces :
ffmpegInput=""
for i in *
do
ffmpegInput="$ffmpegInput -i ${i}"
ffmpeg ${ffmpegInput} -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[outv][outa]" -map "[outv]" -map "[outa]" ../output.mkv
doneI did’t expect to encounter problems with quoting.
But the fact that I store all inputs in a variable or an array makes it difficult.
Althought the variable stores the string :
-i "01 video.mov" -i "02 video.mp4"
ffmpeg doesn’t seem to see the first " as a valid quote.
Since ffmpeg throws the error"01: No such file or directory
it seems as if the " is actually there.
-
FFmpeg downmuxing multiple tracks with custom "af"s
26 août 2020, par CasualDemonI am trying to do a custom downmix conversion, that is the rough equivalent of :


ffmpeg -y -i "file.mkv" \
 -map 0:1 -c:0 flac -ac:0 4 \
 -map 0:3 -c:1 flac -ac:1 3 \
 -map 0:3 -c:2 flac -ac:2 3 \
 audio.mkv



I tried using the command :


ffmpeg -y -i "file.mkv" \
 -map 0:1 -c:0 flac -af:0 "pan=3.1| FL < FL + 0.6*BL + 0.6*SL | FR < FR + 0.6*BR + 0.6*SR | FC = FC | LFE = LFE" \
 -map 0:3 -c:1 flac -af:1 "pan=2.1| FL < FL + 0.6*BL + 0.6*SL + 0.5*FC | FR < FR + 0.6*BR + 0.6*SR + 0.5*FC | LFE = LFE" \
 -map 0:3 -c:2 flac -af:2 "pan=2.1| FL < FL + 0.6*BL + 0.6*SL + 0.5*FC + 0.5*LFE | FR < FR + 0.6*BR + 0.6*SR + 0.5*FC + 0.5*LFE" \
 audio.mkv



But it gave an error that only 1 "af" is supported, unlike "ac" :


Only '-af pan=2.1| FL < FL + 0.6*BL + 0.6*SL + 0.5*FC + 0.5*LFE | FR < FR + 0.6*BR + 0.6*SR + 0.5*FC + 0.5*LFE | LFE = FC' read, ignoring remaining -af options: Use ',' to separate filters



So I tried doing as it said, and separated them with a comma :


ffmpeg -y -i "file.mkv" \
 -map 0:1 -c:0 flac \
 -map 0:3 -c:1 flac \
 -map 0:3 -c:2 flac \
 -af "pan=3.1| FL < FL + 0.6*BL + 0.6*SL | FR < FR + 0.6*BR + 0.6*SR | FC = FC | LFE = LFE,pan=2.1| FL < FL + 0.6*BL + 0.6*SL + 0.5*FC | FR < FR + 0.6*BR + 0.6*SR + 0.5*FC | LFE = LFE,pan=2.1| FL < FL + 0.6*BL + 0.6*SL + 0.5*FC + 0.5*LFE | FR < FR + 0.6*BR + 0.6*SR + 0.5*FC + 0.5*LFE | LFE = LFE" \
 audio.mkv



Which started the encoding, but I noticed that it was only applying the last pan, and all three tracks were being downmixed to the last 2.1 !


According to the documentation, https://ffmpeg.org/ffmpeg-filters.html#Filtergraph-syntax-1 adding a "," is creating a "filterchain" which I don't think I want, as I am doing the same filter on three different tracks. So I am at a loss of what I am supposed to do from there.


Thanks for any help !


-
How to bybass any site that restrict multiple live streaming broadcast on a single account ? [closed]
4 août 2024, par kino pizdecI am looking for a working way to use 1 video.mp4 input for 1 site, for 1 account, but broadcast in several output, for example, to different rtmp servers or stream keys. Something similar is seen on YouTube, where 1 channel has many live streams.


I want to do the same, but for another site that offers the following connection options :


- 

- rtmp server and stream key
- Real webcam
- OBS Virtual webcam








I've seen it's possible. People stream up to 4 streams simultaneously on 1 account with 1 video. The question is how.


I have been tormenting the chat GPT for several days and trying different options for writing code for ffmpeg, but I have not been able to achieve more than 2 streams at the same time. I have already managed to make 2 streams at the same time twice, but I have completely forgotten how to do this, because I am constantly trying new code configurations in ffmpeg.


Here is code that I use to attempt to solve my issue.


@echo off
setlocal EnableDelayedExpansion

set "VIDEO_FILE=E:\MegaStream\VIDEO.mp4"

set "streams="
for /f "delims=" %%a in (stream_config.txt) do (
 set "streams=!streams! -f flv %%a"
)

:loop
start /b ffmpeg.exe ^
-re ^
-stream_loop -1 ^
-i "!VIDEO_FILE!" ^
-c:v libx264 ^
-preset veryfast ^
-tune zerolatency ^
-b:v 4000k ^
-maxrate 4400k ^
-bufsize 8000k ^
-pix_fmt yuv420p ^
-g 60 ^
-keyint_min 60 ^
-sc_threshold 0 ^
-r 30 ^
-c:a aac ^
-b:a 96k ^
-ar 44100 ^
-threads 4 ^
-x264opts "nal-hrd=cbr:force-cfr=1" ^
-max_muxing_queue_size 1024 ^
-map 0:v:0 -map 0:a:0 !streams!
-loglevel debug

echo Streaming... Press 'Q' to quit or 'R' to restart.
:input
choice /c QR /n >nul
if errorlevel 2 (
 taskkill /F /IM ffmpeg.exe >nul 2>&1
 echo Restarting stream...
 goto loop
) else if errorlevel 1 (
 taskkill /F /IM ffmpeg.exe >nul 2>&1
 echo Quitting...
 exit /b
)
goto input 



Plus config file with 2 separate lines :
rtmp server 1 / stream key 1
rtmp server 2/ stream key 1


I play a lot with config file and code. I edited them differently so many times so once it worked and site played my 2 stream simultaneously but now I struggle with consistent solution. Would love to hear any guesses on how to bypass these rules.
P.s.
I'm already advised many times on ethitcs and usage of this method, so I'm concerned thanks.


What does not work :


- 

- Launching 2 copies of OBS with different servers and stream keys gives an error
- Plugin for multistreaming OBS
- Using 2 devices, site says "You already have a streaming sesssion" and offers to finish first to start second