
Recherche avancée
Autres articles (69)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)
Sur d’autres sites (12985)
-
ffmpeg cannot grab the audio played through the speaker under windows 10
6 mars 2024, par shangpingI am using ffmpeg to grab screen. It used to work well under win7 using UScreenCapture and virtual-audio-capturer (all x86 version). On win10, the audio is not recorded. (I cannot hear any sound while playing back). I am using ffmpeg/uscreencapture/virtual-audio-capturer all win32 version since virtual-audio-capturer has no x64 release.



So my question is : How can I record the video and the audio correctly using ffmpeg ?



Here is the screen dump out :
first the direct show devices on my system



C:\ffmpeg-20190403-ee16d14-win32-static\bin>ffmpeg -list_devices true -f dshow -i dummy
ffmpeg version N-93528-gee16d14b0a Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8.2.1 (GCC) 20190212
 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. 26.100 / 56. 26.100
 libavcodec 58. 48.101 / 58. 48.101
 libavformat 58. 26.101 / 58. 26.101
 libavdevice 58. 7.100 / 58. 7.100
 libavfilter 7. 48.100 / 7. 48.100
 libswscale 5. 4.100 / 5. 4.100
 libswresample 3. 4.100 / 3. 4.100
 libpostproc 55. 4.100 / 55. 4.100
[dshow @ 06303ac0] DirectShow video devices (some may be both video and audio devices)
[dshow @ 06303ac0] "UScreenCapture"
[dshow @ 06303ac0] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture"
[dshow @ 06303ac0] DirectShow audio devices
[dshow @ 06303ac0] "Microphone Array (Realtek(R) Audio)"
[dshow @ 06303ac0] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{9F102091-1843-44C8-B20E-C6F2E0F11A0F}"
[dshow @ 06303ac0] "virtual-audio-capturer"
[dshow @ 06303ac0] Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{8E14549B-DB61-4309-AFA1-3578E927E935}"
dummy: Immediate exit requested




2nd, when I use virtual audio capturer, ffmpeg just failed :



C:\ffmpeg-20190403-ee16d14-win32-static\bin>ffmpeg -f dshow -i video="UScreenCapture":audio="Microphone Array (Realtek(R) Audio)" -vf crop=1075:717:189:81 -vcodec mpeg4 -qscale 0 -framerate 60 -acodec libmp3lame -ab 128000 -async 1 output.aviffmpeg -f dshow -i video="UScreenCapture":audio="virtual-audio-capturer" -vf crop=1075:717:189:81 -vcodec mpeg4 -qscale 0 -framerate 60 -acodec libmp3lame -ab 128000 -async 1 output.avi
ffmpeg version N-93528-gee16d14b0a Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8.2.1 (GCC) 20190212
 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. 26.100 / 56. 26.100
 libavcodec 58. 48.101 / 58. 48.101
 libavformat 58. 26.101 / 58. 26.101
 libavdevice 58. 7.100 / 58. 7.100
 libavfilter 7. 48.100 / 7. 48.100
 libswscale 5. 4.100 / 5. 4.100
 libswresample 3. 4.100 / 3. 4.100
 libpostproc 55. 4.100 / 55. 4.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, dshow, from 'video=UScreenCapture:audio=Microphone Array (Realtek(R) Audio)':
 Duration: N/A, start: 6333.289000, bitrate: N/A
 Stream #0:0: Video: rawvideo, bgr24, 3200x1080, 15 fps, 15 tbr, 10000k tbn, 10000k tbc
 Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
IMMDeviceEnumerator::GetDefaultAudioEndpoint failed: hr = 0x80070490
[dshow @ 062f4ac0] real-time buffer [UScreenCapture] [video input] too full or near too full (340% of size: 3041280 [rtbufsize parameter])! frame dropped!




When I use the other audio devices, it seems working but there is not audio recorded :



