
Recherche avancée
Autres articles (21)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (5860)
-
Piping output of youtube-dl to a script using ffmpeg looks ok using echo but returns an error when executing
29 mai 2020, par I0_olI am trying to use youtube-dl to get the urls of some videos and then pipe the resulting urls into the input of my script. So in my terminal I do



youtube-dl --ignore-config -iga ~/Desktop/youtube/videolist.txt | myscript.sh




In my script I define things as



command='ffmpeg' 
inputArgs='-i' 
outputArgs='-c:v libx264 -preset ultrafast -qp 0' 
directory="${HOME}/Desktop/Videos/"
output="video${count}" 
extension='mp4' 




I test it with
echo
to make sure everything appears in the correct order.


echo "${command}" "${inputArgs}" "${input}" "${outputArgs}" \
"${directory}""${output}${count}"."${extension}"




And the output from that looks correct. But when I try to run the same thing without the preceding
echo
command, i.e.,


"${command}" "${inputArgs}" "${input}" "${outputArgs}" \
"${directory}""${output}${count}"."${extension}"




I get an error message that says





At least one output file must be specified.





So it seems pretty obvious to me that I'm doing something wrong when attempting to execute it.



I have tried :



- 

- quoting the entire line as a whole
- quoting different sections together
- using the
exec
command in front of everything









No matter what I do, an error occurs at some point in the process. I know it's something simple I'm doing wrong. Would someone please enlighten me as to what that might be ?



I feel very strongly that the
.
shouldn't just be in the middle of everything like that, but I really don't know.


Again, everything looks as it should when I run
echo
before the string of shell parameters.


If more of the script I'm using is needed to understand what I'm talking about, that is not a problem.


-
Piping output of youtube-dl to a script using ffmpeg looks ok using echo but returns an error when executing
22 février 2016, par user556068I am trying to use youtube-dl to get the urls of some videos and then pipe the resulting urls into the input of my script. So in my terminal I do
youtube-dl --ignore-config -iga ~/Desktop/youtube/videolist.txt | myscript.sh
In my script I define things as
command='ffmpeg'
inputArgs='-i'
outputArgs='-c:v libx264 -preset ultrafast -qp 0'
directory="${HOME}/Desktop/Videos/"
output="video${count}"
extension='mp4'I test it with
echo
to make sure everything appears in the correct order.echo "${command}" "${inputArgs}" "${input}" "${outputArgs}" \
"${directory}""${output}${count}"."${extension}"And the output from that looks correct. But when I try to run the same thing without the preceding
echo
command, i.e.,"${command}" "${inputArgs}" "${input}" "${outputArgs}" \
"${directory}""${output}${count}"."${extension}"I get an error message that says
At least one output file must be specified.
So it seems pretty obvious to me that I’m doing something wrong when attempting to execute it.
I have tried :
- quoting the entire line as a whole
- quoting different sections together
- using the
exec
command in front of everything
No matter what I do, an error occurs at some point in the process. I know it’s something simple I’m doing wrong. Would someone please enlighten me as to what that might be ?
I feel very strongly that the
.
shouldn’t just be in the middle of everything like that, but I really don’t know.Again, everything looks as it should when I run
echo
before the string of shell parameters.If more of the script I’m using is needed to understand what I’m talking about, that is not a problem.
-
FFmpeg YouTube live streaming automatically stopped after some time (6- 9 min) RTMP node js
30 juin 2020, par Avneesh SinghI am developing a feature where I am capturing the desktop screen and live streaming on YouTube by using the FFmpeg module. The streaming is working fine but the problem is it stopped automatically after some time like 6-9 min and YouTube is showing "no data" receiving.
Below I attached the code.
const process = spawn(pathToFfmpeg,["-probesize", "10M", "-f", "gdigrab", "-i", "desktop", "-framerate", "30", "-f", "dshow", "-i", "audio= Microphone (2 - USB audio device)", "-filter_complex", "amix=inputs=1", "-preset", "fast", "-g", "60", "-tune", "zerolatency", "-c:v", "libx264", "-crf", "10", "-pix_fmt", "yuv420p", "-map", "0", "-maxrate", "1M", "-bufsize", "2M", "-vsync", "vfr", "-acodec", "pcm_s16le", "-b:v", "4500k", "-b:a", "128k", "-f", "flv", "-", ], 
stdio : "pipe"

) ;


after that, I am encoding it by using FFmpeg path.
let proc = ffmpeg(stream).size('1920x1080').videoBitrate('4500k').videoCodec('libx264').fps(30).audioBitrate('128k').audioCodec('aac').audioFrequency(22050).audioChannels(2).toFormat('flv').on('end', () => console.log('file has been converted succesfully') ;).on('error', (err) => console.log('an error happened : ' + err) ;).save(publish) ;