Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (3)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

Sur d’autres sites (1463)

  • SOX got nothing from SoundFlower

    12 septembre 2016, par xiaose

    For some reason on some comps SoundFlower does not catch audio.
    I.e. there are SoundFlower but when I switch input\output to the SoundFlower I cannot get any sound. I have got only not empty file without any sound.

    Okay, how I try to get the sound...

    Just FYI :

    $ system_profiler SPSoftwareDataType

    Software:

       System Software Overview:

         System Version: OS X 10.10.5 (14F1912)
         Kernel Version: Darwin 14.5.0
         Boot Volume: Macintosh HD
         Boot Mode: Normal
         Computer Name: Craig Computer
         User Name: Craig (craigm)
         Secure Virtual Memory: Enabled
         Time since boot: 1 day22:12

    Gonna check is AVFoundation works :

    $ ./ffmpeg -h demuxer=avfoundation

    Demuxer avfoundation [AVFoundation input device]:
    AVFoundation input device AVOptions:
     -list_devices      <int>        .D...... list available devices (from 0 to 1) (default false)
        true                         .D......
        false                        .D......
     -video_device_index <int>        .D...... select video device by index for devices with same name (starts at 0) (from -1 to INT_MAX) (default -1)
     -audio_device_index <int>        .D...... select audio device by index for devices with same name (starts at 0) (from -1 to INT_MAX) (default -1)
     -pixel_format          .D...... set pixel format (default yuv420p)
     -framerate          .D...... set frame rate (default "ntsc")
     -video_size         .D...... set video size
     -capture_cursor    <int>        .D...... capture the screen cursor (from 0 to 1) (default 0)
     -capture_mouse_clicks <int>        .D...... capture the screen mouse clicks (from 0 to 1) (default 0)
    </int></int></int></int></int>

    Gonna get list of AVFoundation audio devices :

    $ ./ffmpeg -f avfoundation -list_devices true -i ’’

    ffmpeg version 3.1.1-tessus Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
     configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 47.100 /  6. 47.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    [AVFoundation input device @ 0x7fda40421000] AVFoundation video devices:
    [AVFoundation input device @ 0x7fda40421000] [0] Built-in iSight
    [AVFoundation input device @ 0x7fda40421000] [1] Capture screen 0
    [AVFoundation input device @ 0x7fda40421000] AVFoundation audio devices:
    [AVFoundation input device @ 0x7fda40421000] [0] Soundflower (64ch)
    [AVFoundation input device @ 0x7fda40421000] [1] Built-in Microphone
    [AVFoundation input device @ 0x7fda40421000] [2] Soundflower (2ch)
    [AVFoundation input device @ 0x7fda40421000] [3] Built-in Input
    : Input/output error

    Okay, we have SoundFlower in devices :

    [AVFoundation input device @ 0x7fda40421000] [2] Soundflower (2ch)

    Then I run AppleScript which gonna switch to the "SoundFlower (2ch)" :

    enableSF("input")

    enableSF("output")

    Where enableSF(stdname) is :

    on enableSF(stdname)    
       tell application "System Preferences"  
           -- activate
           tell anchor stdname of pane "com.apple.preference.sound" to reveal  
           tell application "System Events"    
               tell application process "System Preferences"  
                   tell tab group 1 of window 1    
                       delay 2
                       set rowslist to selected of row of table 1 of scroll area 1
                       set counter to 0    
                       repeat with id in rowslist  
                           set counter to counter + 1  
                           set rowName to (value of text field 1 of row counter of table 1 of scroll area 1)  

                           set output to stdname &amp; " " &amp; rowName  
                           set scrpt to "echo \"" &amp; output &amp; "\" >> ~/Desktop/ds.log"  
                           do shell script scrpt  

                           if (rowName is equal to "Soundflower (2ch)") then  
                               set selected of row counter of table 1 of scroll area 1 to true

                               set output to "
                               !!! FOUND SF for " &amp; stdname &amp; " " &amp; rowName    
                               set scrpt to "echo \"" &amp; output &amp; "\" >> ~/Desktop/ds.log"  
                               log output  
                               do shell script scrpt
                               exit repeat
                           end if  
                       end repeat  
                   end tell    
               end tell    
           end tell    
       end tell    
    end enableSF    

    In result I have got this :

    input Internal Microphone
    input Line In
    input Digi CoreAudio Device
    input Soundflower (2ch)

           !!! FOUND SF for input Soundflower (2ch)

    output Headphones
    output Digi CoreAudio Device
    output Soundflower (2ch)

           !!! FOUND SF for output Soundflower (2ch)

    It means that we switch to the SoundFlower. Actually the same can be done by hands, but the script is more reliable as for me.

    Okay, next we can try to save some audio via SOX :

    $ /Applications/sox-14.3.2/sox -d /Desktop/out.wav

    Input File     : 'default' (coreaudio)
    Channels       : 2
    Sample Rate    : 44100
    Precision      : 32-bit
    Sample Encoding: 32-bit Signed Integer PCM


    In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0    
    ...
    ...
    ...
    In:0.00% 00:00:02.51 [00:00:00.00] Out:106k  [      |      ]        Clip:0    
    ...
    ...
    ...
    In:0.00% 00:00:11.80 [00:00:00.00] Out:516k  [      |      ]        Clip:0    /Applications/sox-14.3.2/sox WARN coreaudio: coreaudio: unhandled buffer overrun.  Data discarded.
    ...
    ...
    ...    
    In:0.00% 00:00:12.35 [00:00:00.00] Out:545k  [      |      ]        Clip:0    /Applications/sox-14.3.2/sox WARN coreaudio: coreaudio: unhandled buffer overrun.  Data discarded.
    ...
    ...
    ...
    In:0.00% 00:00:13.28 [00:00:00.00] Out:582k  [      |      ]        Clip:0    
    Aborted.

    And, as you can see, the SOX gives me an empty file. Rather, it gives the data, but there is no sound.

    This happens on all OS from 10.10 to 10.11.6. Normal output should be this type :

    In:0.00% 00:00:00.28 [00:00:00.00] Out:8.19k [======|======]        Clip:0      
    ...
    ...
    ...
    In:0.00% 00:00:04.37 [00:00:00.00] Out:188k  [ -====|===== ] Hd:1.1 Clip:0
    ...
    ...
    ...    
    In:0.00% 00:00:08.82 [00:00:00.00] Out:385k  [======|=====-] Hd:1.1 Clip:0      
    In:0.00% 00:00:09.01 [00:00:00.00] Out:393k  [-=====|=====-] Hd:1.1 Clip:0      
    In:0.00% 00:00:09.20 [00:00:00.00] Out:401k  [======|======] Hd:1.1 Clip:0
  • Looking for a general purpose way to merge audio and video file and make an output have stereo audio with FFmpeg

    21 février 2020, par Pineapple Joe

    So have have the following FFmpeg command

    ffmpeg -i vidab.mp4 -i recab.webm  -filter_complex "[0:a]volume=0.2,apad[A];[1:a][A]amerge[Aout]" -map 0:v -map [Aout] -y mergeab.mp4

    When the input files are played separately their audio is played equally through both headphones.

    But after being merged the audio from the video is on the right side and the audio from the webm file is on the left side.

    I see this in the output when I run the cmd

    [Parsed_amerge_2 @ 0x7fa0faf01bc0] No channel layout for input 1
    [Parsed_amerge_2 @ 0x7fa0faf01bc0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels

    How can I adjust this so that the output file has the audio from both the inputs in equally in the left and right sides ?

    Also is there a generic way to do this such that even different configurations (video has stereo and audio has mono ... or both have stereo) result in the Audio being split evenly.

    I tried using the pan filter but there is something I am not understanding about how it works because either nothing happens or I flip left and right. But I am not getting even stereo.

    fwiw here is the full output.

    ffmpeg -i vidab.mp4 -i recab.webm  -filter_complex "[0:a]volume=0.2,apad[A];[1:a][A]amerge[Aout]" -map 0:v -map [Aout] -y mergeab.mp4
    ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with Apple clang version 11.0.0 (clang-1100.0.33.8)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.1_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.jdk/Contents/Home/include/darwin -fno-stack-check' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vidab.mp4':
     Metadata:
       major_brand     : qt  
       minor_version   : 0
       compatible_brands: qt  
       creation_time   : 2020-02-21T00:35:25.000000Z
     Duration: 00:00:10.65, start: 0.000000, bitrate: 2539 kb/s
       Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 96 kb/s (default)
       Metadata:
         creation_time   : 2020-02-21T00:35:25.000000Z
         handler_name    : Core Media Audio
       Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1280x640, 2436 kb/s, 29.87 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2020-02-21T00:35:25.000000Z
         handler_name    : Core Media Video
         encoder         : H.264
    Input #1, matroska,webm, from 'recab.webm':
     Metadata:
       encoder         : opus-media-recorder
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #1:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)
    Stream mapping:
     Stream #0:0 (aac) -> volume (graph 0)
     Stream #1:0 (opus) -> amerge:in0 (graph 0)
     Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
     amerge (graph 0) -> Stream #0:1 (aac)
    Press [q] to stop, [?] for help
    [libx264 @ 0x7fa0fb004000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x7fa0fb004000] profile High, level 3.1
    [libx264 @ 0x7fa0fb004000] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [Parsed_amerge_2 @ 0x7fa0faf01bc0] No channel layout for input 1
    [Parsed_amerge_2 @ 0x7fa0faf01bc0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels
    Output #0, mp4, to 'mergeab.mp4':
     Metadata:
       major_brand     : qt  
       minor_version   : 0
       compatible_brands: qt  
       encoder         : Lavf58.29.100
       Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1280x640, q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default)
       Metadata:
         creation_time   : 2020-02-21T00:35:25.000000Z
         handler_name    : Core Media Video
         encoder         : Lavc58.54.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc58.54.100 aac
    frame=  318 fps=107 q=-1.0 Lsize=    1568kB time=00:00:17.72 bitrate= 724.8kbits/s speed=5.99x    
    video:1282kB audio:272kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.902630%
    [libx264 @ 0x7fa0fb004000] frame I:2     Avg QP:19.72  size: 51154
    [libx264 @ 0x7fa0fb004000] frame P:148   Avg QP:21.28  size:  6644
    [libx264 @ 0x7fa0fb004000] frame B:168   Avg QP:25.18  size:  1351
    [libx264 @ 0x7fa0fb004000] consecutive B-frames:  1.3% 84.9%  0.0% 13.8%
    [libx264 @ 0x7fa0fb004000] mb I  I16..4: 23.2% 49.3% 27.5%
    [libx264 @ 0x7fa0fb004000] mb P  I16..4:  2.1%  2.0%  0.2%  P16..4: 29.0%  5.1%  4.8%  0.0%  0.0%    skip:56.8%
    [libx264 @ 0x7fa0fb004000] mb B  I16..4:  0.5%  0.3%  0.0%  B16..8: 16.7%  0.8%  0.2%  direct: 6.1%  skip:75.4%  L0:24.8% L1:71.1% BI: 4.1%
    [libx264 @ 0x7fa0fb004000] 8x8 transform intra:45.4% inter:74.3%
    [libx264 @ 0x7fa0fb004000] coded y,uvDC,uvAC intra: 29.3% 51.4% 11.6% inter: 5.7% 16.6% 0.3%
    [libx264 @ 0x7fa0fb004000] i16 v,h,dc,p: 11% 53% 10% 26%
    [libx264 @ 0x7fa0fb004000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 36% 35%  2%  2%  2%  4%  2%  3%
    [libx264 @ 0x7fa0fb004000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 30% 12%  4%  6%  5%  7%  5%  6%
    [libx264 @ 0x7fa0fb004000] i8c dc,h,v,p: 47% 33% 17%  4%
    [libx264 @ 0x7fa0fb004000] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fa0fb004000] ref P L0: 76.6%  7.6% 11.1%  4.7%
    [libx264 @ 0x7fa0fb004000] ref B L0: 89.1% 10.3%  0.6%
    [libx264 @ 0x7fa0fb004000] ref B L1: 99.7%  0.3%
    [libx264 @ 0x7fa0fb004000] kb/s:989.60
    [aac @ 0x7fa0fb005800] Qavg: 13376.354
  • How can record music playing on headphone ?

    27 avril 2022, par showkey

    List all the cards in my pc :

    &#xA;

    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;