
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (93)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...)
Sur d’autres sites (7431)
-
How to use FFMPEG with Nvidia Acceleration (Nvenc) to hardcode subtitles
21 février 2021, par Ibraheem NofalSo I'm trying to use Nvenc to accelerate video encoding. The aim is to have 1 input video file and 1 input subtitle, and to get multiple outputs at different resolutions with subtitles hardcoded or burned into the video. I've tried multiple approaches but can't figure out how to do it.


Here's the command that I'm currently using :


ffmpeg -hwaccel cuvid -i 3030025890-TEST.mp4 -i output_ar.srt -filter_complex "[0:v]scale_npp=1920:1080, hwdownload,format=nv12[base], [base]subtitles=output_ar.srt[marked]" -map "[marked]" -c:v h264_nvenc -map 0:v:0 -map 0:a:0 -g 50 -b:v 5M -maxrate 5.5M -minrate 4M -bufsize 5M -preset fast 1080_output.mp4



and here's the output :


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '3030025890-TEST.mp4':
 Metadata:
 major_brand : M4V 
 minor_version : 1
 compatible_brands: isomavc1mp42
 creation_time : 2021-01-05T13:45:58.000000Z
 Duration: 00:45:04.28, start: 0.000000, bitrate: 5574 kb/s
 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 5000 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
 Metadata:
 creation_time : 2021-01-05T13:45:58.000000Z
 handler_name : ETI ISO Video Media Handler
 encoder : Elemental H.264
 Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
 Metadata:
 creation_time : 2021-01-05T13:45:58.000000Z
 handler_name : ETI ISO Audio Media Handler
 Stream #0:2(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
 Metadata:
 creation_time : 2021-01-05T13:45:58.000000Z
 handler_name : ETI ISO Audio Media Handler
 Stream #0:3(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
 Metadata:
 creation_time : 2021-01-05T13:45:58.000000Z
 handler_name : ETI ISO Audio Media Handler
 Stream #0:4(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
 Metadata:
 creation_time : 2021-01-05T13:45:58.000000Z
 handler_name : ETI ISO Audio Media Handler
 Stream #0:5(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
 Metadata:
 creation_time : 2021-01-05T13:45:58.000000Z
 handler_name : ETI ISO Audio Media Handler
 Stream #0:6(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
 Metadata:
 creation_time : 2021-01-05T13:45:58.000000Z
 handler_name : ETI ISO Audio Media Handler
Input #1, srt, from 'output_ar.srt':
 Duration: N/A, bitrate: N/A
 Stream #1:0: Subtitle: subrip
[Parsed_subtitles_3 @ 0x5601070b1dc0] Shaper: FriBidi 0.19.7 (SIMPLE)
Fontconfig error: Cannot load default config file
[Parsed_subtitles_3 @ 0x5601070b1dc0] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
[Parsed_subtitles_3 @ 0x5601070b1dc0] Using font provider fontconfig
Stream mapping:
 Stream #0:0 (h264) -> scale_npp (graph 0)
 subtitles (graph 0) -> Stream #0:0 (h264_nvenc)
 Stream #0:0 -> #0:1 (h264 (native) -> h264 (h264_nvenc))
 Stream #0:1 -> #0:2 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x56010792f980] Error creating a NVDEC decoder: 1
[h264 @ 0x56010792f980] Failed setup for format cuda: hwaccel initialisation returned error.
[Parsed_subtitles_3 @ 0x560107364cc0] Shaper: FriBidi 0.19.7 (SIMPLE)
Fontconfig error: Cannot load default config file
[Parsed_subtitles_3 @ 0x560107364cc0] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
[Parsed_subtitles_3 @ 0x560107364cc0] Using font provider fontconfig
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[aac @ 0x56010734d400] Qavg: 65536.000
[aac @ 0x56010734d400] 2 frames left in the queue on closing
Conversion failed!



Edit : Made some progress. I now no longer get an error, but upon viewing the output, there's no subtitles burned in.
Command :


ffmpeg -hwaccel cuvid -c:v h264_cuvid -i 3030025890-TEST.mp4 -c:v h264_nvenc -map 0:v:0 -map 0:a:0 -g 50 -b:v 5M -maxrate 5.5M -minrate 4M -bufsize 5M -vf "scale_npp=1920:1080, hwdownload, format=nv12, subtitles=output_ar.srt, hwupload" -preset fast 1080_output.mp4



-
AWS MediaConvert fails when transcoding a video created from an iOS Safari WebRTC
18 février 2021, par Node.JSI am trying to transcode a video using MediaConvert and I get the following error :




Error message Demuxer : [ReadPacketData File read failed - end of file
hit at length [1105924]. Is file truncated ?]




When I try to run ffmpeg command to get information about the file I see this :




non monotonically increasing dts to muxer in stream




I am wondering is there a configuration in MediaConvert that can correct the time stamps ?


➜ Downloads ffmpeg -i 2254.webm -hide_banner -f null /dev/null