ffmpeg -f dshow -i video="UScreenCapture":audio="Microphone Array (Realtek(R) Audio)" -vf crop=1075:717:189:81 -vcodec mpeg4 -qscale 0 -framerate 60 -acodec libmp3lame -ab 128000 -async 1 output.avi

 C:\ffmpeg-20190403-ee16d14-win32-static\bin>ffmpeg -f dshow -i video="UScreenCapture":audio="Microphone Array (Realtek(R) Audio)" -vf crop=1075:717:189:81 -vcodec mpeg4 -qscale 0 -framerate 60 -acodec libmp3lame -ab 128000 -async 1 output.avi
 ffmpeg version N-93528-gee16d14b0a Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8.2.1 (GCC) 20190212
 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. 26.100 / 56. 26.100
 libavcodec 58. 48.101 / 58. 48.101
 libavformat 58. 26.101 / 58. 26.101
 libavdevice 58. 7.100 / 58. 7.100
 libavfilter 7. 48.100 / 7. 48.100
 libswscale 5. 4.100 / 5. 4.100
 libswresample 3. 4.100 / 3. 4.100
 libpostproc 55. 4.100 / 55. 4.100
 Guessed Channel Layout for Input Stream #0.1 : stereo
 Input #0, dshow, from 'video=UScreenCapture:audio=Microphone Array (Realtek(R) Audio)':
 Duration: N/A, start: 6168.067000, bitrate: N/A
 Stream #0:0: Video: rawvideo, bgr24, 3200x1080, 15 fps, 15 tbr, 10000k tbn, 10000k tbc
 Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
 Please use -q:a or -q:v, -qscale is ambiguous
 Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
 Stream #0:1 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame))
 Press [q] to stop, [?] for help
 -async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
 Output #0, avi, to 'output.avi':
 Metadata:
 ISFT : Lavf58.26.101
 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p(progressive), 1075x717, q=2-31, 200 kb/s, 15 fps, 15 tbn, 15 tbc
 Metadata:
 encoder : Lavc58.48.101 mpeg4
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
 Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s
 Metadata:
 encoder : Lavc58.48.101 libmp3lame
 frame= 8 fps=0.0 q=0.0 size= 522kB time=00:00:00.53 bitrate=8013.1kbitsframe= 16 fps= 16 q=0.0 size= 1034kB time=00:00:01.06 bitrate=7938.7kbitsframe= 23 fps= 15 q=0.0 size= 1546kB time=00:00:01.53 bitrate=8258.0kbitsframe= 31 fps= 15 q=0.0 size= 2058kB time=00:00:02.06 bitrate=8156.4kbitsframe= 38 fps= 15 q=0.0 size= 2058kB time=00:00:02.53 bitrate=6653.9kbitsframe= 46 fps= 15 q=0.0 size= 2570kB time=00:00:03.06 bitrate=6864.4kbitsframe= 54 fps= 15 q=0.0 size= 3082kB time=00:00:03.60 bitrate=7012.6kbitsframe= 61 fps= 15 q=0.0 size= 3338kB time=00:00:04.06 bitrate=6723.5kbitsframe= 69 fps= 15 q=0.0 size= 3850kB time=00:00:04.60 bitrate=6855.8kbitsframe= 76 fps= 15 q=0.0 size= 4106kB time=00:00:05.06 bitrate=6638.2kbitsframe= 84 fps= 15 q=0.0 size= 4618kB time=00:00:05.60 bitrate=6755.0kbitsframe= 91 fps= 15 q=0.0 size= 4874kB time=00:00:06.06 bitrate=6581.1kbitsframe= 99 fps= 15 q=0.0 size= 5130kB time=00:00:06.60 bitrate=6367.0kbitsframe= 106 fps= 15 q=0.0 size= 5642kB time=00:00:07.06 bitrate=6540.1kbitsframe= 114 fps= 15 q=0.0 size= 6154kB time=00:00:07.66 bitrate=6575.3kbitsframe= 121 fps= 15 q=0.0 size= 6410kB time=00:00:08.13 bitrate=6455.9kbitsframe= 129 fps= 15 q=0.0 size= 6666kB time=00:00:08.66 bitrate=6300.6kbitsframe= 136 fps= 15 q=0.0 size= 6922kB time=00:00:09.13 bitrate=6208.3kbitsframe= 144 fps= 15 q=0.0 size= 7434kB time=00:00:09.66 bitrate=6299.7kbitsframe= 151 fps= 15 q=0.0 size= 7690kB time=00:00:10.13 bitrate=6216.5kbitsframe= 159 fps= 15 q=0.0 size= 7946kB time=00:00:10.66 bitrate=6102.3kbitsframe= 167 fps= 15 q=0.0 size= 8458kB time=00:00:11.20 bitrate=6186.2kbitsframe= 174 fps= 15 q=0.0 size= 8970kB time=00:00:11.66 bitrate=6298.3kbitsframe= 182 fps= 15 q=0.0 size= 8970kB time=00:00:12.20 bitrate=6022.9kbitsframe= 189 fps= 15 q=0.0 size= 9482kB time=00:00:12.66 bitrate=6132.2kbitsframe= 190 fps= 15 q=0.0 Lsize= 9602kB time=00:00:12.73 bitrate=6177.3kbits/s speed= 1x
 video:9382kB audio:194kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.265721%
 [dshow @ 06393f40] real-time buffer [UScreenCapture] [video input] too full or near too full (340% of size: 3041280 [rtbufsize parameter])! frame dropped!
 Exiting normally, received signal 2.



