Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (5738)

  • How can record music playing on headphone ?

    27 avril 2022, par showkey

    List all the cards in my pc :

    


    pacmd list-cards &#xA;2 card(s) available.&#xA;    index: 1&#xA;    name: &#xA;    driver: &#xA;    owner module: 7&#xA;    properties:&#xA;        alsa.card = "0"&#xA;        alsa.card_name = "HD-Audio Generic"&#xA;        alsa.long_card_name = "HD-Audio Generic at 0xfccc8000 irq 59"&#xA;        alsa.driver_name = "snd_hda_intel"&#xA;        device.bus_path = "pci-0000:09:00.1"&#xA;        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:09:00.1/sound/card0"&#xA;        device.bus = "pci"&#xA;        device.vendor.id = "1002"&#xA;        device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"&#xA;        device.product.id = "15de"&#xA;        device.product.name = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"&#xA;        device.string = "0"&#xA;        device.description = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card-pci"&#xA;    profiles:&#xA;        output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)&#xA;        output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)&#xA;        output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)&#xA;        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)&#xA;        output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)&#xA;        output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)&#xA;        output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)&#xA;        output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)&#xA;        output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)&#xA;        off: Off (priority 0, available: unknown)&#xA;    active profile: <off>&#xA;    ports:&#xA;        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "video-display"&#xA;        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "video-display"&#xA;        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "video-display"&#xA;    index: 2&#xA;    name: &#xA;    driver: &#xA;    owner module: 8&#xA;    properties:&#xA;        alsa.card = "2"&#xA;        alsa.card_name = "HD-Audio Generic"&#xA;        alsa.long_card_name = "HD-Audio Generic at 0xfccc0000 irq 60"&#xA;        alsa.driver_name = "snd_hda_intel"&#xA;        device.bus_path = "pci-0000:09:00.6"&#xA;        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:09:00.6/sound/card2"&#xA;        device.bus = "pci"&#xA;        device.vendor.id = "1022"&#xA;        device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"&#xA;        device.product.id = "15e3"&#xA;        device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"&#xA;        device.string = "2"&#xA;        device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card-pci"&#xA;    profiles:&#xA;        input:analog-stereo: Analog Stereo Input (priority 65, available: no)&#xA;        output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)&#xA;        output:analog-stereo&#x2B;input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)&#xA;        output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: unknown)&#xA;        output:analog-surround-40&#x2B;input:analog-stereo: Analog Surround 4.0 Output &#x2B; Analog Stereo Input (priority 1265, available: no)&#xA;        output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: unknown)&#xA;        output:analog-surround-51&#x2B;input:analog-stereo: Analog Surround 5.1 Output &#x2B; Analog Stereo Input (priority 1365, available: no)&#xA;        output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)&#xA;        output:iec958-stereo&#x2B;input:analog-stereo: Digital Stereo (IEC958) Output &#x2B; Analog Stereo Input (priority 5565, available: no)&#xA;        output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (priority 300, available: unknown)&#xA;        output:iec958-ac3-surround-51&#x2B;input:analog-stereo: Digital Surround 5.1 (IEC958/AC3) Output &#x2B; Analog Stereo Input (priority 365, available: no)&#xA;        off: Off (priority 0, available: unknown)&#xA;    active profile: &#xA;    sinks:&#xA;        alsa_output.pci-0000_09_00.6.analog-stereo/#0: Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo&#xA;    sources:&#xA;        alsa_output.pci-0000_09_00.6.analog-stereo.monitor/#1: Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo&#xA;    ports:&#xA;        analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "audio-input-microphone"&#xA;        analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "audio-input-microphone"&#xA;        analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                &#xA;        analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes)&#xA;            properties:&#xA;                &#xA;        analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)&#xA;            properties:&#xA;                device.icon_name = "audio-headphones"&#xA;        iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)&#xA;            properties:&#xA;</off>

    &#xA;

    Playing a music on speaker,record it with ffmpeg and save as music.mp3 in current directory.

    &#xA;

    device_speaker="alsa_output.pci-0000_09_00.6.analog-stereo.monitor"&#xA;ffmpeg -f pulse -i $device_speaker   music.mp3&#xA;

    &#xA;

    I turn off the speaker and play the music on my headphone,how can record it with ffmpeg ?

    &#xA;

  • cannot hear audio after saving RTSP stream as ts or avi or mp4 files using ffmpeg command

    28 mai 2022, par ewang

    I am still new to ffmpeg and trying to save RTSP stream from the IP camera (Meraki MV2) via RTSP link (rtsp ://192.168.0.80:9000/live) to local laptop (Windows 10) as ts file, or avi or mp4 files, but none of them can hear sound. In Meraki MV2 camera dashboard audio is enabled&#xA;meraki dashboard audio enabled screenshot

    &#xA;

    And below is the ffmpeg command i used :

    &#xA;

    ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i rtsp://192.168.0.80:9000/live -f mpegts -b 400k -r 25 -vcodec libx264 -s 640x480 -aspect 4:3 -bufsize 6000k -acodec aac -ab 56k -ac 2 -ar 22050 -bf 0 -level 30 -y record_a_v.ts&#xA;

    &#xA;

    In below part of the result log, noticed Steam mapping has a #0:1 -> #0:0 and #0:0 -> #0:1, is it supposed to be crossed or not really ?

    &#xA;

    Input #0, rtsp, from &#x27;rtsp://192.168.0.80:9000/live&#x27;:&#xA;  Metadata:&#xA;    title           : www rtsp live&#xA;    comment         : LIVE555 Streaming Media v2017.01.26&#xA;  Duration: N/A, start: 1653723857.755958, bitrate: N/A&#xA;  Stream #0:0: Audio: aac (LC), 48000 Hz, mono, fltp&#xA;  Stream #0:1: Video: h264 (High), yuvj420p(pc, smpte170m, progressive), 1920x1080, 90k tbr, 90k tbn&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:0 -> #0:1 (aac (native) -> aac (native))&#xA;

    &#xA;

    Here are the last section of the result log :

    &#xA;

        Last message repeated 4 times&#xA;Error while decoding stream #0:0: Invalid argument:00:09.44 bitrate=  79.3kbits/s dup=0 drop=2 speed=1.38x&#xA;    Last message repeated 1 times&#xA;[aac @ 0000027bec8ee780] Queue input is backward in time&#xA;Error while decoding stream #0:0: Invalid argument&#xA;[mpegts @ 0000027bee8cfac0] Non-monotonous DTS in output stream 0:1; previous: 868241, current: 867392; changing to 868242. This may result in incorrect timestamps in the output file.&#xA;Error while decoding stream #0:0: Invalid argument&#xA;    Last message repeated 12 times&#xA;Error while decoding stream #0:0: Invalid argument:00:09.90 bitrate= 111.7kbits/s dup=0 drop=2 speed=1.35x&#xA;    Last message repeated 6 times&#xA;Error while decoding stream #0:0: Invalid argument:00:10.51 bitrate= 121.5kbits/s dup=0 drop=2 speed=1.34x&#xA;    Last message repeated 19 times&#xA;Error while decoding stream #0:0: Invalid argument:00:11.01 bitrate= 137.9kbits/s dup=0 drop=2 speed=1.31x&#xA;    Last message repeated 10 times&#xA;Error while decoding stream #0:0: Invalid argument:00:11.51 bitrate= 145.2kbits/s dup=0 drop=2 speed=1.29x&#xA;    Last message repeated 9 times&#xA;Error while decoding stream #0:0: Invalid argument:00:12.12 bitrate= 154.5kbits/s dup=0 drop=2 speed=1.29x&#xA;    Last message repeated 21 times&#xA;Error while decoding stream #0:0: Invalid argument:00:12.50 bitrate= 167.7kbits/s dup=0 drop=2 speed=1.26x&#xA;    Last message repeated 8 times&#xA;Error while decoding stream #0:0: Invalid argument:00:13.08 bitrate= 160.2kbits/s dup=0 drop=2 speed=1.25x&#xA;    Last message repeated 11 times&#xA;Error while decoding stream #0:0: Invalid argument:00:13.61 bitrate= 154.0kbits/s dup=0 drop=2 speed=1.24x&#xA;    Last message repeated 8 times&#xA;Error while decoding stream #0:0: Invalid argument:00:14.11 bitrate= 148.5kbits/s dup=0 drop=2 speed=1.23x&#xA;    Last message repeated 16 times&#xA;Error while decoding stream #0:0: Invalid argument:00:14.61 bitrate= 143.5kbits/s dup=0 drop=2 speed=1.22x&#xA;    Last message repeated 10 times&#xA;Error while decoding stream #0:0: Invalid argument:00:15.14 bitrate= 138.4kbits/s dup=0 drop=2 speed=1.21x&#xA;    Last message repeated 18 times&#xA;Error while decoding stream #0:0: Invalid argument:00:15.62 bitrate= 134.2kbits/s dup=0 drop=2 speed= 1.2x&#xA;    Last message repeated 6 times&#xA;Error while decoding stream #0:0: Invalid argument:00:16.14 bitrate= 129.9kbits/s dup=0 drop=2 speed=1.19x&#xA;    Last message repeated 15 times&#xA;Error while decoding stream #0:0: Invalid argument:00:16.64 bitrate= 251.9kbits/s dup=0 drop=2 speed=1.19x&#xA;    Last message repeated 9 times&#xA;Error while decoding stream #0:0: Invalid argument:00:17.11 bitrate= 245.1kbits/s dup=0 drop=2 speed=1.18x&#xA;    Last message repeated 15 times&#xA;frame=  125 fps=8.3 q=27.0 size=     512kB time=00:00:17.66 bitrate= 237.5kbits/s dup=0 drop=2 speed=1.17x&#xA;&#xA;[q] command received. Exiting.&#xA;&#xA;frame=  125 fps=8.2 q=-1.0 Lsize=     922kB time=00:00:17.75 bitrate= 425.1kbits/s dup=0 drop=2 speed=1.16x&#xA;video:843kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.064729%&#xA;[libx264 @ 0000027bee8cd640] frame I:1     Avg QP:17.27  size: 54983&#xA;[libx264 @ 0000027bee8cd640] frame P:124   Avg QP:22.65  size:  6516&#xA;[libx264 @ 0000027bee8cd640] mb I  I16..4:  4.2% 60.5% 35.2%&#xA;[libx264 @ 0000027bee8cd640] mb P  I16..4:  0.1%  2.4%  0.4%  P16..4: 39.2% 11.9% 10.2%  0.0%  0.0%    skip:35.9%&#xA;[libx264 @ 0000027bee8cd640] 8x8 transform intra:77.2% inter:55.0%&#xA;[libx264 @ 0000027bee8cd640] coded y,uvDC,uvAC intra: 93.1% 91.5% 65.1% inter: 26.5% 37.1% 6.2%&#xA;[libx264 @ 0000027bee8cd640] i16 v,h,dc,p:  8%  2%  8% 81%&#xA;[libx264 @ 0000027bee8cd640] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11%  9% 24%  5% 16% 12% 12%  6%  6%&#xA;[libx264 @ 0000027bee8cd640] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25%  9% 16%  6% 11% 14%  6%  6%  6%&#xA;[libx264 @ 0000027bee8cd640] i8c dc,h,v,p: 64% 12% 20%  5%&#xA;[libx264 @ 0000027bee8cd640] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0000027bee8cd640] ref P L0: 77.9% 10.9%  7.7%  3.5%&#xA;[libx264 @ 0000027bee8cd640] kb/s:435.85&#xA;[aac @ 0000027bec8ee780] Qavg: 65536.000&#xA;

    &#xA;

    Can anyone help checking where went wrong ? Thanks

    &#xA;

  • ffmpeg - Can't stably save rtsp stream to file

    20 août 2022, par André Luís

    I'm trying to save the RTSP stream of this camera to file. However, at some point I'll get the following errors, which will stop the process.

    &#xA;

    &#xA;

    video:331639kB audio:5199kB subtitle:0kB other streams:0kB global&#xA;headers:0kB muxing overhead : unknown

    &#xA;

    &#xA;

    And a bunch of these, before the previous one :

    &#xA;

    &#xA;

    Non-monotonous DTS in output stream 0:1 ; previous : 5439375, current :&#xA;5439283 ; changing to 5439376. This may result in incorrect timestamps&#xA;in the output file.

    &#xA;

    &#xA;

    Here is the command I'm running :

    &#xA;

    ffmpeg "rtsp://192.168.0.100:554/cam/realmonitor?channel=1&amp;subtype=0" -c copy -f segment -segment_time 00:01:00 -reset_timestamps 1 -segment_format mkv -strftime 1 /home/user/.camera/recordings/2022/8/19/%H_%M_%S.mkv&#xA;

    &#xA;

    I've tried adding each of these parameters and they all together :

    &#xA;

    -fflags &#x2B;autobsf&#x2B;genpts -y -threads 1 -use_wallclock_as_timestamps 1 -dts_delta_threshold 0 -rtsp_transport tcp -i&#xA;

    &#xA;

    ffprobe :

    &#xA;

    {&#xA;    "streams": [&#xA;        {&#xA;            "index": 0,&#xA;            "codec_name": "h264",&#xA;            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",&#xA;            "profile": "Main",&#xA;            "codec_type": "video",&#xA;            "codec_tag_string": "[0][0][0][0]",&#xA;            "codec_tag": "0x0000",&#xA;            "width": 1920,&#xA;            "height": 1080,&#xA;            "coded_width": 1920,&#xA;            "coded_height": 1080,&#xA;            "closed_captions": 0,&#xA;            "film_grain": 0,&#xA;            "has_b_frames": 0,&#xA;            "pix_fmt": "yuvj420p",&#xA;            "level": 40,&#xA;            "color_range": "pc",&#xA;            "chroma_location": "left",&#xA;            "field_order": "progressive",&#xA;            "refs": 1,&#xA;            "is_avc": "false",&#xA;            "nal_length_size": "0",&#xA;            "r_frame_rate": "100/1",&#xA;            "avg_frame_rate": "0/0",&#xA;            "time_base": "1/90000",&#xA;            "start_pts": 9000,&#xA;            "start_time": "0.100000",&#xA;            "bits_per_raw_sample": "8",&#xA;            "extradata_size": 27,&#xA;            "disposition": {&#xA;                "default": 0,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0,&#xA;                "captions": 0,&#xA;                "descriptions": 0,&#xA;                "metadata": 0,&#xA;                "dependent": 0,&#xA;                "still_image": 0&#xA;            }&#xA;        },&#xA;        {&#xA;            "index": 1,&#xA;            "codec_name": "aac",&#xA;            "codec_long_name": "AAC (Advanced Audio Coding)",&#xA;            "profile": "LC",&#xA;            "codec_type": "audio",&#xA;            "codec_tag_string": "[0][0][0][0]",&#xA;            "codec_tag": "0x0000",&#xA;            "sample_fmt": "fltp",&#xA;            "sample_rate": "16000",&#xA;            "channels": 1,&#xA;            "channel_layout": "mono",&#xA;            "bits_per_sample": 0,&#xA;            "r_frame_rate": "0/0",&#xA;            "avg_frame_rate": "0/0",&#xA;            "time_base": "1/16000",&#xA;            "start_pts": 0,&#xA;            "start_time": "0.000000",&#xA;            "extradata_size": 2,&#xA;            "disposition": {&#xA;                "default": 0,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0,&#xA;                "captions": 0,&#xA;                "descriptions": 0,&#xA;                "metadata": 0,&#xA;                "dependent": 0,&#xA;                "still_image": 0&#xA;            }&#xA;        }&#xA;    ]&#xA;}&#xA;

    &#xA;

    I honestly don't know what else to do.

    &#xA;