
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (67)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (9534)
-
FFMPEG save udp stream to mp4 file
17 juillet 2020, par DoriHp 0I'm facing some trouble when using ffmpeg to save an udp stream into a mp4 file. When receiving and playing with ffplay by this command


ffplay -i udp://127.0.0.1:10000


everything is ok, but when I save to mp4 file with this command


ffmpeg -i udp://127.0.0.1:10000 -vcodec libx264 -an -pix_fmt yuv420p -r 20 test.mp4


the created mp4 file has only 15 secs length but my streaming was 1 min. I found a solution


ffmpeg -i udp://127.0.0.1:10000 -r 20 -filter:v "setpts=PTS*0.25" -vcodec libx264 -an -pix_fmt yuv420p test.mp4


by using
setpts
video filter, but video's length still wasn't same as the stream.
My udp stream's properties, get by using ffprobe :

[STREAM] 
index=0 
codec_name=h264 
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 
profile=High 4:4:4 Predictive 
codec_type=video 
codec_time_base=1/40 
codec_tag_string=[27][0][0][0] 
codec_tag=0x001b 
width=1280 
height=720 
coded_width=1280 
coded_height=720 
closed_captions=0 
has_b_frames=0 
sample_aspect_ratio=N/A 
display_aspect_ratio=N/A 
pix_fmt=yuv444p 
level=31 
color_range=unknown 
color_space=unknown 
color_transfer=unknown 
color_primaries=unknown 
chroma_location=left 
field_order=progressive 
timecode=N/A 
refs=1 
is_avc=false 
nal_length_size=0 
id=0x100 
r_frame_rate=20/1 
avg_frame_rate=20/1 
time_base=1/90000 
start_pts=420655500 
start_time=4673.950000 
duration_ts=N/A 
duration=N/A 
bit_rate=N/A 
max_bit_rate=N/A 
bits_per_raw_sample=8 
nb_frames=N/A 
nb_read_frames=N/A 
nb_read_packets=N/A 
DISPOSITION:default=0 
DISPOSITION:dub=0 
DISPOSITION:original=0 
DISPOSITION:comment=0 
DISPOSITION:lyrics=0 
DISPOSITION:karaoke=0 
DISPOSITION:forced=0 
DISPOSITION:hearing_impaired=0 
DISPOSITION:visual_impaired=0 
DISPOSITION:clean_effects=0 
DISPOSITION:attached_pic=0 
DISPOSITION:timed_thumbnails=0 
[/STREAM] 
[FORMAT] 
filename=udp://127.0.0.1:10000 
nb_streams=1 
nb_programs=1 
format_name=mpegts 
format_long_name=MPEG-TS (MPEG-2 Transport Stream)
start_time=4673.950000 
duration=N/A 
size=N/A 
bit_rate=N/A 
probe_score=50 
[/FORMAT] 



-
How to save movie from behind ? [on hold]
16 mai 2017, par NipsI must convert my mp4 camera movie, to play it from behind. Is this possible in ffmpeg ?
Or maybe html5 can play a movie from behind ?In a film I have closeup on the object, I must play it as move away from the object.
-
how use pipe instead of save method in fluent-ffmpeg ?
27 juin 2019, par Mohsen RahnamaeiI gonna use fluent ffmpeg to write something on video
I use this codvar proc = ffmpeg(req.filePath). videoFilters(
{
filter: 'drawtext',
options: {
text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
fontsize: 36,
fontcolor: 'white',
x: '(main_w/2-text_w/2)',
y: '(text_h/2)+15',
shadowcolor: 'black',
shadowx: 2,
shadowy: 2
}}
)
// use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
.on('end', function() {
console.log('file has been converted succesfully');
})
.on('error', function(err) {
console.log('an error happened: ' + err.message);
}).save('/home/gheidar/Desktop/ffmpeg_test/rt.ts');and everything is correct
but I want to export this output to stream for the response of the request
means that I want to usepipe()
instead ofsave
methodsomething like this :
var proc = ffmpeg(req.filePath). videoFilters(
{
filter: 'drawtext',
options: {
text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
fontsize: 36,
fontcolor: 'white',
x: '(main_w/2-text_w/2)',
y: '(text_h/2)+15',
shadowcolor: 'black',
shadowx: 2,
shadowy: 2
}}
)
// use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
.on('end', function() {
console.log('file has been converted succesfully');
})
.on('error', function(err) {
console.log('an error happened: ' + err.message);
}).pipe(res)its just change in the last line
and I get this error :an error happened: ffmpeg exited with code 1: pipe:1: Invalid argument
how can export this ffmpeg command to stream response ????