-
About Ffmpeg,Console show 'frame=0 fps=0.0 q=0.0 Lsize=0kB time=00:00:00.00' No data pull&push
9 janvier 2019, par LusI want to use Ffmpeg to pull&push video stream from HLS to RTMP.at first it’s normal,but when I open more,it’s run normally ,but no video data pull&push
Environment:Windows64+Ngg-§rtmp-static+Ffmpeg-static+Java1.8
It’s useless,even if I restart rtmp-server.
ffmpeg -i xxx/live.m3u8 -vcodec h264-s 720*480 -an -f flv -y rtmp://xxx
The first few video streams is normal,but when I open more streams (5+),
it run normally,but no data pull.like this.2019-01-08 10:58:15.658 INFO ->frame=0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=720 speed= 0x
2019-01-08 10:58:16.598 INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
2019-01-08 10:58:16.984 INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik30.ts' for reading
2019-01-08 10:58:17.083 INFO ->frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=744 speed= 0x
2019-01-08 10:58:18.033 INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
2019-01-08 10:58:18.146 INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik31.ts' for reading
2019-01-08 10:58:18.267 INFO ->frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=770 speed= 0x
2019-01-08 10:58:19.220 INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
2019-01-08 10:58:19.317 INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik32.ts' for reading
2019-01-08 10:58:19.415 INFO ->[http @ 0000015efb138600] Opening 'xxx/1/seghik33.ts' for reading
2019-01-08 10:58:19.494 INFO ->frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=795 speed= 0x
2019-01-08 10:58:20.375 INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
2019-01-08 10:58:20.486 INFO ->[http @ 0000015efb138600] Opening 'xxx/1/seghik34.ts' for reading -
MP4Box does not create final segment
5 janvier 2019, par DhruvaMP4Box is not creating the final segment of video when I dash it. If I run this command on the command line I get only 15 segments out of 16(there is no error) and running it in Google’s Shaka player gives me a 404 at the end of the video saying that the 16th video segment is not found. I am running MP4Box version 0.5.2.
MP4Box -dash 4000 -rap -frag-rap -sample-groups-traf -profile dashavc264:live -bs-switching multi -url-template video-700k-encrypted.mp4 video-1000k-encrypted.mp4 video-1500k-encrypted.mp4 video-2000k-encrypted.mp4 audio-encrypted.mp4 -out "dash_protected/manifest.mp4"
.mpd file
<?xml version="1.0"?>
<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H1M0.096S" maxsegmentduration="PT0H0M4.000S" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash264">
<programinformation moreinformationurl="http://gpac.sourceforge.net">
</programinformation>
<period duration="PT0H1M0.096S">
<adaptationset segmentalignment="true" bitstreamswitching="true" maxwidth="1024" maxheight="576" maxframerate="24" par="16:9" lang="eng">
<segmenttemplate initialization="manifest_set1_init.mp4"></segmenttemplate>
<contentprotection schemeiduri="urn:mpeg:dash:mp4protection:2011" value="cenc"></contentprotection>
<representation mimetype="video/mp4" codecs="avc3.64002a" width="852" height="480" framerate="24" sar="1:1" startwithsap="1" bandwidth="1477735">
<segmenttemplate timescale="12288" media="source-video-1500k-encrypted_dash_track1_$Number$.m4s" startnumber="1" duration="49152"></segmenttemplate>
</representation>
<representation mimetype="video/mp4" codecs="avc3.64002a" width="512" height="288" framerate="24" sar="1:1" startwithsap="1" bandwidth="689308">
<segmenttemplate timescale="12288" media="source-video-700k-encrypted_dash_track1_$Number$.m4s" startnumber="1" duration="49152"></segmenttemplate>
</representation>
<representation mimetype="video/mp4" codecs="avc3.64002a" width="1024" height="576" framerate="24" sar="1:1" startwithsap="1" bandwidth="1968345">
<segmenttemplate timescale="12288" media="source-video-2000k-encrypted_dash_track1_$Number$.m4s" startnumber="1" duration="49152"></segmenttemplate>
</representation>
<representation mimetype="video/mp4" codecs="avc3.64002a" width="640" height="360" framerate="24" sar="1:1" startwithsap="1" bandwidth="994771">
<segmenttemplate timescale="12288" media="source-video-1000k-encrypted_dash_track1_$Number$.m4s" startnumber="1" duration="49152"></segmenttemplate>
</representation>
</adaptationset>
<adaptationset segmentalignment="true" lang="eng">
<contentprotection schemeiduri="urn:mpeg:dash:mp4protection:2011" value="cenc"></contentprotection>
<representation mimetype="audio/mp4" codecs="mp4a.40.2" audiosamplingrate="22050" startwithsap="1" bandwidth="69486">
<audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>
<segmenttemplate timescale="22050" media="source-audio-encrypted_dash$Number$.m4s" startnumber="1" duration="88045" initialization="source-audio-encrypted_dashinit.mp4"></segmenttemplate>
</representation>
</adaptationset>
</period>
</mpd>