
Recherche avancée
Autres articles (59)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (11020)
-
How to record video from old webcam using ffmpeg on Linux ?
5 février 2015, par MoominAfter couple of hours I finally accepted my absolute lack of knowledge and decided to post this question here.
I’m trying to record video from an old external USB webcam (Media-Tech MT400 -> 0c45:6029) withffmpeg
but without much success.First thing I’ve tried was to run to try something that works for the built-in webcam) :
ffmpeg -f v4l2 -i /dev/video1 test.avi
But that returned a following error :
Cannot find a proper format for codec 'none' (id 0), pixel format 'none' (id -1)
Here is what I get from
v4l2-ctl -d /dev/video1/ --all --list-formats-ext
Driver Info (not using libv4l2):
Driver name : sonixb
Card type : USB camera
Bus info : usb-0000:04:00.0-1
Driver version: 3.10.17
Capabilities : 0x85000001
Video Capture
Read/Write
Streaming
Device Capabilities
Device Caps : 0x05000001
Video Capture
Read/Write
Streaming
Priority: 2
Video input : 0 (sonixb: ok)
Format Video Capture:
Width/Height : 352/288
Pixel Format : 'S910'
Field : None
Bytes per Line: 352
Size Image : 126720
Colorspace : SRGB
Streaming Parameters Video Capture:
Frames per second: invalid (0/0)
Read buffers : 2
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'S910'
Name : S910
Size: Discrete 160x120
Size: Discrete 176x144
Size: Discrete 320x240
Size: Discrete 352x288
Index : 1
Type : Video Capture
Pixel Format: 'BA81'
Name : BA81
Size: Discrete 160x120
Size: Discrete 176x144Unfortunately that was not of much help to me, but I tried capturing webcam output with
VLC
and recording it which.... WORKED !I tried
ffmpeg -i vlc-record[...].avi
onVLC recording
which returned following information :Input #0, avi, from 'vlc-record-2015-02-05-05h22m52s-v4l2____dev_video1-.avi':
Duration: 00:00:01.58, start: 0.000000, bitrate: 26937 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, 27671 kb/s, 22.10 tbr, 22.10 tbn, 22.10 tbcI thought that was enough information (
rawvideo
andyuv420p
) led to runffmpeg
with following arguments (I have foundyuv4
usingffmpeg -formats
)ffmpeg -f rawvideo -vcodec yuv4 -i /dev/video1 test.avi
The result was only slightly better than one that I saw after my first attempt :
[IMGUTILS @ 0x7fff497d3920] Picture size 0x0 is invalid
[rawvideo @ 0x9c4720] Could not find codec parameters for stream 0 (Video: yuv4, yuv420p, -4 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
/dev/video1: could not find codec parametersAgain after some searching and several tries I added ’-video_size cif` option and.... it WORKED !!!!
Well, not really...
Input #0, rawvideo, from '/dev/video1':
Duration: N/A, start: 0.000000, bitrate: 30412 kb/s
Stream #0:0: Video: yuv4, yuv420p, 352x288, 30412 kb/s, 25 tbr, 25 tbn, 25 tbc
Output #0, avi, to 'test.avi':
Metadata:
ISFT : Lavf55.19.104
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 352x288, q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (yuv4 -> mpeg4)
Press [q] to stop, [?] for help
frame= 13 fps=6.3 q=24.8 Lsize= 1064kB time=00:00:00.52 bitrate=16759.3kbits/s
video:1058kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.554114%LED on webcam turned on as during capturing video with
VLC
but all that was recorded was TV-like noise.So here I am after 7 hours - still without work solution - asking for your help.
Thanks in advance.
-
Read metadata with FFMPEG
18 février 2015, par Martin DelilleI’m looking for a way to print a video or audio file metadata using FFMPEG.
I tried the following command :
ffmpeg -i DirtyLove.mov
And got the following result :
ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
built on Feb 16 2015 18:01:39 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --disable-indev=qtkit --enable-vda
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
Guessed Channel Layout for Input Stream #0.1 : stereo
Guessed Channel Layout for Input Stream #0.2 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../DirtyLove/DirtyLove.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2007-09-27 11:23:38
Duration: 00:01:57.16, start: 0.000000, bitrate: 17918 kb/s
Stream #0:0(eng): Video: mjpeg (jpeg / 0x6765706A), yuvj422p(pc, bt470bg/unknown/unknown), 720x576 [SAR 72:72 DAR 5:4], 14839 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 2007-09-27 11:23:38
handler_name : Gestionnaire d�alias Apple
encoder : Photo - JPEG
timecode : 10:04:01:11
Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
Metadata:
creation_time : 2007-09-27 11:23:38
handler_name : Gestionnaire d�alias Apple
Stream #0:2(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
Metadata:
creation_time : 2007-09-27 11:23:38
handler_name : Gestionnaire d�alias Apple
Stream #0:3(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2007-09-27 11:29:22
handler_name : Gestionnaire d�alias Apple
timecode : 10:04:01:11
At least one output file must be specifiedThere should be a
timecode
that I can’t see.Any ideas ?
-
Firefox doesn't play mp4 file in HTML5 video
21 janvier 2016, par DeveloperI recorded a video with my mobile which had the format ".mp4". Now if I load that video in HTML5 video tag, I get an error
HTTP "Content-Type" of "video/3gpp" is not supported.
Why does Firefox consider the file as3gpp
although it is anmp4
file ?
If I log the file properties when it is loaded on to browser, I see the following{ name: "test.mp4", lastModified: 1434536249000, lastModifiedDate: Date 2015-06-17T10:17:29.000Z, size: 41151959, type: "video/mp4" }
This means firefox identifies the type as
mp4
only. But doesn’t play it giving the errorHTTP "Content-Type" of "video/3gpp" is not supported.