[h264 @ 0x7fce2c81d400] Increasing reorder buffer to 1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2254.webm':
 Metadata:
 major_brand : iso5
 minor_version : 1
 compatible_brands: isomiso5hlsf
 creation_time : 2021-02-17T19:33:56.000000Z
 Duration: 00:00:01.60, start: 0.000000, bitrate: 5535 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1280x720, 5644 kb/s, 27.95 fps, 29.92 tbr, 600 tbn, 1200 tbc (default)
 Metadata:
 rotate : 90
 creation_time : 2021-02-17T19:33:56.000000Z
 handler_name : Core Media Video
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 187 kb/s (default)
 Metadata:
 creation_time : 2021-02-17T19:33:56.000000Z
 handler_name : Core Media Audio
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
 Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, null, to '/dev/null':
 Metadata:
 major_brand : iso5
 minor_version : 1
 compatible_brands: isomiso5hlsf
 encoder : Lavf58.45.100
 Stream #0:0(und): Video: wrapped_avframe, yuvj420p(progressive), 720x1280, q=2-31, 200 kb/s, 29.92 fps, 29.92 tbn, 29.92 tbc (default)
 Metadata:
 encoder : Lavc58.91.100 wrapped_avframe
 creation_time : 2021-02-17T19:33:56.000000Z
 handler_name : Core Media Video
 Side data:
 displaymatrix: rotation of -0.00 degrees
 Stream #0:1(und): Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s (default)
 Metadata:
 creation_time : 2021-02-17T19:33:56.000000Z
 handler_name : Core Media Audio
 encoder : Lavc58.91.100 pcm_s16le
[null @ 0x7fce2e008200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8 >= 8
[null @ 0x7fce2e008200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 31 >= 31
frame= 41 fps=0.0 q=-0.0 Lsize=N/A time=00:00:01.57 bitrate=N/A speed=19.9x 
video:21kB audio:128kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown



-
mkv video from raw png pictures16 bit depth using ffmpeg
9 novembre 2023, par JakeI need to receive video with this output




Stream #0:1(eng) : Video : rawvideo (b16g / 0x67363162), gray16be,
640x576, SAR 1:1 DAR 10:9, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
(default)


private data :


size 40(FourCC : 0x62313667 "b16g")




I am trying to use :


ffmpeg.exe -i depth%d.png -c:v rawvideo -vtag b16g -pix_fmt gray16be -r 30 -allow_raw_vfw 1 depth_out.mkv



but i received video with those parametres :




Stream #0:0 : Video : rawvideo, rgb555le, 640x576, SAR 1:1 DAR 10:9, 30
fps, 30 tbr, 1k tbn, 1k tbc (default)


and with this private codec data :


size 40(FourCC : 0x00000000 " ????" : Uncompressed)




I would appreciate any advice or guesses, thanks !


*update - full log :




ffmpeg -framerate 30 -i depth\depth%04d.png -c:v rawvideo -vtag b16g -pix_fmt gray16be -allow_raw_vfw 1 out_video.mkv ffmpeg version n4.3.1-221-gd08bcbffff Copyright (c) 2000-2021 the FFmpeg developers

built with gcc 9.3-win32 (GCC) 20200320 configuration :
—prefix=/ffbuild/prefix —pkg-config-flags=—static —pkg-config=pkg-config —cross-prefix=x86_64-w64-mingw32- —arch=x86_64 —target-os=mingw32 —enable-gpl —enable-version3 —disable-debug —disable-w32threads —enable-pthreads —enable-iconv —enable-zlib —enable-libxml2 —enable-libfreetype —enable-libfribidi —enable-gmp —enable-lzma —enable-fontconfig —enable-opencl —enable-libvmaf —disable-vulkan —enable-libvorbis —enable-amf —enable-libaom —enable-avisynth —enable-libdav1d —enable-libdavs2 —enable-ffnvcodec —enable-cuda-llvm —disable-libglslang —enable-libass —enable-libbluray —enable-libmp3lame —enable-libopus —enable-libtheora —enable-libvpx —enable-libwebp —enable-libmfx —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-librav1e —enable-librubberband —enable-schannel —enable-sdl2 —enable-libsoxr —enable-libsrt —enable-libtwolame —enable-libvidstab —enable-libx264 —enable-libx265 —enable-libxavs2 —enable-libxvid —enable-libzimg —extra-cflags=-DLIBTWOLAME_STATIC —extra-cxxflags= —extra-ldflags=-pthread —extra-libs=-lgomp libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 /
58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 Input #0, image2, from
'depth\depth%04d.png' : Duration : 00:00:25.90, start : 0.000000,
bitrate : N/A

Stream #0:0 : Video : png, gray16be(pc), 640x576 [SAR 1:1 DAR 10:9], 30 fps, 30 tbr, 30 tbn, 30 tbc


Stream mapping : Stream #0:0 -> #0:0 (png (native) -> rawvideo
(native)) Press [q] to stop, [?] for help [matroska @
000001f25bb71dc0] codec rawvideo is not supported by this format
Output #0, matroska, to 'out_video.mkv' :

Metadata :
encoder : Lavf58.45.100
Stream #0:0 : Video : rawvideo, gray16be, 640x576 [SAR 1:1 DAR 10:9], q=2-31, 176947 kb/s, 30 fps, 1k tbn, 30 tbc
Metadata :
encoder : Lavc58.91.100 rawvideo frame= 777 fps=602 q=-0.0 Lsize= 559475kB time=00:00:25.86 bitrate=177177.1kbits/s
speed= 20x video:559440kB audio:0kB subtitle:0kB other streams:0kB
global headers:0kB muxing overhead : 0.006204%