
Recherche avancée
Autres articles (44)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
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" (...)
Sur d’autres sites (3314)
-
How to save the stream URL chunks as a video in NodeJs
2 octobre 2020, par Harsh LodhiI'm trying to download a piece of video from the below URL using axios.


https://r5---sn-gwpa-civy.googlevideo.com/videoplayback?...&range=32104-500230



I'm using below code to fetch the above URL and for save the chunk to the mp4 file.


axios({
 url: MY_URL`,
 method: 'GET',
 responseType: 'stream'
 }).then(function (response) {
 let buffArray = []
 response.data.on('data', (chunk) => {
 buffArray .push(chunk)
 })

 response.data.on('end', (chunk) => {
 let buff = Buffer.concat(buffArray)
 fs.writeFile('output.mp4', buff, (dt) => {
 console.log("File created");
 })
 })
 })



above code is working fine and I'm able to save the video but the video is not able to play.
when I set the range in URL from
&range=32104-500230
to&range=0-500230
then video is working properly. Please try to help that how can I save a video from small chunk of video stream instead of saving full video.

-
Splitting odd and even frames in Gstreamer
4 avril 2014, par user3498379I am building an application whereby I need to split a videostream(RTSP/MJPEG) into individual frames. The extracted frames then need to be put into two named pipes. I need to alternate the frames between two named pipes, i.e. even frames go to pipe one and odd frames go to pipe 2. I have been able to achieve this with ffmpeg using the following command :
ffmpeg -i "rtsp://<ipaddress>/axis-media/media.amp?videocodec=jpeg" -vf select="mod(n-1\,2)" -vcodec mjpeg -f avi -y -vf select="not(mod(n-1\,2))" -vcodec mjpeg -f avi -y
</ipaddress>However I have run into an RTP packet size issue with ffmpeg when using large resolutions e.g. 2048x1536. My question is ; is there a gstreamer equivalent command ? I have the basic gstreamer command which extracts images :
gst-launch rtspsrc location=rtsp://<ipaddress>/axis-media/media.amp?videocodec=jpeg ! decodebin2 ! jpegenc ! multifilesink location="frame%d.jpg"
</ipaddress>But now I need the additional piece, any help will be much appreciated.
-
ffmpeg.exe returned non-zero exit status. Check stdout
31 mars 2019, par Tech GuyI am trying to convert
MP3
file toMP4
in Java using this ffmpeg-cli-wrapper by Andrew Brampton. But when I try to convert that It gives me this error.SLF4J : Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J : Defaulting to no-operation (NOP) logger implementation SLF4J :
See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.[mp4 @ 0000022b6d40c2c0] Could not find tag for codec mpeg4
in stream #0, codec not currently supported in container Could not
write header for output file #0 (incorrect codec parameters ?) :
Invalid argument Error initializing output stream 0:0 —Exception in
thread "main" java.lang.RuntimeException : java.io.IOException :
\ffmpeg\bin\ffmpeg.exe returned non-zero exit status. Check stdout.
at
net.bramp.ffmpeg.job.TwoPassFFmpegJob.run(TwoPassFFmpegJob.java:75)
Caused by : java.io.IOException : \ffmpeg\bin\ffmpeg.exe returned
non-zero exit status. Check stdout. at
net.bramp.ffmpeg.FFcommon.throwOnError(FFcommon.java:51) at
net.bramp.ffmpeg.FFcommon.run(FFcommon.java:113) at
net.bramp.ffmpeg.FFmpeg.run(FFmpeg.java:184) at
net.bramp.ffmpeg.FFmpeg.run(FFmpeg.java:202) at
net.bramp.ffmpeg.job.TwoPassFFmpegJob.run(TwoPassFFmpegJob.java:61)
... 1 moreAnd here is my code,
FFmpegProbeResult fFmpegProbeResult = ffprobe.probe("/path/to/in.mp3");
FFmpegBuilder builder = new FFmpegBuilder()
.setInput(fFmpegProbeResult)
.setFormat("mp3")
.overrideOutputFiles(true)
.addOutput("/path/to/out.mp4")
.setFormat("mp4")
.setAudioChannels(1)
.setAudioCodec("aac")
.setAudioSampleRate(48000)
.setAudioBitRate(32768)
.setVideoCodec("libx264")
.setVideoFrameRate(24, 1)
.setVideoResolution(640, 480)
.setStrict(FFmpegBuilder.Strict.EXPERIMENTAL)
.done();
FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);
executor.createJob(builder).run();
executor.createTwoPassJob(builder).run();How can I fix this error ? How to convert using
ffmpeg
in Java ? Anybody can help me ? Thanks in advance.