
Recherche avancée
Autres articles (63)
-
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 (4199)
-
Unable to play video processed by ffmpeg
8 janvier 2023, par KongI have an issue of not being able to play a video that was processed by ffmpeg. I have 6 videos, each of different length but same frame rate that i merge (2 rows 3 columns).


VLC player doesn't run it, using any other players return an error. Below is the code I used to combine the videos. I can't seem to find a solution on Google or Stack Overflow.


C:\Users\kong\Desktop\kong\atasets\nuscenes\sweeps\_video>ffmpeg -i frontleft.avi -i front.avi -i frontright.avi -i backleft.avi -i back.avi -i backright.avi -filter_complex "[0:v][1:v][2:v]hstack=3[top];[3:v][4:v][5:v]hstack=3[bottom];[top][bottom]vstack[v]" -map "[v]" output.avi
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
 built with gcc 7.3.1 (GCC) 20180722
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
 libavutil 56. 14.100 / 56. 14.100
 libavcodec 58. 18.100 / 58. 18.100
 libavformat 58. 12.100 / 58. 12.100
 libavdevice 58. 3.100 / 58. 3.100
 libavfilter 7. 16.100 / 7. 16.100
 libswscale 5. 1.100 / 5. 1.100
 libswresample 3. 1.100 / 3. 1.100
 libpostproc 55. 1.100 / 55. 1.100
Input #0, avi, from 'frontleft.avi':
 Metadata:
 encoder : Lavf58.12.100
 Duration: 00:15:51.90, start: 0.000000, bitrate: 9475 kb/s
 Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuvj420p(pc, progressive), 1600x900 [SAR 1:1 DAR 16:9], 9471 kb/s, 20 fps, 20 tbr, 20 tbn, 40 tbc
Input #1, avi, from 'front.avi':
 Metadata:
 encoder : Lavf58.12.100
 Duration: 00:15:45.00, start: 0.000000, bitrate: 7887 kb/s
 Stream #1:0: Video: h264 (High) (H264 / 0x34363248), yuvj420p(pc, progressive), 1600x900 [SAR 1:1 DAR 16:9], 7884 kb/s, 20 fps, 20 tbr, 20 tbn, 40 tbc
Input #2, avi, from 'frontright.avi':
 Metadata:
 encoder : Lavf58.12.100
 Duration: 00:15:44.20, start: 0.000000, bitrate: 8551 kb/s
 Stream #2:0: Video: h264 (High) (H264 / 0x34363248), yuvj420p(pc, progressive), 1600x900 [SAR 1:1 DAR 16:9], 8547 kb/s, 20 fps, 20 tbr, 20 tbn, 40 tbc
Input #3, avi, from 'backleft.avi':
 Metadata:
 encoder : Lavf58.12.100
 Duration: 00:15:11.05, start: 0.000000, bitrate: 9864 kb/s
 Stream #3:0: Video: h264 (High) (H264 / 0x34363248), yuvj420p(pc, progressive), 1600x900 [SAR 1:1 DAR 16:9], 9859 kb/s, 20 fps, 20 tbr, 20 tbn, 40 tbc
Input #4, avi, from 'back.avi':
 Metadata:
 encoder : Lavf58.12.100
 Duration: 00:15:17.95, start: 0.000000, bitrate: 7347 kb/s
 Stream #4:0: Video: h264 (High) (H264 / 0x34363248), yuvj420p(pc, progressive), 1600x900 [SAR 1:1 DAR 16:9], 7344 kb/s, 20 fps, 20 tbr, 20 tbn, 40 tbc
Input #5, avi, from 'backright.avi':
 Metadata:
 encoder : Lavf58.12.100
 Duration: 00:15:46.30, start: 0.000000, bitrate: 8965 kb/s
 Stream #5:0: Video: h264 (High) (H264 / 0x34363248), yuvj420p(pc, progressive), 1600x900 [SAR 1:1 DAR 16:9], 8961 kb/s, 20 fps, 20 tbr, 20 tbn, 40 tbc
File 'output.avi' already exists. Overwrite ? [y/N]



Feedback on proposed duplicate


It seems like this isn't a duplicate because all the solutions in the duplicate links do not work.


