
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (45)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
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 (6982)
-
Flutter record front facing camera at exact same time as playing video
27 novembre 2020, par xceedI've been playing around with Flutter and trying to get it so I can record the front facing camera (using the camera plugin [https://pub.dev/packages/camera]) as well as playing a video to the user (using the video_player plugin [https://pub.dev/packages/video_player]).


Next I use ffmpeg to horizontally stack the videos together. This all works fine but when I play back the final output there is a slight delay when listening to the audio. I'm calling
Future.wait([cameraController.startVideoRecording(filePath), videoController.play()]);
but there is a slight delay in these tasks actually starting. I don't even need them to fire at the exact same time (which I'm realising is probably impossible), instead if I knew exactly when each of the tasks begun then I can use the time difference to sync the audio using ffmpeg or similar.

I've tried adding a listener on the videoController to see when isPlaying first returns true, and also watching the output directory for when the recorded video appears on the filesystem :


listener = () {
 if (videoController.value.isPlaying) {
 isPlaying = DateTime.now().microsecondsSinceEpoch;
 log('isPlaying '+isPlaying.toString());
 }
 videoController.removeListener(listener);
 };
 videoController.addListener(listener);

 var watcher = DirectoryWatcher('${extDir.path}/');
 watcher.events.listen((event) {
 if (event.type == ChangeType.ADD) {
 fileAdded = DateTime.now().microsecondsSinceEpoch;
 log('added '+fileAdded.toString());
 }
 });



Then likewise for checking if the camera is recording :


var listener;
 listener = () {
 if (cameraController.value.isRecordingVideo) {
 log('isRecordingVideo '+DateTime.now().microsecondsSinceEpoch.toString());
 //cameraController.removeListener(listener);
 }
 };
 cameraController.addListener(listener);



This results in (for example) the following order and microseconds for each event :


is playing: 1606478994797247
is recording: 1606478995492889 (695642 microseconds later)
added: 1606478995839676 (346787 microseconds later)



However, when I play back the video the syncing is off by approx 0.152 seconds so doesn't marry up to the time differences reported above.


Does anyone have any idea how I could accomplish near perfect syncing when combining 2 videos ? Thanks.


-
How to record video and audio from webcam using ffmpeg ?
10 mars 2017, par AshishI want to record video as well as audio from webcam using ffmpeg,
I have used the following codes to know what devices are available :
ffmpeg -list_devices true -f dshow -i dummy
And got the result :
ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 17 2013 02:05:16 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 8.103 / 55. 8.103
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[dshow @ 024eb460] DirectShow video devices
[dshow @ 024eb460] "Sirius USB2.0 Camera"
[dshow @ 024eb460] "Vimicro USB Camera (Altair)"
[dshow @ 024eb460] DirectShow audio devices
[dshow @ 024eb460] "Microphone (Realtek High Defini"
dummy: Immediate exit requestedI am using the following codes to get more details about the device :
ffmpeg -f dshow -list_options true -i video="Vimicro USB Camera (Altair)"
And i am getting the following results :
ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 17 2013 02:05:16 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 8.103 / 55. 8.103
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[dshow @ 0249b3e0] DirectShow video device options
[dshow @ 0249b3e0] Pin "Capture"
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=640x480 fps=30 max s=640x480 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=640x480 fps=30 max s=640x480 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=352x288 fps=30 max s=352x288 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=352x288 fps=30 max s=352x288 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=320x240 fps=30 max s=320x240 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=320x240 fps=30 max s=320x240 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=176x144 fps=30 max s=176x144 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=176x144 fps=30 max s=176x144 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=160x120 fps=30 max s=160x120 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=160x120 fps=30 max s=160x120 fp
s=30
video=Vimicro USB Camera (Altair): Immediate exit requestedWhen i am trying following codes to get video and audio stream :
ffmpeg -f dshow -s 320x240 -r 30 -vcodec mjpeg -i video="Vimicro USB Camera (Altair)" e:\output.mp4
I am getting an error message as "Could not set video options
video=Vimicro USB Camera (Altair) : Input/output error"Following are the error details :
ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 17 2013 02:05:16 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 8.103 / 55. 8.103
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[dshow @ 002f78e0] Could not set video options
video=Vimicro USB Camera (Altair): Input/output errorAnd i am unable to find where i am doing wrong.
So if anybody can find where i am doing wrong or how to record video as well as audio from webcam using ffmpeg please help me to solve this problem.
-
How to record video and audio from webcam using ffmpeg ?
25 mars 2024, par BabuI want to record video as well as audio from webcam using ffmpeg,



I have used the following codes to know what devices are available :



ffmpeg -list_devices true -f dshow -i dummy




And got the result :



ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 17 2013 02:05:16 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 8.103 / 55. 8.103
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[dshow @ 024eb460] DirectShow video devices
[dshow @ 024eb460] "Sirius USB2.0 Camera"
[dshow @ 024eb460] "Vimicro USB Camera (Altair)"
[dshow @ 024eb460] DirectShow audio devices
[dshow @ 024eb460] "Microphone (Realtek High Defini"
dummy: Immediate exit requested




I am using the following codes to get more details about the device :



ffmpeg -f dshow -list_options true -i video="Vimicro USB Camera (Altair)"




And i am getting the following results :



ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 17 2013 02:05:16 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 8.103 / 55. 8.103
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[dshow @ 0249b3e0] DirectShow video device options
[dshow @ 0249b3e0] Pin "Capture"
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=640x480 fps=30 max s=640x480 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=640x480 fps=30 max s=640x480 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=352x288 fps=30 max s=352x288 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=352x288 fps=30 max s=352x288 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=320x240 fps=30 max s=320x240 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=320x240 fps=30 max s=320x240 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=176x144 fps=30 max s=176x144 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=176x144 fps=30 max s=176x144 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=160x120 fps=30 max s=160x120 fp
s=30
[dshow @ 0249b3e0] pixel_format=yuyv422 min s=160x120 fps=30 max s=160x120 fp
s=30
video=Vimicro USB Camera (Altair): Immediate exit requested




When i am trying following codes to get video and audio stream :



ffmpeg -f dshow -s 320x240 -r 30 -vcodec mjpeg -i video="Vimicro USB Camera (Altair)" e:\output.mp4




I am getting an error message as "Could not set video options
video=Vimicro USB Camera (Altair) : Input/output error"



Following are the error details :



ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 17 2013 02:05:16 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 8.103 / 55. 8.103
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[dshow @ 002f78e0] Could not set video options
video=Vimicro USB Camera (Altair): Input/output error




And i am unable to find where i am doing wrong.



So if anybody can find where i am doing wrong or how to record video as well as audio from webcam using ffmpeg please help me to solve this problem.