
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (40)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (6232)
-
whether it takes long time for convert flv to MP4 using ffmpeg from server
29 décembre 2016, par Firman FirdausI want to convert a flv file to mp4. I use with a basic command like this :
ffmpeg -i /var/www/html/rawmedia/d2cb9f152f27d9beb4a15d61e177fa22.flv /var/www/html/media/new.mp4
The command above has result 0 B mp4.
I read for My reference for this in this link,
there is a very simple and basic I think.
So I try the command above for testing php vibe command like this :ffmpeg -i /var/www/html/rawmedia/d2cb9f152f27d9beb4a15d61e177fa22.flv -vcodec libx264 -s 640x360 -threads 4 -movflags faststart /var/www/html/media/test4.mp4
I got that command from PHPVIBE for convert other format file except mp4.
So I got a result just the same as like first command that still 0 B mp4.
But the Output of the second command give me like thisIncompatible sample format 's16' for codec 'aac', auto-selecting format 'flt'
[libx264 @ 0xcebde0] using cpu capabilities: none!
[libx264 @ 0xcebde0] profile High, level 3.0
[libx264 @ 0xcebde0] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[NULL @ 0xd5f1a0] Codec is experimental but experimental codecs are not enabled, see -strict -2
Output #0, mp4, to '/var/www/html/media/test4.mp4':
Metadata:
starttime : 0
totalduration : 57
totaldatarate : 353
bytelength : 2535814
canseekontime : true
sourcedata : B0AFCE7F5HH1428394559963956
purl :
pmsg :
Stream #0:0: Video: h264, yuv420p, 640x360, q=-1--1, 90k tbn, 30 tbc
Stream #0:1: Audio: none, 22050 Hz, stereo, flt, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (flv -> libx264)
Stream #0:1 -> #0:1 (mp3 -> aac)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or heightOutput give me some information that test.mp4 have
bytelength : 2535814
.
But I still have 0B mp4 converted result until now. Is there taking a time or I was wrong with the command. But especially my first command very basic and still get zero byte result. -
Problems accessing codecs with ggplot and gganimate
19 décembre 2016, par noLongerRandomUsing gganimate. Can’t figure out how to properly access functionality of ffmpeg, specifically I want to change the codec I’m using in the video file I’m outputting.
# load packages
library(ggplot)
library(animation)
library(gganimate)
# Here's my data.frame
myDf <- data.frame(
year = c(1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014),
bottom50 = c(0.195, 0.191, 0.187, 0.192, 0.196, 0.205, 0.207, 0.210, 0.209, 0.204, 0.203, 0.204, 0.205, 0.203, 0.202, 0.200, 0.200, 0.201, 0.199, 0.195, 0.190, 0.183, 0.179, 0.179, 0.177, 0.172, 0.169, 0.169, 0.168, 0.166, 0.158, 0.159, 0.158, 0.154, 0.151, 0.148, 0.149, 0.148, 0.146, 0.149, 0.148, 0.145, 0.142, 0.138, 0.135, 0.137, 0.137, 0.136, 0.130, 0.127, 0.123, 0.127, 0.125), top1 = c(0.126, 0.127, 0.129, 0.128, 0.126, 0.123, 0.122, 0.115, 0.110, 0.111, 0.111, 0.109, 0.106, 0.105, 0.105, 0.107, 0.108, 0.111, 0.107, 0.110, 0.112, 0.115, 0.125, 0.125, 0.122, 0.133, 0.149, 0.145, 0.145, 0.139, 0.150, 0.146, 0.147, 0.153, 0.160, 0.166, 0.169, 0.177, 0.183, 0.173, 0.171, 0.172, 0.183, 0.194, 0.201, 0.199, 0.195, 0.185, 0.198, 0.196, 0.208, 0.196, 0.202)
)
#Basic plot
p <- ggplot(myDf, aes(x = year, y = bottom50, frame = year)) +
geom_line(color = "dodgerblue") +
geom_line(aes(y = top1), color = "darkred")The non-animated version gets me what I want :
And I get an animation version output to video with :
gganimate(p, interval = .1, title_frame = FALSE, "income.mp4")
That’s fine, but I want to change some the output parameters, specifically : alter the dimensions, the frame rate, and use a different codec.
# change some of the options
ani.options(ani.height = 1080, ani.width = 1920,
interval = 0.04166667, other.opts = "-vcodec qtrle -f mov")
# re-animate
gganimate(p, title_frame = FALSE, "income.mov")That gives me the following error :
Error in animation_saver(saver, filename) :
Don't know how to save animation of type movI’m using ’.mov’ as my file extension because I’m trying to change to the Animation codec (so it’s no longer a .mp4 wrapper). I’ve got ffmpeg installed, so this is probably a syntax issue. But the documentation isn’t very clear here ; gganimate doesn’t have any documentation on changing codecs (or outputting any video besides an mp4), and the animation package is light on specifics as well.
-
ffmpeg filter complex maybe too long from my script
8 novembre 2023, par icegeti am using ffmepg and filter complex to blend 2 png files for a exact time.
if i use a too long time (short commands working) then the output file has only 1kb and is not openable.


