
Recherche avancée
Autres articles (74)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (7012)
-
Why Do Some of the Codecs in FFMPEG's Supported Codec List Show "encoders :" or "decoders :" in Parenthesis ?
4 mai 2020, par spacemanIf you open the Command Prompt, and run
ffmpeg -codecs
,

you will get a long list of Codecs that FFMPEG supports.


Here's a small sample of the list :



DEV.L. h261 H.261
 DEV.L. h263 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
 D.V.L. h263i Intel H.263
 DEV.L. h263p H.263+ / H.263-1998 / H.263 version 2
 DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (encoders: libx264 libx264rgb)
 D.V.LS hevc H.265 / HEVC




Now If you briefly go over the whole list,

you see that most Codecs in this list appear with their Name and Description,

but some of the Codecs also include parenthesis in the Description, and in the parenthesis,

they specify "encoders :" or "decoders :".


For example :



1)



DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (encoders: libx264 libx264rgb)




2)



DEVILS jpeg2000 JPEG 2000 (decoders: jpeg2000 libopenjpeg) (encoders: jpeg2000 libopenjpeg)




3)



DEV.L. msmpeg4v3 MPEG-4 part 2 Microsoft variant version 3 (decoders: msmpeg4) (encoders: msmpeg4)




4)



DEA.L. aac AAC (Advanced Audio Coding) (encoders: aac libvo_aacenc)




5)



DEA.L. amr_nb AMR-NB (Adaptive Multi-Rate NarrowBand) (decoders: amrnb libopencore_amrnb) (encoders: libopencore_amrnb)
 DEA.L. amr_wb AMR-WB (Adaptive Multi-Rate WideBand) (decoders: amrwb libopencore_amrwb) (encoders: libvo_amrwbenc)




My question :



Why do some Codecs have those parenthesis, specifying Encoders/Decoders,

while other (in fact : most) codecs don't have these parenthesis ?

-
FFmpeg freezes during trim, concat and add watermark
14 juin 2020, par Nguyễn TrọngI'm trying to cut each video and change the speed of each, then I join them and finally add watermark. I calculated the percentage of the process and found it was working fine but it did not run to the onFinished function but stood still.I do not have a lot of clues why it happens. Anybody experienced something similar ?



cmd = [-y, -i, /storage/emulated/0/Story Saver/test.mp4, -i, /storage/emulated/0/.FXMotion/.LOGO/logo_watermark.png, -filter_complex_script, /storage/emulated/0/.FXMotion/.Script/script.txt, -map, [vw], -c:v, libx264, -pix_fmt, yuv420p, -crf, 18, -preset, veryfast, /storage/emulated/0/FXMotion/output.mp4, -hide_banner]




onProgress: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Story Saver/test.mp4':
onProgress: Metadata:onProgress: major_brand : isomonProgress: minor_version : 512:
onProgress: compatible_brands: isomiso2avc1mp41
onProgress: encoder : Lavf58.20.100onProgress: Duration: 00:00:10.40, start: 0.000000, bitrate: 1877 kb/s
onProgress: 
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 540x960, 1804 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
onProgress: Metadata:onProgress: handler_name : VideoHandleronProgress: Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
onProgress: Metadata:
onProgress: handler_name : SoundHandler
onProgress: Input #1, png_pipe, from '/storage/emulated/0/.FXMotion/.LOGO/logo_watermark.png':
onProgress: Duration: N/A, bitrate: N/A
onProgress: Stream #1:0: Video: png, rgba(pc), 335x51, 25 tbr, 25 tbn, 25 tbc
onProgress: Stream mapping:
onProgress: Stream #0:0 (h264) -> trim
onProgress: Stream #0:0 (h264) -> trim
onProgress: Stream #0:0 (h264) -> trim
onProgress: Stream #0:0 (h264) -> trim
onProgress: Stream #0:1 (aac) -> atrim
onProgress: Stream #0:1 (aac) -> atrim
onProgress: Stream #0:1 (aac) -> atrim
onProgress: Stream #0:1 (aac) -> atrim
onProgress: Stream #0:1 (aac) -> atrim
onProgress: Stream #0:1 (aac) -> atrim
onProgress: Stream #0:1 (aac) -> atrim
 onProgress: Stream #0:1 (aac) -> atrim
onProgress: Stream #0:1 (aac) -> atrim
 onProgress: Stream #0:1 (aac) -> atrim
 onProgress: Stream #0:1 (aac) -> atrim
 onProgress: Stream #0:1 (aac) -> atrim
onProgress: Stream #0:1 (aac) -> atrim
 onProgress: Stream #1:0 (png) -> scale
 onProgress: concat:out:a0 -> Stream #0:0 (aac)
 onProgress: overlay -> Stream #0:1 (libx264)
