
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (76)
-
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 (10674)
-
Rotate Video- Could not write header for output file #0 (incorrect codec parameters ?)
26 août 2018, par varmashrivastavaI am using below command to rotate video-
{"-y", "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-i", inputPath, "-vf", "transpose=" + type,"-c:a", "copy", outputPath}
I am getting below failure message in Android Oreo-
"ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n
built with gcc 4.8 (GCC)\n configuration : —target-os=linux
—cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
—arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
—enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
-Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
54. 0.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/Download/dolbycanyon.3gp’ :\n Metadata :\n
major_brand : 3gp4\n minor_version : 512\n
compatible_brands : isomiso23gp4\n Duration : 00:00:38.07, start :
0.006250, bitrate : 402 kb/s\n Stream #0:0(und) : Video : h263 (s263 / 0x33363273), yuv420p, 704x576 [SAR 12:11 DAR 4:3], 384 kb/s, 29.97
fps, 29.97 tbr, 30k tbn, 29.97 tbc (default)\n Metadata :\n
handler_name : VideoHandler\n Stream #0:1(und) : Audio : amr_nb
(samr / 0x726D6173), 8000 Hz, mono, flt, 12 kb/s (default)\n
Metadata :\n handler_name : SoundHandler\n[libx264 @
0xf64e5400] using SAR=11/12\n[libx264 @ 0xf64e5400] using cpu
capabilities : none !\n[libx264 @ 0xf64e5400] profile High, level
3.1\n[libx264 @ 0xf64e5400] 264 - core 148 - 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=12 lookahead_threads=2 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\n[mp4 @ 0xf64a8600] Could not find tag for codec amr_nb in
stream #1, codec not currently supported in container\nOutput #0, mp4,
to ’/storage/emulated/0/Movies/rotate_video4.mp4’ :\n Metadata :\n
major_brand : 3gp4\n minor_version : 512\n
compatible_brands : isomiso23gp4\n encoder : Lavf57.25.100\n
Stream #0:0(und) : Video : h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 576x704 [SAR 11:12 DAR 3:4], q=-1—1, 29.97 fps, 30k tbn,
29.97 tbc (default)\n Metadata :\n handler_name : VideoHandler\n encoder : Lavc57.24.102 libx264\n Side
data :\n unknown side data type 10 (24 bytes)\n Stream
0:1(und) : Audio : amr_nb (samr / 0x726D6173), 8000 Hz, mono, 12 kb/s (default)\n Metadata :\n handler_name : SoundHandler\nStream
mapping :\n Stream #0:0 -> #0:0 (h263 (native) -> h264 (libx264))\n
Stream #0:1 -> #0:1 (copy)\nCould not write header for output file #0
(incorrect codec parameters ?) : Invalid argument\n"Why am i getting this error and how can i resolve it ?
-
ffmpeg. Segmentation fault when input process end
24 mars 2020, par mr.NobodyIm using xvfb-run with katalon cli command to execute selenium tests inside docker container (ubuntu 16)
xvfb-run --listen-tcp --server-num 44 --auth-file /tmp/xvfb.auth -s '-ac -screen 0 1024x768x24' katalon -browserType=Firefox -retry=0 -statusDelay=15 -testSuitePath=Test Suites/Full_cases -runMode=console -reportFolder=/katalon/report -projectPath=/katalon/project.prj &
and ffmpeg command to record video
ffmpeg -y -f x11grab -video_size 1024x768 -i :44 -codec:v libx264 -r 12 /katalon/report/output_2.mp4
But when the xvf-run process ends i have a ffmpeg segmentation fault error. Output file doesn’t save.
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, x11grab, from ':44':
Duration: N/A, start: 1584962410.149890, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1024x768, 29.97 fps, 29.97 tbr, 1000k tbn, 29.97 tbc
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x15e1a80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x15e1a80] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
[libx264 @ 0x15e1a80] 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=4 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=12 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 '/katalon/katalon/report/behat_2.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1024x768, q=-1--1, 12 fps, 12288 tbn, 12 tbc
Metadata:
encoder : Lavc56.60.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
Segmentation fault2 q=26.0 size= 548kB time=00:00:53.08 bitrate= 84.5kbits/s dup=1 drop=1033My decision how to save video is send "q" keyword before the xvfb-run ends, but this is very uncomfortable
-
h.264 lossless video in python with ffmpeg
7 mars 2015, par OjtwistI have raw video files which I encoded via ffmpeg (lossless) :
ffmpeg -i test.avi -c:v libx264 -preset veryslow -crf 0 output.mkv
Now I tried to read these in python :
FFMPEG_BIN = "ffmpeg"
command = [FFMPEG_BIN,
'-i',path,
'-f', 'image2pipe',
'-pix_fmt','yuv444p',
'-r',framerate,
'-ss',startposition,
'-vcodec','rawvideo','-']
pipe = sp.Popen(command,stdout=sp.PIPE,bufsize=10**8)
while True:
raw_image = pipe.stdout.read(640*480*3)
image = np.fromstring(raw_image,dtype='uint8')
image = image.reshape((480,640,3))I can’t find the good command to get the video lossless in python. If I try it as mentioned above and show it with matplotlib, I get :
If I set -
vcodec
tolibx264
I get noise.If i set
-pix_fmt
torgb24
, I get a normal looking image, but I can see some artifact due to the color conversion.What is the command I am looking for ?
extra info, the output of the encoding (initial raw video ==> lossless h.264) :
worker@worklati:~/data/DMG/test$ ffmpeg -i test.avi -c:v libx264 -preset veryslow -crf 0 output.mkv
ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
built on Jan 11 2015 17:53:45 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libpulse --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, avi, from 'test.avi':
Duration: 00:10:25.17, start: 0.000000, bitrate: 44237 kb/s
Stream #0:0: Video: rawvideo, bgr24, 640x480, 6 fps, 6 tbr, 6 tbn, 6 tbc
File 'output.mkv' already exists. Overwrite ? [y/N] y
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x1fd7160] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x1fd7160] profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-bit
[libx264 @ 0x1fd7160] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=9 psy=0 mixed_ref=1 me_range=24 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=6 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, matroska, to 'output.mkv':
Metadata:
encoder : Lavf56.15.102
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 640x480, q=-1--1, 6 fps, 1k tbn, 6 tbc
Metadata:
encoder : Lavc56.13.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 3751 fps= 40 q=-1.0 Lsize= 133724kB time=00:10:25.16 bitrate=1752.3kbits/s
video:133691kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.024307%
[libx264 @ 0x1fd7160] frame I:16 Avg QP: 0.00 size: 58298
[libx264 @ 0x1fd7160] frame P:3735 Avg QP: 0.00 size: 36403
[libx264 @ 0x1fd7160] mb I I16..4: 65.3% 6.9% 27.7%
[libx264 @ 0x1fd7160] mb P I16..4: 3.0% 2.1% 0.2% P16..4: 71.2% 0.8% 22.4% 0.0% 0.0% skip: 0.1%
[libx264 @ 0x1fd7160] 8x8 transform intra:36.9% inter:49.5%
[libx264 @ 0x1fd7160] coded y,u,v intra: 79.3% 0.0% 0.0% inter: 97.6% 0.0% 0.0%
[libx264 @ 0x1fd7160] i16 v,h,dc,p: 20% 3% 76% 1%
[libx264 @ 0x1fd7160] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 5% 8% 80% 1% 1% 2% 1% 1% 1%
[libx264 @ 0x1fd7160] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 28% 16% 5% 7% 8% 5% 4% 5%
[libx264 @ 0x1fd7160] Weighted P-Frames: Y:0.2% UV:0.0%
[libx264 @ 0x1fd7160] ref P L0: 63.2% 0.0% 14.2% 5.3% 4.0% 3.2% 2.6% 1.1% 1.0% 1.0% 0.9% 1.1% 0.7% 0.6% 0.6% 0.6%
[libx264 @ 0x1fd7160] kb/s:1751.85