
Recherche avancée
Médias (1)
-
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
Autres articles (84)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6675)
-
ffmpeg saves only first frame
2 juin 2021, par DuDaI generated rotating pictures in Python and now I want to create an animation from it using ffmpeg. But the generated video includes only the first frame (viewed in VLC) and is way to small (half the size of one png) for all 36 pictures. What am I doing wrong ? Thank you.


command in shell :
ffmpeg -framerate 5 -i "./mov/movie%03d.png" -y "movie.mp4"


Files in Folder
mov
:

- 

movie000.png
movie010.png
- ..
movie350.png










ffmpeg
version ffmpeg-20170620-ae6f6d4-win64-static


output


ffmpeg version N-86537-gae6f6d4 Copyright (c) 2000-2017 the FFmpeg developers
 built with gcc 7.1.0 (GCC)
 configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
 libavutil 55. 66.100 / 55. 66.100
 libavcodec 57. 99.100 / 57. 99.100
 libavformat 57. 73.100 / 57. 73.100
 libavdevice 57. 7.100 / 57. 7.100
 libavfilter 6. 94.100 / 6. 94.100
 libswscale 4. 7.101 / 4. 7.101
 libswresample 2. 8.100 / 2. 8.100
 libpostproc 54. 6.100 / 54. 6.100
Input #0, image2, from './mov/movie%03d.png':
 Duration: 00:00:00.20, start: 0.000000, bitrate: N/A
 Stream #0:0: Video: png, rgba(pc), 1152x864 [SAR 2834:2834 DAR 4:3], 5 tbr,
5 tbn, 5 tbc
Stream mapping:
 Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 00000000003ec140] using SAR=1/1
[libx264 @ 00000000003ec140] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 00000000003ec140] profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-b
it
[libx264 @ 00000000003ec140] 264 - core 150 r2833 df79067 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=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_pski
p=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decim
ate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_a
dapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=5
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 'movie.mp4':
 Metadata:
 encoder : Lavf57.73.100
 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1152x8
64 [SAR 1:1 DAR 4:3], q=-1--1, 5 fps, 10240 tbn, 5 tbc
 Metadata:
 encoder : Lavc57.99.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 1 fps=0.0 q=23.0 Lsize= 19kB time=00:00:00.00 bitrate=1581142.9kb
its/s speed=0.00138x
video:18kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ov
erhead: 4.403838%
[libx264 @ 00000000003ec140] frame I:1 Avg QP:17.26 size: 17865
[libx264 @ 00000000003ec140] mb I I16..4: 29.6% 56.0% 14.5%
[libx264 @ 00000000003ec140] 8x8 transform intra:56.0%
[libx264 @ 00000000003ec140] coded y,u,v intra: 11.5% 2.3% 6.3%
[libx264 @ 00000000003ec140] i16 v,h,dc,p: 77% 22% 1% 0%
[libx264 @ 00000000003ec140] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 3% 62% 0% 0%
 0% 0% 0% 0%