onProgress: Press [q] to stop, [?] for help
onProgress: [libx264 @ 0xf1cba100] using cpu capabilities: ARMv6 NEON
onProgress: [libx264 @ 0xf1cba100] profile High, level 3.1
onProgress: [libx264 @ 0xf1cba100] 264 - core 152 r2851M ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
onProgress: Output #0, mp4, to '/storage/emulated/0/FXMotion/Motion_441753_07_09.mp4':
onProgress: Metadata:
onProgress: major_brand : isom
onProgress: minor_version : 512
onProgress: compatible_brands: isomiso2avc1mp41
onProgress: encoder : Lavf58.12.100
onProgress: Stream #0:0: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
onProgress: Metadata:
onProgress: encoder : Lavc58.18.100 aac
onProgress: Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 540x960, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
onProgress: Metadata:
onProgress: encoder : Lavc58.18.100 libx264
onProgress: Side data:
onProgress: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
onProgress: frame= 3 fps=0.0 q=0.0 size= 0kB time=00:00:00.06 bitrate= 5.5kbits/s speed=0.138x 
onProgress: frame= 22 fps= 22 q=0.0 size= 0kB time=00:00:00.71 bitrate= 0.5kbits/s dup=2 drop=0 speed=0.712x 
onProgress: frame= 47 fps= 31 q=24.0 size= 256kB time=00:00:01.50 bitrate=1389.8kbits/s dup=7 drop=0 speed=0.998x 
onProgress: frame= 64 fps= 32 q=24.0 size= 512kB time=00:00:02.08 bitrate=2007.2kbits/s dup=12 drop=0 speed=1.03x 
onProgress: frame= 86 fps= 34 q=24.0 size= 768kB time=00:00:02.83 bitrate=2221.1kbits/s dup=21 drop=0 speed=1.12x 
onProgress: frame= 104 fps= 34 q=24.0 size= 768kB time=00:00:03.41 bitrate=1843.3kbits/s dup=29 drop=0 speed=1.12x 
onProgress: frame= 121 fps= 34 q=24.0 size= 1024kB time=00:00:03.99 bitrate=2100.5kbits/s dup=37 drop=0 speed=1.13x 
onProgress: frame= 138 fps= 34 q=24.0 size= 1280kB time=00:00:04.57 bitrate=2292.4kbits/s dup=46 drop=0 speed=1.13x 
onProgress: frame= 157 fps= 34 q=24.0 size= 1280kB time=00:00:05.24 bitrate=1998.2kbits/s dup=56 drop=0 speed=1.15x 
onProgress: frame= 179 fps= 35 q=24.0 size= 1536kB time=00:00:05.92 bitrate=2125.2kbits/s dup=67 drop=0 speed=1.16x 
onProgress: frame= 196 fps= 35 q=24.0 size= 1792kB time=00:00:06.45 bitrate=2274.2kbits/s dup=76 drop=0 speed=1.15x 
onProgress: frame= 212 fps= 35 q=24.0 size= 2048kB time=00:00:06.98 bitrate=2400.5kbits/s dup=84 drop=0 speed=1.15x 
onProgress: frame= 228 fps= 34 q=24.0 size= 2048kB time=00:00:07.56 bitrate=2216.4kbits/s dup=91 drop=0 speed=1.14x 
onProgress: frame= 248 fps= 35 q=24.0 size= 2304kB time=00:00:08.19 bitrate=2302.8kbits/s dup=97 drop=0 speed=1.15x 
onProgress: Past duration 0.690956 too large
onProgress: Past duration 0.882378 too large
onProgress: Past duration 0.682365 too large
onProgress: Past duration 0.973366 too large
onProgress: frame= 269 fps= 35 q=24.0 size= 2304kB time=00:00:08.82 bitrate=2139.1kbits/s dup=99 drop=1 speed=1.16x 
onProgress: frame= 284 fps= 35 q=24.0 size= 2560kB time=00:00:09.35 bitrate=2241.2kbits/s dup=99 drop=9 speed=1.15x 
onProgress: frame= 300 fps= 35 q=24.0 size= 2816kB time=00:00:09.86 bitrate=2337.7kbits/s dup=99 drop=18 speed=1.14x 
onProgress: frame= 315 fps= 34 q=24.0 size= 2816kB time=00:00:10.40 bitrate=2217.7kbits/s dup=99 drop=26 speed=1.14x 
onProgress: Past duration 0.878990 too large
onProgress: frame= 332 fps= 34 q=24.0 size= 3072kB time=00:00:10.95 bitrate=2296.2kbits/s dup=99 drop=31 speed=1.13x 
onProgress: frame= 351 fps= 35 q=24.0 size= 3328kB time=00:00:11.63 bitrate=2343.6kbits/s dup=99 drop=31 speed=1.14x 
onProgress: Past duration 0.931847 too large
onProgress: Past duration 0.982628 too large
onProgress: frame= 371 fps= 35 q=24.0 size= 3328kB time=00:00:12.30 bitrate=2215.4kbits/s dup=99 drop=31 speed=1.15x 






EDIT-update content of script






Edit 2(reduce inputs)





-
Convert image sequence to video using ffmpeg and list of files
13 juin 2020, par rensaI have a camera taking time-lapse shots every 2–3 seconds, and I keep a rolling record of a few days' worth. Because that's a lot of files, I keep them in subdirectories by day and hour :



images/
 2015-05-02/
 00/
 2015-05-02-0000-02
 2015-05-02-0000-05
 2015-05-02-0000-07
 01/
 (etc.)
 2015-05-03/




I'm writing a script to automatically upload a timelapse of the sunrise to YouTube each day. I can get the sunrise time from the web in advance, then go back after the sunrise and get a list of the files that were taken in that period using
find
:


touch -d "$SUNRISE_START" sunrise-start.txt
touch -d "$SUNRISE_END" sunrise-end.txt
find images/"$TODAY" -type f -anewer sunrise-start.txt ! -anewer sunrise-end.txt




Now I want to convert those files to a video with
ffmpeg
. Ideally I'd like to do this without making a copy of all the files (because we're talking 3.5 GB per hour of images), and I'd prefer not to rename them to something likeimage000n.jpg
because other users may want to access the images. Copying the images is my fallback.


But I'm getting stuck sending the results of
find
toffmpeg
. I understand that ffmpeg can expand wildcards internally, but I'm not sure that this is going to work where the files aren't all in one directory. I also see a few people usingfind
's--exec
option withffmpeg
to do batch conversions, but I'm not sure if this is going to work with image sequence input (as opposed to, say, converting 1000 images into 1000 single-frame videos).


Any ideas on how I can connect the two—or, failing that, a better way to get files in a date range across several subdirectories into
ffmpeg
as an image sequence ?