
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (78)
-
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 ) (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (7812)
-
Unable to add watermark to uploaded video using protonemedia / laravel-ffmpeg
24 avril 2021, par Kashif Anwarthank you for the amazing package, i am using it first time and i am stuck in it, maybe i am doing something wrong. I am trying to add a watermark on a video so users couldn't download the original video. below is my code to upload a video first and then add watermark to that video :


public function watermarkpost(Request $request)
{

 if ($file = $request->file('watermark')) 
 { 
 $name = time().str_replace(' ', '', $file->getClientOriginalName());
 $file->move('assets/images/products',$name); 
 }
 FFMpeg::open(asset('assets/images/products/'.$name))->addWatermark(function(WatermarkFactory $watermark) {
 $watermark
 ->open(asset('assets/images/1571567292logo.png') )
 ->right(25)
 ->bottom(25);
 });
 
 // return asset('assets/images/products/'.$name);
}



but i am getting below error :


Alchemy\\BinaryDriver\\Exception\\ExecutableNotFoundException(code: 0): Executable not found, proposed : ffmpeg at F:\\xampp\\htdocs\\GeniusCart\\project\\vendor\\alchemy\\binary-driver\\src\\Alchemy\\BinaryDriver\\AbstractBinary.php:159)



Any help would be really appreciated


-
audio and video out of sync streaming usb webcam to RTMP server
2 avril 2021, par Mateus GarciaI'm trying to stream 4 webcams connected to my raspberry pi 4 to a nginx RTMP server (same network) using ffmpeg.


this works well for the very first moments, but after some time the video is ahead of audio, and after some more time, they are totally out of sync.


this is the command that i am running :


ffmpeg -r 15 -s 384x288 -f video4linux2 -i /dev/video0 \
-f alsa -thread_queue_size 1024 -ac 1 -i hw:1 \
-f flv rtmp://192.168.0.100/live/cam1



rtmp server is a docker image : tiangolo/nginx-rtmp


client is VLC media player.


Please help me. i dont know what more i can do.


command output :


[video4linux2,v4l2 @ 0x1a932b0] The V4L2 driver changed the video from 384x288 to 352x288
Input #0, video4linux2,v4l2, from '/dev/video0':
 Duration: N/A, start: 6196.784888, bitrate: 24330 kb/s
 Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 352x288, 24330 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, alsa, from 'hw:1':
 Duration: N/A, start: 1617338591.667887, bitrate: 768 kb/s
 Stream #1:0: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo (native) -> flv1 (flv))
 Stream #1:0 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, flv, to 'rtmp://192.168.0.100/live/cam1':
 Metadata:
 encoder : Lavf58.20.100
 Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p(progressive), 352x288, q=2-31, 200 kb/s, 15 fps, 1k tbn, 15 tbc
 Metadata:
 encoder : Lavc58.35.100 flv
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
 Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 48000 Hz, mono, s16p
 Metadata:
 encoder : Lavc58.35.100 libmp3lame
frame= 639 fps= 15 q=2.0 size= 1513kB time=00:00:42.57 bitrate= 291.1kbits/s speed=0.993x 




-
modprobe snd-dummy on linux server, ffmpeg -f alsa is recording noise
20 mars 2021, par bookswordSome people say that the parameter fake_buffer can remove the noise, but I tried it and there is still noise




modprobe snd-dummy fake_buffer=0




#modprobe snd-dummy fake_buffer=0 
# lsmod |grep snd
snd_dummy 24576 0
snd_pcm_oss 61440 0
snd_mixer_oss 28672 1 snd_pcm_oss
snd_pcm 118784 2 snd_pcm_oss,snd_dummy
snd_timer 36864 1 snd_pcm
snd 94208 5 snd_timer,snd_pcm_oss,snd_pcm,snd_dummy,snd_mixer_oss
soundcore 16384 1 snd
# modinfo snd_dummy
filename: /lib/modules/4.14.129-bbrplus/kernel/sound/drivers/snd-dummy.ko
license: GPL
description: Dummy soundcard (/dev/null)
author: Jaroslav Kysela <perex@perex.cz>
depends: snd-pcm,snd
retpoline: Y
intree: Y
name: snd_dummy
vermagic: 4.14.129-bbrplus SMP mod_unload modversions 
parm: index:Index value for dummy soundcard. (array of int)
parm: id:ID string for dummy soundcard. (array of charp)
parm: enable:Enable this dummy soundcard. (array of bool)
parm: model:Soundcard model. (array of charp)
parm: pcm_devs:PCM devices # (0-4) for dummy driver. (array of int)
parm: pcm_substreams:PCM substreams # (1-128) for dummy driver. (array of int)
parm: fake_buffer:Fake buffer allocations. (bool)
parm: hrtimer:Use hrtimer as the timer source. (bool)

#aplay -L
null
 Discard all samples (playback) or generate zero samples (capture)
pulse
 PulseAudio Sound Server
dummy
default:CARD=Dummy
 Dummy, Dummy PCM
 Default Audio Device
sysdefault:CARD=Dummy
 Dummy, Dummy PCM
 Default Audio Device
dmix:CARD=Dummy,DEV=0
 Dummy, Dummy PCM
 Direct sample mixing device
dsnoop:CARD=Dummy,DEV=0
 Dummy, Dummy PCM
 Direct sample snooping device
hw:CARD=Dummy,DEV=0
 Dummy, Dummy PCM
 Direct hardware device without any conversions
plughw:CARD=Dummy,DEV=0
 Dummy, Dummy PCM
 Hardware device with all software conversions


# ffmpeg -f alsa -i hw:0 -t 5 /dev/shm/out.mp3 -y
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
 libavutil 55. 78.100 / 55. 78.100
 libavcodec 57.107.100 / 57.107.100
 libavformat 57. 83.100 / 57. 83.100
 libavdevice 57. 10.100 / 57. 10.100
 libavfilter 6.107.100 / 6.107.100
 libavresample 3. 7. 0 / 3. 7. 0
 libswscale 4. 8.100 / 4. 8.100
 libswresample 2. 9.100 / 2. 9.100
 libpostproc 54. 7.100 / 54. 7.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:0':
 Duration: N/A, start: 1616225206.353453, bitrate: 1536 kb/s
 Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to '/dev/shm/out.mp3':
 Metadata:
 TSSE : Lavf57.83.100
 Stream #0:0: Audio: mp3 (libmp3lame), 48000 Hz, stereo, s16p
 Metadata:
 encoder : Lavc57.107.100 libmp3lame
size= 79kB time=00:00:05.01 bitrate= 129.0kbits/s speed= 1x 
video:0kB audio:79kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.293899%





i use alsamixer to set all Volume to 0 ,and there is still noise
I searched in google for a long time and did not find other people have this problem , where am I doing it wrong