[libx264 @ 00000000003ec140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 53% 25% 12% 1% 1%
 2% 1% 2% 1%
[libx264 @ 00000000003ec140] kb/s:714.60



-
"Pixel format 'yuvj420p' is not supported" when converting image to video using CUDA hardware acceleration
11 février 2020, par laurentI’m trying to convert an image to a video using CUDA hardware acceleration but I can’t get it to work.
The basic command I have is this one :
ffmpeg -y -hwaccel cuvid -i tests/MediaSamples/portrait_0.jpg -t 10 out.mp4
And I’m getting this error :
[AVHWFramesContext @ 0x32d3f00] Pixel format 'yuvj420p' is not supported
[mjpeg @ 0x2d18480] Error initializing a CUDA frame pool
cuvid hwaccel requested for input stream #0:0, but cannot be initialized.
Error while decoding stream #0:0: Invalid argumentI’ve tried setting the pixel format like so, but that didn’t help :
ffmpeg -y -hwaccel cuvid -pix_fmt yuv420p -i tests/MediaSamples/portrait_0.jpg -t 10 out.mp4
I’ve also tried many other flags but can’t get anything to work. Any idea what the issue might be ?
For information this is the full log :
ffmpeg version N-96615-gc35382a Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
configuration: --enable-nonfree --disable-shared --enable-gpl --enable-openssl --enable-libx264 --enable-cuda-sdk --enable-nvenc --enable-cuda --enable-cuvid --enable-libnpp --extra-cflags='-I/usr/local/ssl/include -I/usr/local/cuda/include -I/usr/local/include -L/usr/local/ssl/lib -Wl,-rpath=/usr/local/ssl/lib' --extra-ldflags=-L/usr/local/cuda/lib64
libavutil 56. 38.100 / 56. 38.100
libavcodec 58. 67.101 / 58. 67.101
libavformat 58. 37.100 / 58. 37.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 73.100 / 7. 73.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, image2, from 'tests/MediaSamples/portrait_0.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 40237 kb/s
Stream #0:0: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 1600x900 [SAR 72:72 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[AVHWFramesContext @ 0x32d3f00] Pixel format 'yuvj420p' is not supported
[mjpeg @ 0x2d18480] Error initializing a CUDA frame pool
cuvid hwaccel requested for input stream #0:0, but cannot be initialized.
Error while decoding stream #0:0: Invalid argument
[libx264 @ 0x2d1e840] using SAR=1/1
[libx264 @ 0x2d1e840] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x2d1e840] profile High, level 4.0
[libx264 @ 0x2d1e840] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=24 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=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 'out.mp4':
Metadata:
encoder : Lavf58.37.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 1600x900 [SAR 72:72 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc58.67.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed! -
Using libav-tools versus libav built from source - video quality much worse
17 juin 2015, par kisloWe are trying to create a video from still images, running on Ubuntu 14.04.
If we have installed libav-tools then the output video is much higher quality than if we have installed libav manually. Unfortunately, we need to run a solution where libav is built from source, so we want to find out how to improve the quality.
Here is the console output for the libav-tools (higher quality) :
avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[image2 @ 0x22ae120] max_analyze_duration reached
Input #0, image2, from 'frame.%04d.jpg':
Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], 8 fps, 8 tbr, 8 tbn
[libx264 @ 0x22afac0] using SAR=1/1
[libx264 @ 0x22afac0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x22afac0] profile High, level 3.1
[libx264 @ 0x22afac0] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=8 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.25 aq=1:1.00
Output #0, mp4, to 'a1.mp4':
Metadata:
encoder : Lavf54.20.4
Stream #0.0: Video: libx264, yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], q=-1--1, 8 tbn, 8 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> libx264)
Press ctrl-c to stop encoding
frame= 159 fps= 43 q=32766.0 Lsize= 1580kB time=19.62 bitrate= 659.3kbits/s
video:607kB audio:0kB global headers:0kB muxing overhead 160.388953%
[libx264 @ 0x22afac0] frame I:21 Avg QP:14.32 size: 21142
[libx264 @ 0x22afac0] frame P:132 Avg QP:16.12 size: 8691
[libx264 @ 0x22afac0] frame B:6 Avg QP:13.61 size: 3874
[libx264 @ 0x22afac0] consecutive B-frames: 95.0% 0.0% 0.0% 5.0%
[libx264 @ 0x22afac0] mb I I16..4: 37.4% 61.4% 1.2%
[libx264 @ 0x22afac0] mb P I16..4: 9.1% 19.2% 0.3% P16..4: 6.2% 2.8% 1.3% 0.0% 0.0% skip:61.1%
[libx264 @ 0x22afac0] mb B I16..4: 1.8% 2.0% 0.0% B16..8: 31.9% 7.1% 0.7% direct: 9.2% skip:47.3% L0:69.8% L1:29.5% BI: 0.8%
[libx264 @ 0x22afac0] 8x8 transform intra:65.0% inter:92.8%
[libx264 @ 0x22afac0] coded y,uvDC,uvAC intra: 36.3% 31.8% 7.1% inter: 3.6% 6.0% 0.7%
[libx264 @ 0x22afac0] i16 v,h,dc,p: 74% 14% 6% 6%
[libx264 @ 0x22afac0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 24% 32% 5% 2% 3% 2% 1% 3%
[libx264 @ 0x22afac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 23% 9% 2% 3% 6% 3% 1% 2%
[libx264 @ 0x22afac0] i8c dc,h,v,p: 52% 20% 25% 2%
[libx264 @ 0x22afac0] Weighted P-Frames: Y:6.8% UV:6.1%
[libx264 @ 0x22afac0] ref P L0: 58.1% 6.2% 12.1% 22.6% 0.9%
[libx264 @ 0x22afac0] ref B L0: 83.0% 16.3% 0.7%
[libx264 @ 0x22afac0] ref B L1: 93.5% 6.5%
[libx264 @ 0x22afac0] kb/s:649.85Here is the console output for libav built manually (lower quality) :
avconv version 11.4, Copyright (c) 2000-2014 the Libav developers
built on Jun 17 2015 02:19:28 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[image2 @ 0x329f140] max_analyze_duration 5000000 reached
Input #0, image2, from 'frame.%04d.jpg':
Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], 8 fps, 8 tbn
Output #0, mp4, to 'a2.mp4':
Metadata:
encoder : Lavf56.1.0
Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 8 fps, 8 tbn, 8 tbc
Metadata:
encoder : Lavc56.1.0 mpeg4
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
Press ctrl-c to stop encoding
frame= 159 fps= 0 q=31.0 Lsize= 902kB time=19.75 bitrate= 374.2kbits/s
video:900kB audio:0kB other streams:0kB global headers:0kB muxing overhead: 0.239928%In case it helps : the images are named frame.0000.jpg, frame.0001.jpg, etc., so our command is :
avconv -y -f image2 -r 8 -i frame.%04d.jpg -vf "setpts=2*PTS" videofile.mp4
for both runs shown above. Any help would be hugely appreciated !