
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (32)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4470)
-
De-interlace hardware with FFMpeg Cuda/cuvid decoder is not working anymore ?
15 novembre 2017, par Red5goaheadIs it possible that with Nvidia whql driver (385.69) for Windows 10 x64 1709 Cuda is not working to deinterlace H264 video stream ?
Mpc-HC, lav codec screenshot setup
Please refer to this one minute sample /111 MB
I tried with MPC-HC and FFMPEG h264_cuvid decoder with -hwaccels and -deint switch (-resize it’s working fine for example), no other sw filter in the chain of course, the result color space is Cuda/NV12
-
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.
-
FFMpeg/video4linux2,v4l2 : The v4l2 frame is 46448 bytes, but 153600 bytes are expected (Webcam capture not fast enough ?)
30 août 2013, par user763410I am trying to capture webcam output in linux/ubuntu. I have a chicony webcam (lenovo laptop). I am running inside a VMWARE virtual machine. The capture is not proceeding beyond 10 seconds. can you please help.
The command I used is :
$ ffmpeg -y -f video4linux2 -r 20 -s 160x120 -i /dev/video0 -acodec libfaac -ab 128k /tmp/web.avi
The most important message I am getting is :
[video4linux2,v4l2 @ 0x9e43fa0] The v4l2 frame is 46448 bytes, but 153600 bytes are expected
Complete message from ffmpeg :
ffmpeg version N-55159-gf118b41 Copyright (c) 2000-2013 the FFmpeg developers
built on Aug 18 2013 09:09:13 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-libass --prefix=/opt/ffmpeg --enable-debug --enable-libfreetype
libavutil 52. 40.100 / 52. 40.100
libavcodec 55. 19.100 / 55. 19.100
libavformat 55. 12.102 / 55. 12.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.100 / 3. 82.100
libswscale 2. 4.100 / 2. 4.100
libswresample 0. 17.103 / 0. 17.103
[video4linux2,v4l2 @ 0x9e43fa0] The V4L2 driver changed the video from 160x120 to 320x240
[video4linux2,v4l2 @ 0x9e43fa0] The driver changed the time per frame from 1/20 to 1/15
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 6424.338678, bitrate: 18432 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 18432 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc
Codec AVOption ab (set bitrate (in bits/s)) specified for output file #0 (/tmp/web.avi) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Output #0, avi, to '/tmp/web.avi':
Metadata:
ISFT : Lavf55.12.102
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x240, q=2-31, 200 kb/s, 20 tbn, 20 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> mpeg4)
Press [q] to stop, [?] for help
[video4linux2,v4l2 @ 0x9e43fa0] The v4l2 frame is 46448 bytes, but 153600 bytes are expected
/dev/video0: Invalid data found when processing input
frame= 29 fps= 14 q=3.5 Lsize= 87kB time=00:00:01.45 bitrate= 490.0kbits/s
video:80kB audio:0kB subtitle:0 global headers:0kB muxing overhead 7.760075%
[video4linux2,v4l2 @ 0x9e43fa0] Some buffers are still owned by the caller on close.