
Recherche avancée
Médias (16)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (59)
-
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (5854)
-
Prepending generated audio silence when merging audio w/ non-zero starting PTS and video with zero-based PTS for equal duration, aligned streams
20 juillet 2021, par hedgehog90When extracting segments from a media file with video and audio streams without re-encoding (-c copy), it is likely that the requested seek & end time specified will not land precisely on a keyframe in the source.


In this case, ffmpeg will grab the nearest keyframe of each track and position them with differing starting PTS values so that they remain in sync.


Video keyframes tend to be a lot more spaced apart, so you can often end up with something like this :




Viewing the clip in VLC, the audio will start at 5 seconds in.


However, in other video players or video editors I've noticed this can lead to some playback issues or a/v desync.


A solution would be to re-encode both streams when extracting the clip, allowing ffmpeg to precisely seek to the specified seek time and generating equal length & synced audio and video tracks.


However, in my case I do not want to re-encode the video, it is costly and produces lower quality video and/or greater file sizes. I would prefer to only re-encode the audio, filling the initial gap with generated silence.


This should be simple, but everything I've tried has failed to generate silence before the audio stream begins.


I've tried apad, aresample=sync=1, and using amerge to combine the audio with anullsrc. None of it works.


All I can think to possibly get around this is to use ffprobe on the misaligned source to retrieve the first audio PTS, and in a second ffmpeg process apply this value as a negative -itoffset, then concatting the audio track with generated silence lasting the duration of silence... But surely there's a better way, with just one instance of ffmpeg ?


Any ideas ?


-
How to convert a single photo into video with some filters without losing performance ?
11 avril 2019, par Zedd WI have a picture in jpeg format : cat.
I converted this picture into a video through some ffmpeg filter :
scale
andzoompan
. The video is that the picture is slowly enlargedThen, I encountered some problems when using the following command.
command 1
ffmpeg -loop 1 -i cat.jpeg -filter_complex "scale=iw*2:-1,zoompan=z='zoom+0.002':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=720x960" -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -crf 28 -y -t 5 out.mp4
command 2 (Just adjust the scale value of command 1)
ffmpeg -loop 1 -i cat.jpeg -filter_complex "scale=iw*8:-1,zoompan=z='zoom+0.002':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=720x960" -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -crf 28 -y -t 5 out.mp4
Problems :
-
The picture in the video will zoom in slowly, which is true, but until about the fourth second, the picture will return to the minimum and re-enlarge.Is this the filter parameter I used wrong ?
-
There is a warning after running the command :
[swscaler @ 0x113c66000] Warning: data is not aligned! This can lead to a speed loss
. The picture size is 720 x 960 and the video is the same. 720/16 is an integer and 960/16 also an integer. So what not aligned ? -
There is another warning :
deprecated pixel format used, make sure you did set range correctly
. Did I set thepix_fmt
parameter wrong ? -
command 2 and command 1 are different scale value, But the time they run will vary greatly (If you try to run it). Using a larger scale will have better results. So how to choose a scale value or have better way ?
-
-
How to convert a single picture into video with some filters without losing performance ?
11 avril 2019, par Zedd WI have a picture in jpeg format : cat.
I converted this picture into a video through some ffmpeg filter :
scale
andzoompan
. The video is that the picture is slowly enlargedThen, I encountered some problems when using the following command.
command 1
ffmpeg -loop 1 -i cat.jpeg -filter_complex "scale=iw*2:-1,zoompan=z='zoom+0.002':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=720x960" -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -crf 28 -y -t 5 out.mp4
command 2 (Just adjust the scale value of command 1)
ffmpeg -loop 1 -i cat.jpeg -filter_complex "scale=iw*8:-1,zoompan=z='zoom+0.002':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=720x960" -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -crf 28 -y -t 5 out.mp4
Problems :
-
The picture in the video will zoom in slowly, which is true, but until about the fourth second, the picture will return to the minimum and re-enlarge.Is this the filter parameter I used wrong ?
-
There is a warning after running the command :
[swscaler @ 0x113c66000] Warning: data is not aligned! This can lead to a speed loss
. The picture size is 720 x 960 and the video is the same. 720/16 is an integer and 960/16 also an integer. So what not aligned ? -
There is another warning :
deprecated pixel format used, make sure you did set range correctly
. Did I set thepix_fmt
parameter wrong ? -
command 2 and command 1 are different scale value, But the time they run will vary greatly (If you try to run it). Using a larger scale will have better results. So how to choose a scale value or have better way ?
-