i have added here my code was is not working, can anybody helps me ?


i getting this back


code :


ffmpeg -loop 1 -t 0.2225 -i /tmp/a.png -loop 1 -t 0.2225 -i /tmp/b.png -s 640x480 -to 256 -c:v libx264 -pix_fmt yuv420p -filter_complex " \
[1:v][0:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b1v]; \
[0:v][1:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b2v]; \
[1:v][0:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b3v]; \
[0:v][1:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b4v]; \
[1:v][0:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b5v]; \
[0:v][1:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b6v]; \
[1:v][0:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b7v]; \
[0:v][1:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b8v]; \
[1:v][0:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b9v]; \
[0:v][1:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b10v]; \
[1:v][0:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b11v]; \
[0:v][1:v]blend=all_expr='A*(if(gte(T,0.2225),1,T/0.2225))+B*(1-(if(gte(T,0.2225),1,T/0.2225)))'[b12v]; \
...
[1:v][b988v][0:v][b989v][1:v][b990v][0:v][b991v][1:v][b992v][0:v][b993v][1:v][b994v][0:v][b995v][1:v][b996v][0:v][b997v][1:v][b998v][0:v][b999v][1:v][b1000v][0:v][b1001v][1:v][b1002v][0:v][b1003v][1:v][b1004v][0:v][b1005v][1:v][b1006v][0:v][b1007v][1:v][b1008v][0:v][b1009v][1:v][b1010v][0:v][b1011v][1:v][b1012v][0:v][b1013v][1:v][b1014v][0:v][b1015v][1:v][b1016v][0:v][b1017v][1:v][b1018v][0:v][b1019v][1:v][b1020v][0:v][b1021v][1:v][b1022v][0:v][b1023v][1:v][b1024v]
[0:v]concat=n=2049:v=1:a=0,format=yuv420p[v]" -map "[v]" /tmp/test.mp4



the output is then this :


...
 Stream #1:0 (png) -> concat:in2038:v0
 Stream #1:0 (png) -> concat:in2042:v0
 Stream #1:0 (png) -> concat:in2046:v0
 format -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[libx264 @ 0x563a0f537380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x563a0f537380] profile High, level 3.0
[libx264 @ 0x563a0f537380] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/tmp/test.mp4':
 Metadata:
 encoder : Lavf58.20.100
 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x480, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
 Metadata:
 encoder : Lavc58.35.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Getötet 3 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x




i create the filter complex by php with a for loop for creating the final syntax for ffmpeg.


getting at the end of the command (debug log) :


[auto_scaler_2044 @ 0x560f0db26c40] w:640 h:480 fmt:pal8 sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x2
[auto_scaler_2045 @ 0x560f144cf240] w:640 h:480 fmt:pal8 sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x2
[Parsed_blend_1022 @ 0x560f19f96d00] [framesync @ 0x560f19f96e08] Selected 1/25 time base
[Parsed_blend_1022 @ 0x560f19f96d00] [framesync @ 0x560f19f96e08] Sync level 2
[auto_scaler_3071 @ 0x560f18cf8a40] w:640 h:480 fmt:pal8 sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x2
[auto_scaler_2046 @ 0x560f0db27180] w:640 h:480 fmt:pal8 sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x2
[auto_scaler_2047 @ 0x560f144d00c0] w:640 h:480 fmt:pal8 sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x2
[Parsed_blend_1023 @ 0x560f19f97400] [framesync @ 0x560f19f97508] Selected 1/25 time base
[Parsed_blend_1023 @ 0x560f19f97400] [framesync @ 0x560f19f97508] Sync level 2
[auto_scaler_3072 @ 0x560f18cf90c0] w:640 h:480 fmt:pal8 sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x2
[scaler_out_0_0 @ 0x560f1a625140] w:640 h:480 fmt:yuv420p sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x4
[libx264 @ 0x560f19103180] using mv_range_thread = 40
[libx264 @ 0x560f19103180] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x560f19103180] profile High, level 3.0
[libx264 @ 0x560f19103180] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/tmp/test.mp4':
 Metadata:
 encoder : Lavf58.20.100
 Stream #0:0, 0, 1/12800: Video: h264 (libx264), 1 reference frame (avc1 / 0x31637661), yuv420p, 640x480, 0/1, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
 Metadata:
 encoder : Lavc58.35.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Clipping frame in rate conversion by 0.000008
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream) 0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream) 0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream) 0x
Getötet



is that the problem ?


i have also tried with filter complex script, but the same error appears.


thank you so much


many greets iceget


if i use a shorter time (about 10 seconds) then its working fine. but when i add 100 or 256 seconds, then i getting only a 1kb mp4 file.


thank you