
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (71)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
De près ou de loin...
29 avril 2011, parIls ne le savent pas forcément mais sont indispensables
MediaSPIP est un logiciel open-source, il se base sur d’autres logiciels, et d’autres logiciels lui sont également nécessaires pour fonctionner ... Les personnes ici listées ne savent pas forcément qu’elles ont un rôle important dans le développement, elles ont apporté leur connaissances dans le cadre de la création d’une partie de ces éléments nécessaires ou ont écrit des articles permettant de comprendre certaines choses... il semble indispensable (...)
Sur d’autres sites (8051)
-
When I use ffmpeg to record video, why does recording pause and hang
24 décembre 2019, par PolarstarsI am using FFmpeg to record RTP stream, but encounter a problem :
I use follow command :
FFmpeg -thread_queue_size 128 -i http://0.0.0.0:8012/rtp/239.3.1.141:1234 -map 0 -c copy -t 36000 /home/iptv/test.ts
When the video frame number reaches 142275, the following prompt appears :
1.New video stream 0:2 at pos:5699333740 and DTS:36464.9s
2.New audio stream 0:3 at pos:5699385628 and DTS:36464.1s
And then the recording process is suspended.
According to the prompt, it seems that the location of the video stream has changed.
I would appreciate it if anyone could help me with this problem
Input #0, mpegts, from ’http://0.0.0.0:8012/rtp/239.3.1.141:1234’ :
Duration : N/A, start : 25297.448000, bitrate : N/A
Program 1
Metadata:
service_name :
service_provider:
Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1100]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 128 kb/sOutput #0, mpegts, to ’/home/TJTV/TJTV_20191224-073001.ts’ :
Metadata :
encoder : Lavf58.35.101
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 128 kb/sStream mapping :
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 109 fps=107 q=-1.0 size= 4096kB time=00:00:05.32 bitrate=6297.8kbits/s speed=5.22x
frame= 133 fps= 65 q=-1.0 size= 4864kB time=00:00:06.33 bitrate=6288.8kbits/s speed=3.08x
frame= 154 fps= 50 q=-1.0 size= 5888kB time=00:00:07.17 bitrate=6721.6kbits/s speed=2.32x
frame= 179 fps= 43 q=-1.0 size= 6912kB time=00:00:08.18 bitrate=6918.8kbits/s speed=1.98x
...
frame=142250 fps= 25 q=-1.0 size= 5452032kB time=01:34:50.95 bitrate=7848.1kbits/s speed= 1x
frame=142275 fps= 25 q=-1.0 size= 5453056kB time=01:34:51.96 bitrate=7848.2kbits/s speed= 1x
[NULL @ 0x5faf000] SPS unavailable in decode_picture_timing
[NULL @ 0x5faf000] non-existing PPS 0 referenced
[mpegts @ 0x5faab40] New video stream 0:2 at pos:5699333740 and DTS:36464.9s
[NULL @ 0x5faf000] SPS unavailable in decode_picture_timing
[NULL @ 0x5faf000] non-existing PPS 0 referenced
frame=142299 fps= 25 q=-1.0 size= 5454080kB time=01:34:52.94 bitrate=7848.3kbits/s speed= 1x
[NULL @ 0x5faf000] SPS unavailable in decode_picture_timing
[NULL @ 0x5faf000] SPS unavailable in decode_picture_timing
[NULL @ 0x5faf000] non-existing PPS 0 referenced
[mpegts @ 0x5faab40] New audio stream 0:3 at pos:5699385628 and DTS:36464.1s
[NULL @ 0x5faf000] SPS unavailable in decode_picture_timing
[NULL @ 0x5faf000] non-existing PPS 0 referenced
frame=142299 fps= 25 q=-1.0 size= 5454080kB time=01:34:52.94 bitrate=7848.3kbits/s speed= 1x
frame=142299 fps= 25 q=-1.0 size= 5454080kB time=01:34:52.94 bitrate=7848.3kbits/s speed= 1x
frame=142299 fps= 25 q=-1.0 size= 5454080kB time=01:34:52.94 bitrate=7848.3kbits/s speed= 1x
frame=142299 fps= 25 q=-1.0 size= 5454080kB time=01:34:52.94 bitrate=7848.3kbits/s speed= 1x
-
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.