
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (81)
-
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 (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (5856)
-
OpenCV+ffmpeg : Set max_analyze_duration ?
3 avril 2013, par Christian Jonassenimport sys
import cv
video = "http://192.168.1.15:8000/video.mjpg" # from motion
capture = cv.CaptureFromFile(video)
print capture
cv.NamedWindow('Stream', 1 )
while True:
frame = cv.QueryFrame(capture)
if frame is None:
print "No frame, exiting program"
break
else:
cv.ShowImage('Stream', frame)
cv.WaitKey(20), which sort of works. Meaning that after a while, I get
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mjpeg @ 0xb46720] max_analyze_duration reached
[mjpeg @ 0xb46720] Estimating duration from bitrate, this may be inaccurate
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mjpeg @ 0xb46720] max_analyze_duration reached
[mjpeg @ 0xb46720] Estimating duration from bitrate, this may be inaccurate
<capture 0x7f0aed25c630="0x7f0aed25c630">
</capture>The stream then works fine (it's a bit speedy in the start).
It makes sense : FFMPEG finds the stream mysterious, and therefore analyzes it for the maximum duration, which makes the buffer full, and hence the speediness at the start. Now, is there a way I can (without recompiling FFMPEG) set max_analyze_duration, or otherwise pass some hints to FFMPEG so that it doesn't analyse the stream until max_analyze_duration has passed ?
The stream is from the motion program : an MJPEG stream of 10 FPS with 640x480.
-
FFMPEG Audio/Video out of sync after transcoding video in segments
25 mai 2017, par IdanMy system transcodes videos in a very specific way.
- separating the video and the audio
- transcoding the audio stream
- segmenting the video
- transcoding each of the segments of the video
- concat all segments back to 1 video
- merging the new transcoded video and audio back together
While at 99% of the times the process works as it should and the result is a valid video+audio file. in 1% of the times, I get the video and audio out of sync.
When investigated the issue I noticed that the sync issue appears in a specific segment/s. Meaning, if the video was sliced into 100 segments, the sync can be ok for the first 50 segments, then something happens and the audio or video gets an offset and goes out of sync. It can occur in any number of segments in one video.
I guess it’s something to do with timestamps getting lost in the process and segments changing their length in the process but I have no idea how I can overcome it. Open for suggestions.
The commands I use for each step (paths were shorten and may not match, not real issue there) :
Segmenting the video :
ffmpeg -fflags +genpts -i $INPUT_FILE -c copy -map 0:0 -flags -global_header -segment_time 10 -break_non_keyframes 0 -reset_timestamps 1 -segment_list segments.list -segment_list_type ffconcat -write_empty_segments 0 -segment_format mp4 -f segment seg-%d.mp4
Transcoding audio :
ffmpeg -i $INPUT_FILE -vn -c:a aac -threads 1 -ac 2 -b:a 125588 audio.mp4
Transcoding each of the segments :
ffmpeg -y -i $f -an -vcodec libx264 -threads 4 -r 30 -pix_fmt yuv420p -crf 20 -preset:v fast -profile:v main -level:v 4.1 transcoded/$f
Concat segments :
ffmpeg -y -f concat -i segments.list -c copy -movflags +faststart file_video.mp4
Combine video and audio :
ffmpeg -y -i file_video.mp4 -i file_audio.mp4 -c copy -shortest file_out.mp4
-
rtsp : rename certain options after a deprecation period
25 janvier 2018, par wm4rtsp : rename certain options after a deprecation period
The "timeout" option name inherently clashes with the meaning of the
HTTP libavformat protocol option with the same name. Rename it after a
deprecation period to make it compatible with the HTTP one.