
Recherche avancée
Autres articles (50)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (9191)
-
JavaCPP BytePointer OutOfMemory Error
20 septembre 2016, par Tunahan BayındırSorry for bad English, not a native speaker.
I am using sourab-sharma’s TouchToRecord library, available on github, I updated javacv and javacpp and now app crashes on video record with,
java.lang.OutOfMemoryError: Cannot allocate 267850262 + 614403 bytes (> Pointer.maxBytes)
at org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:446)
at org.bytedeco.javacpp.Pointer.init(Pointer.java:118)
at org.bytedeco.javacpp.BytePointer.allocateArray(Native Method)
at org.bytedeco.javacpp.BytePointer.<init>(BytePointer.java:82)
at org.bytedeco.javacv.FFmpegFrameFilter.pushImage(FFmpegFrameFilter.java:265)
at org.bytedeco.javacv.FFmpegFrameFilter.push(FFmpegFrameFilter.java:252)
at org.bytedeco.javacv.FFmpegFrameFilter.push(FFmpegFrameFilter.java:248)
at com.dodo.challenger.videorecorder.RecorderThread.processBytesUsingFrame(RecorderThread.java:186)
at com.dodo.challenger.videorecorder.RecorderThread.processFramesFromList(RecorderThread.java:84)
at com.dodo.challenger.videorecorder.RecorderThread.run(RecorderThread.java:59)
</init>this. Have been working on 8 straight hours, no luck yet.
JavaCpp version was : 1.1 - now : 1.2.4,
JavaCv version was : 1.1 - now : 1.2.1
Also this message appears on error trace just in version 1.2.4, below don’t have it.
No implementation found for long org.bytedeco.javacpp.Pointer.physicalBytes()
-
How to update this script to generate HLS video with different resolution streams ? [closed]
1er décembre 2023, par Andy ZI have the following FFmpeg script :


ffmpeg -i video.mp4 -i video.vtt \
 -map 0:v -map 0:a:0 -map 1 \
 -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \
 -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \
 -f hls -hls_playlist_type vod -var_stream_map "v:0,a:0,s:0" \
 -master_pl_name video.m3u8 -hls_time 6 -hls_list_size 0 -hls_allow_cache 1 -start_number 1 \
 -hls_segment_filename "output/hls/%v/seg-%d.ts" output/hls/%v/index.m3u8



Currently it only produces one 1080x1920 stream, how do I produce more lower resolution ones so it can adjust based on client bandwidth ?


Also, I've noticed that it doesn't add the reference to the VTT file to the master HLS playlist ; I had to add this manually but is there a way to make FFmpeg do it for me ?


#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="en",CHARACTERISTICS="public.accessibility.transcribes-spoken-dialog",URI="0/index_vtt.m3u8"



I've tried this, but I get an argument error :


ffmpeg -i video.mp4 -i video.vtt \
 -map 0:v -map 0:a:0 -map 1 \
 -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \
 -s:v:1 720x1280 -c:v:1 h264 -b:v:1 300K \
 -s:v:2 480x854 -c:v:2 h264 -b:v:2 150K \
 -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \
 -f hls -hls_playlist_type vod -var_stream_map "v:0,a:0,s:0 v:1,a:1 s:1 v:2,a:2 s:2" \
 -master_pl_name video.m3u8 -hls_time 6 -hls_list_size 0 -hls_allow_cache 1 -start_number 1 \
 -hls_segment_filename "output/hls/%v/seg-%d.ts" output/hls/%v/index.m3u8



-
subprocess.Popen can't find the file when shell=False and doesn't know ffmpeg when shell=True [duplicate]
26 novembre 2023, par WaschbrettwadeI am trying to get an offline speech-to-text library called "vosk" running following this tutorial : https://medium.com/@johnidouglasmarangon/automatic-speech-recognition-with-vosk-828569219f2b


In this, subprocess.Popen is being used like this :


ffmpeg_command = [
 "ffmpeg",
 "-nostdin",
 "-loglevel",
 "quiet",
 "-i",
 filename,
 "-ar",
 str(SAMPLE_RATE),
 "-ac",
 "1",
 "-f",
 "s16le",
 "-",
 ]

 with subprocess.Popen(ffmpeg_command, stdout=subprocess.PIPE) as process:



When running this in Jupyter Notebook, no problem at all. But whenever I run this in VSCode, it produces the error :


FileNotFoundError: [WinError 2] The system couldn't find the specified file (translated to English by me)



When using shell=True as in


with subprocess.Popen(ffmpeg_command, stdout=subprocess.PIPE, shell=True) as process:



it tells me in the terminal (translated) :


The command "ffmpeg" ist either written wrong or couldn't be found. 



Do you have any idea what's causing these issues and how to fix them ?