
Recherche avancée
Autres articles (53)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Le plugin : Gestion de la mutualisation
2 mars 2010, parLe plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
Installation basique
On installe les fichiers de SPIP sur le serveur.
On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
< ?php (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (4075)
-
Could not find codec parameters for stream 0 (Video : hevc, none) : unspecified size
5 avril 2020, par bzc0fqI try to use ffmpeg to feed ffserver on CENTOS 6.10. When I run ffmpeg on stream I got an error message : Could not find codec parameters for stream 0 (Video : h264, none) : unspecified size.



The full ffmpeg output is here :



[root@stone1 ~]# ffmpeg -i rtsp://user44:xxx@192.168.101.108:554/0 -y http://192.168.101.1:8090/feed2.ffm
ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
 built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
 configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libdc1394 --enable-libfaac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
 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
[rtsp @ 0x8bc780] Could not find codec parameters for stream 0 (Video: hevc, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://user44:xxx@192.168.101.108:554/0':
 Metadata:
 title : h264.mp4
 Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
 Stream #0:0: Video: hevc, none, 90k tbr, 90k tbn, 90k tbc
 Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s
[buffer @ 0x91c2e0] Unable to parse option value "0x0" as image size
[buffer @ 0x91c2e0] Unable to parse option value "-1" as pixel format
[buffer @ 0x91c2e0] Unable to parse option value "0x0" as image size
[buffer @ 0x91c2e0] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:0 @ 0x8a0da0] Error applying options to the filter.
Error opening filters!




I tested the stream with vlc on windows and it looks it works fine.




Any hints on the issue ?





UPDATE



I have confirmed that the same issue remains on Windows and Linux ffmpeg ver. 4.2.2. Please find attached debug output bellow.



D:\Temp\ffmpeg-4.2.2-win64-static\bin>ffmpeg -loglevel debug -i rtsp://userxx:xxx@192.168.101.108:554/0:0 -y http://192.168.101.1:8090/feed2.ffm
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 9.2.1 (GCC) 20200122
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --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 --enable-libopenmpt
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'rtsp://userxx:xxx@192.168.101.108:554/0:0'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'http://192.168.101.1:8090/feed2.ffm' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://userxx:xxx@192.168.101.108:554/0:0.
Successfully parsed a group of options.
Opening an input file: rtsp://userxx:xxx@192.168.101.108:554/0:0.
[tcp @ 000002426835b540] No default whitelist set
[tcp @ 000002426835b540] Original list of addresses:
[tcp @ 000002426835b540] Address 192.168.101.108 port 554
[tcp @ 000002426835b540] Interleaved list of addresses:
[tcp @ 000002426835b540] Address 192.168.101.108 port 554
[tcp @ 000002426835b540] Starting connection attempt to 192.168.101.108 port 554
[tcp @ 000002426835b540] Successfully connected to 192.168.101.108 port 554
[rtsp @ 0000024268358c40] SDP:
v=0
o=StreamingServer 3331435948 1116907222000 IN IP4 192.168.101.108
s=h264.mp4
c=IN IP4 0.0.0.0
t=0 0
a=control:*
m=video 0 RTP/AVP 96
a=control:trackID=0
a=rtpmap:96 H265/90000
a=ptime:40
a=range:npt=0-0
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=(null)
a=videoinfo:960*576*30*4096
m=audio 0 RTP/AVP 0
a=control:trackID=1
a=rtpmap:0 PCMU/8000
a=ptime:20


[rtsp @ 0000024268358c40] video codec set to: hevc
[rtsp @ 0000024268358c40] audio codec set to: pcm_mulaw
[rtsp @ 0000024268358c40] audio samplerate set to: 8000
[rtsp @ 0000024268358c40] audio channels set to: 1
[rtp @ 000002426835bb00] No default whitelist set
[udp @ 000002426835f600] No default whitelist set
[udp @ 000002426835f600] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 000002426835f600] end receive buffer size reported is 65536
[udp @ 000002426836f900] No default whitelist set
[udp @ 000002426836f900] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 000002426836f900] end receive buffer size reported is 65536
[rtsp @ 0000024268358c40] setting jitter buffer size to 500
[rtp @ 00000242683804c0] No default whitelist set
[udp @ 0000024268380780] No default whitelist set
[udp @ 0000024268380780] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0000024268380780] end receive buffer size reported is 65536
[udp @ 0000024268390a80] No default whitelist set
[udp @ 0000024268390a80] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0000024268390a80] end receive buffer size reported is 65536
[rtsp @ 0000024268358c40] setting jitter buffer size to 500
[rtsp @ 0000024268358c40] hello state=0
[rtsp @ 0000024268358c40] Could not find codec parameters for stream 0 (Video: hevc, 1 reference frame, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://userxx:xxx@192.168.101.108:554/0:0':
 Metadata:
 title : h264.mp4
 Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
 Stream #0:0, 0, 1/90000: Video: hevc, 1 reference frame, none, 90k tbr, 90k tbn, 90k tbc
 Stream #0:1, 0, 1/8000: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Successfully opened the file.
Parsing a group of options: output url http://192.168.101.1:8090/feed2.ffm.
Successfully parsed a group of options.
Opening an output file: http://192.168.101.1:8090/feed2.ffm.
[NULL @ 00000242683c85c0] Unable to find a suitable output format for 'http://192.168.101.1:8090/feed2.ffm'
http://192.168.101.1:8090/feed2.ffm: Invalid argument




VLC works fine on the same Windows system.



Any hints on this please ?


-
ffmpeg video&audio streaming from webcam
23 février 2016, par johncarrieI am new to ffmpeg and I want to stream webcam video&audio by using ffmpeg and ffserver.
ffserver config is the following :
<stream>
Feed feed1.ffm
Format avi
VideoSize 176x128
VideoFrameRate 15
VideoBufferSize 40
VideoBitRate 64
AudioBitRate 32
AudioChannels 1
AudioSampleRate 11025
VideoQMin 1
VideoQMax 20
NoDefaults
</stream>ffmpeg process is the following :
ffmpeg -vcodec mjpeg -v verbose -r 15 -s 176x128 -f video4linux2 -i /dev/video0 -f
alsa -ac 1 -i hw:0 http://localhost:8090/feed1.ffm
ffmpeg version N-77547-g2893dbf Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
libavutil 55. 11.100 / 55. 11.100
libavcodec 57. 20.100 / 57. 20.100
libavformat 57. 21.100 / 57. 21.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 22.100 / 6. 22.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[video4linux2,v4l2 @ 0xa6133a0] fd:3 capabilities:84000001
[video4linux2,v4l2 @ 0xa6133a0] The V4L2 driver changed the video from 176x128 to 1280x720
[mjpeg @ 0xa613ec0] Changing bps to 8
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 77139.395765, bitrate: N/A
Stream #0:0: Video: mjpeg, 1 reference frame, yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, -2 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, alsa, from 'hw:0':
Duration: N/A, start: 1456086923.213492, bitrate: 768 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[tcp @ 0xa622000] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
[tcp @ 0xa61e140] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
[graph 0 input from stream 1:0 @ 0xa613220] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x4
[audio format for output stream 0:0 @ 0xa62a620] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[auto-inserted resampler 0 @ 0xa6229c0] ch:1 chl:mono fmt:s16 r:48000Hz -> ch:1 chl:mono fmt:s32p r:11025Hz
[graph 1 input from stream 0:0 @ 0xa6244c0] w:1280 h:720 pixfmt:yuvj422p tb:1/15 fr:15/1 sar:0/1 sws_param:flags=2
[scaler for output stream 0:1 @ 0xa623fc0] w:176 h:128 flags:'bicubic' interl:0
[graph 1 input from stream 0:0 @ 0xa6244c0] TB:0.066667 FRAME_RATE:15.000000 SAMPLE_RATE:nan
[swscaler @ 0xa63fe40] deprecated pixel format used, make sure you did set range correctly
[scaler for output stream 0:1 @ 0xa623fc0] w:1280 h:720 fmt:yuvj422p sar:0/1 -> w:176 h:128 fmt:yuv420p sar:0/1 flags:0x4
[mpeg4 @ 0xa626260] Either both buffer size and max rate or neither must be specified
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Metadata:
creation_time : 2016-02-22 03:35:23
Stream #0:0: Audio: mp3 (libmp3lame), 11025 Hz, mono, s32p, 32 kb/s
Metadata:
encoder : Lavc57.20.100 libmp3lame
Stream #0:1: Video: mpeg4, 1 reference frame, none, 176x128 (0x0), q=1-20, 64 kb/s, 15 fps, 15 tbc
Metadata:
encoder : Lavc57.20.100 mpeg4
Stream mapping:
Stream #1:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
Stream #0:0 -> #0:1 (mjpeg (native) -> mpeg4 (native))
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or heightI am using a
FEBON168 UVC HDMI GRABBER CARD
as Webcam.
USB UVC output is the following :
1. MJPEG 1280x720 up to 30fps (full screen)
2. YUV 1280x720 up to 10fps (full screen)How can I fix it ? What am I doing wrong ?
-
Evolution #3709 : verifier_crash_tables et base externes
21 février 2016, par Alexis Pelliciersi on renseigne ’serveur’ pour une table dans declarer_tables_objets_sql
$tables[’emploi_du_temps’] = array(
’join’ => array("id_personnel"=>"id_personnel","id_matiere"=>"id_matiere",),
’serveur’ => ’nomdeconnexion’
)le patch suivant permettrait de vérifier sur la bonne base :
--- maintenance.php 2016-02-16 15:17:30.375927932 0200
++ /srv/www/htdocs/spip/ecrire/genie/maintenance.php 2016-02-21 21:14:09.779024340 0200@ -69,7 +69,8
@
$crash = array() ;
foreach (array(’tables_principales’, ’tables_auxiliaires’) as $com)
foreach ($GLOBALS[$com] as $table => $desc)
- if (!sql_select(’*’, $table, ’’, ’’, ’’, 1)
$serveur=isset(lister_tables_objets_sql($table)[’serveur’]) ?lister_tables_objets_sql($table)[’serveur’] :’’ ;
+ if (!sql_select(’*’, $table, ’’, ’’, ’’, 1,’’,$serveur)
and !defined(’spip_interdire_cache’)
) # cas "LOST CONNECTION"