
Recherche avancée
Autres articles (110)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
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 ; (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...)
Sur d’autres sites (9580)
-
ffmpeg with Axis P1347 returns 400 Bad Request, but Axis 1357 works
3 mai 2016, par steampoweredI have two cameras : an Axis P1347 and an Axis P1357.
ffmpeg
gets a400 Bad Request
on the P1347 but everything works fine with the P1357.I am able to successfully stream rtsp video using vlc from an Axis P1347 Camera using the following url :
rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1
However, this same url in ffmpeg gives the following for the Axis P1347 Camera :
root@ubuntu4-virtual-machine:/home/ubuntu4# ffmpeg -re -v verbose -i "rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1"
ffmpeg version git-2016-05-02-9fcb59c Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
libavutil 55. 23.100 / 55. 23.100
libavcodec 57. 38.100 / 57. 38.100
libavformat 57. 35.100 / 57. 35.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 44.100 / 6. 44.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1: Server returned 400 Bad RequestThe same ffmpeg command works great with the nearly identical Axis P1357 Camera :
root@ubuntu4-virtual-machine:/home/ubuntu4# ffmpeg -re -rtsp_transport tcp -i "rtsp://10.8.3.90:554/axis-media/media.amp?videocodec=h264&audio=1"
ffmpeg version git-2016-05-02-9fcb59c Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
libavutil 55. 23.100 / 55. 23.100
libavcodec 57. 38.100 / 57. 38.100
libavformat 57. 35.100 / 57. 35.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 44.100 / 6. 44.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, rtsp, from 'rtsp://10.8.3.90:554/axis-media/media.amp?videocodec=h264&audio=1':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.083300, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 2592x1944 [SAR 1:1 DAR 4:3], 12 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltpObviously
rtsp
is turned on and working if vlc can display video, correct ? So why does VLC work with the camera, but not ffmpeg ? Note ffmpeg is installed and works correctly with a similar camera. -
ffmpeg overlay not showing on first frame
5 mai 2016, par Nic WilsonI’m trying to use ffmpeg to overlay a 720x720 video (
previd.mp4
) onto a background image (bg.jpg
). I have it working except that the first frame of the video that is created shows the background only for a frame before the overlay video is shown on top of it.This is what I’m using to create the video and overlay :
ffmpeg -loop 1 -i bg.jpg -i previd.mp4 -filter_complex "[1:v]scale=-1:1080[a]; [0:v][a]overlay=(main_w/2)-(overlay_w/2):0:shortest=1[video]" -map "[video]" -map 1:a -codec:a copy vid.mp4
ffmpeg version 3.0.2-tessus Copyright (c) 2000-2016 the FFmpeg developers
built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[mjpeg @ 0x7fa934808600] Changing bps to 8
Input #0, image2, from 'bg.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 16835 kb/s
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'previd_2_0.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.25.100
Duration: 00:00:06.57, start: 0.023220, bitrate: 1395 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x720, 1261 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
Metadata:
handler_name : SoundHandler
[swscaler @ 0x7fa93400b000] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x7fa934001200] using SAR=1/1
[libx264 @ 0x7fa934001200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fa934001200] profile High, level 4.0
[libx264 @ 0x7fa934001200] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - 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
Output #0, mp4, to 'vid0.mp4':
Metadata:
encoder : Lavf57.25.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Metadata:
encoder : Lavc57.24.102 libx264
Side data:
unknown side data type 10 (24 bytes)
Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 131 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 (mjpeg) -> overlay:main
Stream #1:0 (h264) -> scale
overlay -> Stream #0:0 (libx264)
Stream #1:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 26 fps=0.0 q=0.0 size= 0kB time=00:00:01.32 bitrate= 0.3kbits/sframe= 49 fps= 48 q=0.0 size= 0kB time=00:00:02.20 bitrate= 0.2kbits/sframe= 69 fps= 45 q=28.0 size= 146kB time=00:00:03.01 bitrate= 396.3kbits/frame= 92 fps= 45 q=28.0 size= 315kB time=00:00:03.94 bitrate= 654.7kbits/frame= 115 fps= 45 q=28.0 size= 514kB time=00:00:04.87 bitrate= 863.3kbits/frame= 137 fps= 45 q=28.0 size= 677kB time=00:00:05.73 bitrate= 966.9kbits/frame= 155 fps= 43 q=28.0 size= 831kB time=00:00:06.50 bitrate=1046.8kbits/frame= 164 fps= 34 q=-1.0 Lsize= 1812kB time=00:00:06.57 bitrate=2259.0kbits/s speed=1.35x
video:1700kB audio:106kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.344859%
[libx264 @ 0x7fa934001200] frame I:1 Avg QP:20.13 size: 36046
[libx264 @ 0x7fa934001200] frame P:91 Avg QP:24.37 size: 15003
[libx264 @ 0x7fa934001200] frame B:72 Avg QP:24.43 size: 4709
[libx264 @ 0x7fa934001200] consecutive B-frames: 38.4% 8.5% 1.8% 51.2%
[libx264 @ 0x7fa934001200] mb I I16..4: 30.2% 67.1% 2.7%
[libx264 @ 0x7fa934001200] mb P I16..4: 8.6% 17.6% 0.8% P16..4: 16.6% 3.1% 0.9% 0.0% 0.0% skip:52.3%
[libx264 @ 0x7fa934001200] mb B I16..4: 0.7% 1.3% 0.1% B16..8: 21.3% 1.2% 0.1% direct: 0.7% skip:74.7% L0:44.5% L1:54.2% BI: 1.4%
[libx264 @ 0x7fa934001200] 8x8 transform intra:65.0% inter:93.5%
[libx264 @ 0x7fa934001200] coded y,uvDC,uvAC intra: 32.3% 45.6% 4.6% inter: 4.3% 8.5% 0.0%
[libx264 @ 0x7fa934001200] i16 v,h,dc,p: 30% 30% 5% 35%
[libx264 @ 0x7fa934001200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 25% 14% 4% 5% 5% 5% 5% 4%
[libx264 @ 0x7fa934001200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 27% 11% 3% 7% 5% 5% 3% 2%
[libx264 @ 0x7fa934001200] i8c dc,h,v,p: 52% 20% 22% 6%
[libx264 @ 0x7fa934001200] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fa934001200] ref P L0: 74.9% 8.3% 12.6% 4.2%
[libx264 @ 0x7fa934001200] ref B L0: 92.4% 6.8% 0.9%
[libx264 @ 0x7fa934001200] ref B L1: 97.5% 2.5%
[libx264 @ 0x7fa934001200] kb/s:2122.37 -
FFmpeg stream map doesn't work any more
5 mai 2016, par TommyI have troubles to get for example first stream from MKV file. Strange is that my script used to work on older Debian and same code doesn’t work on Debian 8. I checked also manual and there is the same :
ffmpeg -i INPUT -map 0:1 out.wav
Do you know what is wrong ?
Thank you
tommy@reco1:/home/www/media/20$ ffmpeg -i /home/www/media/21/21.mkv -map 0:1 /var/www/vids/21/new.mkv
ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
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
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : stereo
Input #0, matroska,webm, from '/home/www/media/21/21.mkv':
Metadata:
MINOR_VERSION : 0
COMPATIBLE_BRANDS: mp42isom
MAJOR_BRAND : mp42
ENCODER : Lavf56.25.101
Duration: 00:01:30.16, start: 0.000000, bitrate: 3512 kb/s
Stream #0:0(und): Video: h264 (Main), yuv420p(tv), 1024x576 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Stream #0:1: Audio: pcm_s16le, 16000 Hz, 1 channels, s16, 256 kb/s
Metadata:
ENCODER : Lavc56.56.101 pcm_s16le
Stream #0:2: Audio: pcm_s16le, 16000 Hz, 1 channels, s16, 256 kb/s
Metadata:
ENCODER : Lavc56.56.101 pcm_s16le
Stream #0:3: Audio: pcm_s16le, 16000 Hz, 1 channels, s16, 256 kb/s
Metadata:
ENCODER : Lavc56.56.101 pcm_s16le
Stream #0:4(und): Audio: pcm_s16le, 16000 Hz, 2 channels, s16, 512 kb/s (default)
Metadata:
LANGUAGE : und
ENCODER : Lavc56.56.101 pcm_s16le
/var/www/vids/21/new.mkv: No such file or directory