
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (81)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
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 ;
Sur d’autres sites (9165)
-
ffmpeg : xstack doesn't work when inputs are scaled to certain dimensions
4 juin 2020, par dfriend21I'm using ffmpeg to create a mosaic of videos using the
xstack
filter. The input videos may come in varying dimensions, so I'm using thescale
filter to scale them beforehand, and I'm using theforce_original_aspect_ratio
option and then thepad
filter to keep the original aspect ratios of each video and add black bars to the sides to make each video have the correct dimensions.


I have a command that's working - however, it's inconsistent. For some dimensions it works, while for others it doesn't.



I'm using the
fluent-ffmpeg
Node.js module to callffmpeg
from Node.js. To do this, I'm passing an array of strings to thecomplexFilter()
function.


The following strings for the complex filter works :



"[0:v]scale=400:250:force_original_aspect_ratio=decrease,pad=400:250:(ow-iw)/2:(oh-ih)/2 [s0]"
"[1:v]scale=400:250:force_original_aspect_ratio=decrease,pad=400:250:(ow-iw)/2:(oh-ih)/2 [s1]"
"[s0][s1]xstack=inputs=2:fill='black':layout=0_0|w0_0[v]"
"[0:a][1:a]amix=inputs=2[a]"




However, if I change the output dimensions of each video to be 400:225 instead of 400:250 it fails.



"[0:v]scale=400:225:force_original_aspect_ratio=decrease,pad=400:225:(ow-iw)/2:(oh-ih)/2 [s0]"
"[1:v]scale=400:225:force_original_aspect_ratio=decrease,pad=400:225:(ow-iw)/2:(oh-ih)/2 [s1]"
"[s0][s1]xstack=inputs=2:fill='black':layout=0_0|w0_0[v]"
"[0:a][1:a]amix=inputs=2[a]"




The following error is given :



An error occurred: ffmpeg exited with code 1: Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #1:1
Conversion failed!




If it's relevant, the first video has dimensions of 1280x720 while the second video has dimensions of 320x240.



Anyone know why one set of dimensions works while the other doesn't ?



EDIT : Here is the full ffmpeg log for when it fails :



ffmpeg version git-2020-05-13-b12b053 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200513
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 45.100 / 56. 45.100
 libavcodec 58. 84.100 / 58. 84.100
 libavformat 58. 43.100 / 58. 43.100
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 80.100 / 7. 80.100
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:/Users/user_name/Desktop/vids/vid1.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp41isom
 creation_time : 2020-05-21T15:52:20.000000Z
 Duration: 00:00:10.76, start: 0.000000, bitrate: 8385 kb/s
 Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 8237 kb/s, 29.99 fps, 30 tbr, 30k tbn, 60 tbc (default)
 Metadata:
 creation_time : 2020-05-21T15:52:20.000000Z
 handler_name : VideoHandler
 encoder : AVC Coding
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 165 kb/s (default)
 Metadata:
 creation_time : 2020-05-21T15:52:20.000000Z
 handler_name : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'C:/Users/user_name/Desktop/vids/vid2.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp41isom
 creation_time : 2020-05-21T15:54:37.000000Z
 Duration: 00:00:11.01, start: 0.000000, bitrate: 836 kb/s
 Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 320x240 [SAR 1:1 DAR 4:3], 669 kb/s, 29.88 fps, 30 tbr, 30k tbn, 60 tbc (default)
 Metadata:
 creation_time : 2020-05-21T15:54:37.000000Z
 handler_name : VideoHandler
 encoder : AVC Coding
 Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 163 kb/s (default)
 Metadata:
 creation_time : 2020-05-21T15:54:37.000000Z
 handler_name : SoundHandler
Stream mapping:
 Stream #0:0 (h264) -> scale
 Stream #0:1 (aac) -> amix:input0
 Stream #1:0 (h264) -> scale
 Stream #1:1 (aac) -> amix:input1
 xstack -> Stream #0:0 (libx264)
 amix -> Stream #0:1 (aac)
Press [q] to stop, [?] for help
[swscaler @ 000001343fefc200] deprecated pixel format used, make sure you did set range correctly
[Parsed_pad_1 @ 000001343f8dc3c0] Padded dimensions cannot be smaller than input dimensions.
[Parsed_pad_1 @ 000001343f8dc3c0] Failed to configure input pad on Parsed_pad_1
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #1:1
Conversion failed!

Done in 0.66s.