-
How to stream MJPEG stream to RTMP server ?
24 octobre 2018, par geoootI have a MJPEG stream and I’m trying to use ffmpeg to take it as an input and stream it to an rtmp server at a defined framerate.
I have already tried this as a command :
ffmpeg -f mjpeg -r 60 -i http://localhost:3030/ -f flv -vcodec flv rtmp://localhost/live/test
While ffmpeg looks like it is sending something...
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers built with Apple LLVM version 9.1.0 (clang-902.0.39.2) configuration : —prefix=/usr/local/Cellar/ffmpeg/4.0.2 —enable-shared —enable-pthreads —enable-version3 —enable-hardcoded-tables —enable-avresample —cc=clang —host-cflags= —host-ldflags= —enable-gpl —enable-libmp3lame —enable-libx264 —enable-libxvid —enable-opencl —enable-videotoolbox —disable-lzma libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100 libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100 libpostproc 55. 1.100 / 55. 1.100 Input #0, mjpeg, from ’http://localhost:3030/’ : Duration : N/A, bitrate : N/A Stream #0:0 : Video : mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 60 tbr, 1200k tbn, 60 tbc [tcp @ 0x7f95f9401ec0] Connection to tcp ://localhost:1935 failed (Connection refused), trying next address Stream mapping : Stream #0:0 -> #0:0 (mjpeg (native) -> flv1 (flv)) Press [q] to stop, [?] for help [swscaler @ 0x7f95fa033e00] deprecated pixel format used, make sure you did set range correctly Output #0, flv, to ’rtmp ://localhost/live/test’ : Metadata : encoder : Lavf58.12.100 Stream #0:0 : Video : flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 60 fps, 1k tbn, 60 tbc Metadata : encoder : Lavc58.18.100 flv Side data : cpb : bitrate max/min/avg : 0/0/200000 buffer size : 0 vbv_delay : -1 frame= 20 fps=3.2 q=31.0 size= 194kB time=00:00:00.31 bitrate=4999.6kbits/s speed=0.0512x
I cannot preview the stream through VLC. Weirdly enough, if I let VLC try to load the url (rtmp ://localhost/live/test) and then close ffmpeg, VLC will actually show the video stream for a few frames and then stop again.
Help on how to achieve this would be much appreciated.
-
Invalid data when converting mp4 to x264 with ffmpeg but fine when converting flv to x264
15 octobre 2018, par JulienI have a PHP script that converts uploaded videos to x264, it works fine if I upload an FLV, but with an MP4 it doesn’t work, here’s the command and output :
Command :
ffmpeg -y -i ../../flv/rjaRGKzSMtksUJ4kGbsLMYEcr.mp4 -crf 0 -vcodec libx264 -movflags faststart ../../flv/rjaRGKzSMtksUJ4kGbsLMYEcr.mp4 2>&1
Output :
ffmpeg version N-67321-ge5054c8 Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 1 2014 12:53:28 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)
configuration: --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264
libavutil 54. 11.100 / 54. 11.100
libavcodec 56. 10.100 / 56. 10.100
libavformat 56. 11.101 / 56. 11.101
libavdevice 56. 2.100 / 56. 2.100
libavfilter 5. 2.100 / 5. 2.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../../flv/rjaRGKzSMtksUJ4kGbsLMYEcr.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 2018-10-08 12:03:53
encoder : Lavf56.15.102
Duration: 00:03:03.08, start: 0.023129, bitrate: 1647 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 720x404 [SAR 1:1 DAR 180:101], 1547 kb/s, 24 fps, 24 tbr, 12288 tbn, 24 tbc (default)
Metadata:
creation_time : 2018-10-08 12:03:53
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default)
Metadata:
creation_time : 2018-10-08 12:03:53
handler_name : SoundHandler
[libx264 @ 0x1f0a080] using SAR=1/1
[libx264 @ 0x1f0a080] using cpu capabilities: MMX2 SSE Cache64
[libx264 @ 0x1f0a080] profile High 4:4:4 Predictive, level 3.0, 4:2:0 8-bit
[libx264 @ 0x1f0a080] 64 - core 142 - 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=0x1:0x111 me=hex subme=7 psy=0 mixed_ref=1 me_range=16 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=24 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, mp4, to '../../flv/rjaRGKzSMtksUJ4kGbsLMYEcr.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf56.11.101
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x404 [SAR 1:1 DAR 180:101], q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
Metadata:
creation_time : 2018-10-08 12:03:53
handler_name : VideoHandler
encoder : Lavc56.10.100 libx264
Stream #0:1(und): Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
Metadata:
creation_time : 2018-10-08 12:03:53
handler_name : SoundHandler
encoder : Lavc56.10.100 libfdk_aac
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[mpeg4 @ 0x2004420] ac-tex damaged at 1 1
[mpeg4 @ 0x2004420] Error at MB: 47
[mpeg4 @ 0x2004420] concealing 1170 DC, 1170 AC, 1170 MV errors in P frame
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ed3ec0] stream 1, offset 0xee5b: partial file
../../flv/rjaRGKzSMtksUJ4kGbsLMYEcr.mp4: Invalid data found when processing input
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ed3ec0] stream 0, offset 0xef98: partial file
../../flv/rjaRGKzSMtksUJ4kGbsLMYEcr.mp4: Invalid data found when processing input
[mp4 @ 0x1f08f40] Starting second pass: moving the moov atom to the beginning of the file
frame= 3 fps=0.0 q=-1.0 Lsize= 116kB time=00:00:00.12 bitrate=7585.3kbits/s dup=1 drop=0
video:113kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.171168%
[libx264 @ 0x1f0a080] frame I:1 Avg QP: 0.00 size:113785
[libx264 @ 0x1f0a080] frame P:2 Avg QP: 0.00 size: 518
[libx264 @ 0x1f0a080] mb I I16..4: 38.4% 0.0% 61.6%
[libx264 @ 0x1f0a080] mb P I16..4: 0.2% 0.0% 0.1% P16..4: 1.2% 0.1% 0.2% 0.0% 0.0% skip:98.3%
[libx264 @ 0x1f0a080] 8x8 transform intra:0.0% inter:3.1%
[libx264 @ 0x1f0a080] coded y,uvDC,uvAC intra: 91.6% 88.7% 88.7% inter: 0.7% 0.2% 0.2%
[libx264 @ 0x1f0a080] i16 v,h,dc,p: 46% 53% 1% 0%
[libx264 @ 0x1f0a080] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 40% 3% 2% 3% 2% 2% 2% 2%
[libx264 @ 0x1f0a080] i8c dc,h,v,p: 2% 55% 43% 0%
[libx264 @ 0x1f0a080] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1f0a080] kb/s:7348.61As you can see there are some errors, there. I’ve tried with several different mp4 files, from different sources so it’s not a problem of the video files.
I’ve also tried without the
-movflags faststart
option, also tried with-q:v 0
instead of-crf 0
, nothing works, but like stated above, it works from FLV -> MP4, what am i doing wrong here ?PS : By "Nothing works" I mean the resulting MP4 plays for 1 frame in the browser and stops.