-
can i speedup text watermarking on ffmpeg ?
3 juin 2020, par Easy Tricks For AndroidThis command i used
ffmpeg -i "1.mp4" -vf "drawtext=text='watermak_name':x=w-tw-50:y=h-th-50:fontfile=/Windows/fonts/calibri.ttf:fontsize=20:fontcolor=white:shadowcolor=black:shadowx=2:shadowy=2" "output.mp4"
. watermark is working with this command, but it takes more time up-to 3 hours +


this is the log i got from cmd



D :>ffmpeg -i "1.mp4" -vf "drawtext=text='watermak_name':x=w-tw-50:y=h/2-th:fontfile=/Windows/fonts/
courbd.ttf:fontsize=20:fontcolor=white" -max_muxing_queue_size 9999 "1_out.mp4"


ffmpeg version git-2020-05-23-26b4509 Copyright (c) 2000-2020 the FFmpeg developers

 built with gcc 9.3.1 (GCC) 20200523

 configuration : —enable-gpl —enable-version3 —enable-sdl2 —enable-fontconfig —enable-gnutls —enable-iconv
—enable-libass —enable-libdav1d —enable-libbluray —enable-libfreetype —enable-libmp3lame
—enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-libshine
—enable-libsnappy —enable-libsoxr —enable-libsrt —enable-libtheora —enable-libtwolame —enable-libvpx
—enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libzimg
—enable-lzma —enable-zlib —enable-gmp —enable-libvidstab —enable-libvmaf —enable-libvorbis
—enable-libvo-amrwbenc —enable-libmysofa —enable-libspeex —enable-libxvid —enable-libaom
—disable-w32threads —enable-libmfx —enable-ffnvcodec —enable-cuda-llvm —enable-cuvid —enable-d3d11va
—enable-nvenc —enable-nvdec —enable-dxva2 —enable-avisynth —enable-libopenmpt —enable-amf

 libavutil 56. 48.100 / 56. 48.100

 libavcodec 58. 87.101 / 58. 87.101

 libavformat 58. 43.100 / 58. 43.100

 libavdevice 58. 9.103 / 58. 9.103

 libavfilter 7. 83.100 / 7. 83.100

 libswscale 5. 6.101 / 5. 6.101

 libswresample 3. 6.100 / 3. 6.100

 libpostproc 55. 6.100 / 55. 6.100

Truncating packet of size 95 to 83

Input #0, matroska,webm, from 'Uriyadi.mkv' :

 Metadata :

 title : Downloaded From ABCD

 encoder : Downloaded From ABCD

 creation_time : 2020-05-22T16:44:46.000000Z

 Duration : 02:11:50.86, start : 0.000000, bitrate : 750 kb/s

 Stream #0:0(mal) : Video : h264 (High), yuv420p(progressive), 720x304 [SAR 1:1 DAR 45:19], 25 fps, 25 tbr, 1k
tbn, 50 tbc (default)

 Metadata :

 title : Downloaded From ABCD

 Stream #0:1(mal) : Audio : mp3, 48000 Hz, stereo, fltp, 65 kb/s (default)

 Metadata :

 title : Downloaded From ABCD

Stream mapping :

 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))

 Stream #0:1 -> #0:1 (mp3 (mp3float) -> vorbis (libvorbis))

Press [q] to stop, [?] for help

Fontconfig error : Cannot load default config file

[Parsed_drawtext_0 @ 000001a470fe3f00] Using "C :/Windows/fonts/mingliub.ttc"

[libx264 @ 000001a470a10600] using SAR=1/1

[libx264 @ 000001a470a10600] using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX

[libx264 @ 000001a470a10600] profile High, level 3.0, 4:2:0, 8-bit

[libx264 @ 000001a470a10600] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 -
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=9 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, matroska, to '1_out.mp4' :

 Metadata :

 title : Downloaded From ABCD

 encoder : Lavf58.43.100

 Stream #0:0(mal) : Video : h264 (libx264) (H264 / 0x34363248), yuv420p, 720x304 [SAR 1:1 DAR 45:19], q=-1—1,
25 fps, 1k tbn, 25 tbc (default)

 Metadata :

 title : Downloaded From ABCD

 encoder : Lavc58.87.101 libx264

 Side data :

 cpb : bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay : N/A

 Stream #0:1(mal) : Audio : vorbis (libvorbis) (oV[0][0] / 0x566F), 48000 Hz, stereo, fltp (default)

 Metadata :

 title : Downloaded From ABCD

 encoder : Lavc58.87.101 libvorbis

frame=35791 fps=308 q=28.0 size= 107264kB time=00:23:52.10 bitrate= 613.6kbits/s speed=12.3x

 -
FFmpeg filter complex add audio file to video at specific points
4 juin 2020, par steveatrim=0:2
starts fine when I play the video it plays the mp3 now how do I add a working end time say finish at 9 seconds ?


Summary I want to start at 2 seconds and finish at 9 seconds.



ffmpeg -y -i "C:\Users\test\Desktop\vidz\New folder (2)\target\vaastav song .mp4" -i "C:\Users\test\Desktop\vidz\New folder (2)\target\2.mp3" -filter_complex "[0]atrim=0:2[Apre];[0]atrim=5,asetpts=PTS-STARTPTS[Apost];[Apre][1][Apost]concat=n=3:v=0:a=1" -vcodec copy -y "C:\Users\test\Desktop\vidz\New folder (2)\target\output1.mp4"




log file



ffmpeg version git-2020-04-13-59e3a9a Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200328
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 42.102 / 56. 42.102
 libavcodec 58. 78.102 / 58. 78.102
 libavformat 58. 42.100 / 58. 42.100
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 77.101 / 7. 77.101
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\test\Desktop\vidz\New folder (2)\target\vaastav song .mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 creation_time : 2018-09-02T04:28:46.000000Z
 Duration: 00:05:08.80, start: 0.000000, bitrate: 2289 kb/s
 Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 2160 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
 Metadata:
 creation_time : 2018-09-02T04:28:46.000000Z
 handler_name : ISO Media file produced by Google Inc. Created on: 09/01/2018.
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
 Metadata:
 creation_time : 2018-09-02T04:28:46.000000Z
 handler_name : ISO Media file produced by Google Inc. Created on: 09/01/2018.
Input #1, mp3, from 'C:\Users\test\Desktop\vidz\New folder (2)\target\2.mp3':
 Metadata:
 genre : Electronic;Indie
 title : A Distorted Noise With A Little Bit Of Sense
 artist : Lenin Was A Zombie
 encoder : Lavf56.19.100
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 Duration: 00:00:54.00, start: 0.025057, bitrate: 192 kb/s
 Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
 Metadata:
 encoder : Lavc56.21
Stream mapping:
 Stream #0:1 (aac) -> atrim
 Stream #0:1 (aac) -> atrim
 Stream #1:0 (mp3float) -> concat:in1:a0
 concat -> Stream #0:0 (aac)
 Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
Output #0, mp4, to 'C:\Users\test\Desktop\vidz\New folder (2)\target\output1.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 encoder : Lavf58.42.100
 Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 encoder : Lavc58.78.102 aac
 Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 2160 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc (default)
 Metadata:
 creation_time : 2018-09-02T04:28:46.000000Z
 handler_name : ISO Media file produced by Google Inc. Created on: 09/01/2018.
frame= 737 fps=0.0 q=-1.0 size= 7936kB time=00:00:29.44 bitrate=2208.1kbits/s speed=58.9x 
[out_0_0 @ 000000000312c900] 100 buffers queued in out_0_0, something may be wrong.
[out_0_0 @ 000000000312c900] 1000 buffers queued in out_0_0, something may be wrong.
frame= 1401 fps=876 q=-1.0 size= 16640kB time=00:01:46.85 bitrate=1275.7kbits/s speed=66.8x 
frame= 2281 fps=1086 q=-1.0 size= 26112kB time=00:02:22.01 bitrate=1506.3kbits/s speed=67.6x 
frame= 3152 fps=1212 q=-1.0 size= 35584kB time=00:02:56.58 bitrate=1650.8kbits/s speed=67.9x 
frame= 4011 fps=1294 q=-1.0 size= 45824kB time=00:03:31.32 bitrate=1776.4kbits/s speed=68.2x 
frame= 4882 fps=1356 q=-1.0 size= 56320kB time=00:04:06.03 bitrate=1875.2kbits/s speed=68.3x 
frame= 5753 fps=1403 q=-1.0 size= 66560kB time=00:04:40.79 bitrate=1941.8kbits/s speed=68.5x 
frame= 6622 fps=1440 q=-1.0 size= 77056kB time=00:05:15.37 bitrate=2001.6kbits/s speed=68.6x 
frame= 7482 fps=1467 q=-1.0 size= 85248kB time=00:05:50.20 bitrate=1994.1kbits/s speed=68.7x 
frame= 7720 fps=1479 q=-1.0 Lsize= 87248kB time=00:05:59.79 bitrate=1986.5kbits/s speed=68.9x 
video:81451kB audio:5634kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.186449%
[aac @ 0000000003017ac0] Qavg: 648.065




I tried messing about with the line of code but no success so I turn to you for additional support