Audio - Link Microphone and playback into one device?

Is it possible to merge two audiosources togeather in any nifty way?
Mainly interested in the default recording device (or otherwise specified) with the playback device.
I'm using JACK which i thought was able to do so but never got it working in any practical way al tho i enjoy playing around with it.
Why i want to do it is because i want ffmpeg to easily pick up two sources from one channel, and being able to switch around in say JACK would be awesome in real time not affecting the ffmpeg stream, considering i might be streaming something for a bit and want to switch audio source mid-stream to erm i dunno say a radiostation while i go off doing something else.
Linux is versatile so i bet it's possible, i just don't know how yet

I've got this partially solved:
#!/bin/bash
KEY=`cat key.db`
ffmpeg \
-i http://pub1.di.fm:80/di_vocaltrance \
-f alsa -ac 2 -i hw:0 -acodec mp3 -aq 1 -ab 128k \
-f x11grab -s 1920x1080 -r 25 -i :0.0 \
-c:v libx264 -preset fast -pix_fmt yuv420p -s 1280x800 \
-c:a mp3 -ab 96k -ar 22050 \
-threads 0 \
-map 0:0 -map 1:0 -map 2:0 \
-f flv "rtmp://live.twitch.tv/app/$KEY"
But now for the tricky part..
Everything sounds like i'm inside a tin-can for some reason (probably to do with the mixing, ffmpeg probably don't like that for the format?).
So i thought i'd give ffmpeg-full a go with jack support.
Giving me the option to link several inputs into one single channel making it a single-audio track in the video, also giving me the option to patch this by muxers and what not.. But it gives me this:
-f alsa -ac 2 -i jack \
Produces:
[alsa @ 0x1399280] cannot set sample format 0x10000 2 (Invalid argument) jack: Input/output error

Similar Messages

  • I travel - a lot. I have apple accounts in Canada, US and Brazil. I want to consolidate and listen to my music and movies on one device. Right now there is a 90 day limit per account on each device. How can I download and use all my purchases?

    There must be a way for people who live in several countries or speak several languages to purchase music and movies in various national Apple IDs and then consolidate and listen to the media they own on just one device. How can I do that?

    There must be a way to get all the music and movies into one place. Maybe on Laptop rather than iPhone or iPad. I can get one set to one ID and the other to another, then switch to the third ID since I have not changed the two in 90 days. But I would need to download all media during the time each device is on each ID. Must be possible, but I don't know how.

  • Can I sync the songs from two different Apple IDs (HK and JP) into one iPhone?

    I want to buy some songs from a HK Apple ID and a JP Apple ID.
    I just hope the songs of two Apple ID can appear in one iPhone.
    But I don't want can I sync the songs from two different Apple IDs (HK and JP) into one iPhone.

    Are you currently in Japan or Hong Kong ? You have to be in a country (and have a billing address in that country on your account) to buy or download from its store, that is included in the store's terms.
    You can sync content from different accounts from your computer's iTunes library.

  • I have one apple account and one apple ID.  I have several devices under that ID.  Why when I download and app on one device it goes on all devices?

    I have one apple account and one apple ID.  I have several devices under that ID.  Why when I download and app on one device it goes on all devices?

    Click here and use the instructions to turn off the automatic downloads.
    (104598)

  • I have qualitynet either wired internet. I buy a card good for a month at a time, I can only log into one device at any one time.  Are there settings I can adjust on my airport express to allow all my devices to connect to wi-fi without having to log out.

    I have qualitynet either wired internet. I buy a card good for a month at a time, I can only log into one device at any one time.  Are there settings I can adjust on my airport express to allow all my devices to connect to wi-fi without having to log out of one devise before using another?

    Some Internet providers that limit access to a single device at a time do so by the device's hardware MAC address. If your ISP is one of those, you may be able to substitute the MAC address of your AirPort Express base station for the computer. I would suggest that you contact them to find out if this is allowable.

  • What's the easiest way to select all my files from all the folders on a hard drive and place into one folder?

    Hi there,
    I have about 30,000 images all in hundreds of folders. I'm wondering what the easiest way to get them all into one folder so I can select and convert them all from .psd, .tiff, etc all to jpg. The reason I'm doing this is because the folder structure is such a mess, that I'm just going to import them all into aperture to sort everything. But the .tiffs and .psds are 100 mb each so I want to scale them to jpgs that are only 4 or 5 mb before I even think about importing them into aperture.
    I tried doing a search for "kind is image" and it shows them all but a ton of them are renamed the same thing so when I try to select all and move into one folder it tells me I can skip that one or stop copying.
    Any thoughts or ideas on this?
    Thanks,
    Caleb

    Hi russelldav,
    one note on your data handling:
    When  each of the 50 participants send the same 60 "words" you don't need 3000 global variables to store them!
    You can reorganize those data into a cluster for each participant, and using an array of cluster to keep all the data in one "block".
    You can initialize this array at the start of the program for the max number of participants, no need to (dynamically) add or delete elements from this array...
    Edited:
    When all "words" have the same representation (I16 ?) you can make a 2D array instead of an array of cluster...
    Message Edited by GerdW on 10-26-2007 03:51 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I would like to get only specific channels from several .csv files and concatenate into one group.

    Hello,
    I am working with other groups and getting the data in daily .csv files.  When I use the "concatenate groups" script along with a script on importing files, I end up getting a huge file that takes about an hour to concatenate.  In order to reduce the amount of time and memory that this takes, I was hoping that someone could help me modify the script so that I could just list the channel name that I am interested in and concatinating only those channels rather than all of them. 
    For example, if voltage, temperature, pressure and time data are taken daily for 30 days, I would like to import only the temperature and time data (from .csv format) and concatenate into one group.
    I have attached the .vbs files that I use.
    Thanks in advance,
    Alan
    Attachments:
    Import and concatenate files.zip ‏9 KB

    Hi Alan,
    Actually, the feature you're asking for is already in the code of mine that you sent back. Look on line 11 of the main VBScript:    ChannelSet = "" ' "" or "1-" (DataPlugin) or "Sheet1" (EXCEL Wizard) 
    If this "ChannelSet" parameter is set to something other than "" or "1-" then it is used in line 78:
    Call DataFileLoadSel(FilePaths(i), DataPlugin, ChannelSet) 
    Yo can specify the channel indices to load with an expression like this:
    ChannelSet = "[1]/[1],[3]" 
    Let me know if you have further questions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How do I take a 4-piece chart design and merge into one chart?

    How do I take a 4-piece design chart and merge into one chart?

    But it can be done with Adobe Acrobat, or the PDF Pack online service.

  • I bought cs6 (student version) and installed into one Mac. Now I got the second Mac, how can I download CS6 to it?

    I bought cs6 (student version) and installed into one Mac. Now I got the second Mac, how can I download CS6 to it?

    You can get  cs6 from here, it just needs your serial number when you install it.
    Download CS6 products

  • How to join  fields from different internal tables and display into one int

    hai i have one doubt...
    how to join  fields from different internal tables and display into one internal table..
    if anybody know the ans for this qus tell me......

    hii
    you can read data as per condition and then can join in one internal table using READ and APPEND statement..refer to following code.
    SELECT bwkey                         " Valuation Area
             bukrs                         " Company Code
        FROM t001k
        INTO TABLE i_t001k
       WHERE bukrs IN s_bukrs.
      IF sy-subrc EQ 0.
        SELECT bwkey                       " Valuation Area
               werks                       " Plant
          FROM t001w
          INTO TABLE i_t001w
           FOR ALL ENTRIES IN i_t001k
         WHERE bwkey = i_t001k-bwkey
           AND werks IN s_werks.
        IF sy-subrc EQ 0.
          LOOP AT i_output INTO wa_output.
            READ TABLE i_t001w INTO wa_t001w WITH KEY werks = wa_output-werks.
            READ TABLE i_t001k INTO wa_t001k WITH KEY bwkey = wa_t001w-bwkey.
            wa_output-bukrs = wa_t001k-bukrs.
            MODIFY i_output FROM wa_output.
            CLEAR wa_output.
          ENDLOOP.                         " LOOP AT i_output
        ENDIF.                             " IF sy-subrc EQ 0
    regards
    twinkal

  • SQL*Loader - How to combine Flat File 3 columns and put into one single column

    Receive a flat file delimited by comma. Want to combine Flat File last 3 columns and put into one single column(Table).
    e.g.
    Flat File
    100,239,30,20,30
    While inserting into table want to combine last 3 columns and insert into invoice number column.
    302030

    It is not possible to combine the last 3 columns as those columns are seperated by commas and in the SQL Loader control file you must ve specified COMMA as an delimiter. So u better have all the columns in the table plus add one more column which holds the concatenation of the 3 columns.
    Vijay

  • Is There a Program that can compress tracks and Cds into one long tra

    I have a couple long audio books and I would like to have it all in one track.

    DSmith: I use?Easy CD-DA Extractor which is shareware, but you simply tick a box to turn all that you rip into one track. This can be the entire CD, or specific tracks that you pick.

  • Capture audio with microphone and save to disk

    Hello,
    I would like to know if there is any way to record audio from
    user's output? Let's say I capture it using its microphone, and I
    want to create an audio file with it, or a swf file or whatever
    file it is. I need to save that audio for further playback. Can
    someone point me in any direction!? I have been surfing on this
    topic but I didn't find anything, apparently it can't be done, but
    I would love otherwise.
    Thank you,
    JCA

    Yes that's the way it could work. FMS is designed for
    streaming audio, video and data around keeping things synchronised
    in real time, but it can save the streams to be played back later
    as well.
    It would be an expensive solution if that's all you want to
    do.... there is an open source 'version' in development... called
    red5, but I think you need to know how to program in java, although
    I'm not sure.
    Or you could look at adobe connect/formerly macromedia breeze
    - It prebuilt and is a pay for use service, but does much more than
    what you're looking for. I'm pretty sure you can custom logo it
    etc. You might want to try the free trial account and check it
    out.

  • Capturing audio from microphone and save it to a file

    Hi!!
    I'm searching for a code using JavaSound that allows capturing audio from a microphone and save it to a file.
    thanks in advance and sorry for my English

    Hi,
    Check out these links.
    http://developer.java.sun.com/developer/technicalArticles/Media/JavaSoundAPI/
    http://java.sun.com/j2se/1.3/docs/guide/sound/prog_guide/chapter5.fm.html
    Also this is a very good site for finding similar issue as yours.
    http://www.jsresources.org/examples/audio.html
    Hope this helps.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • Fetch data from two tables and insert into one table

    I have similar to the following data in two tables (@Plant, @PlantDirector) and need to consolidate into one table (@PlantNew) as follows.
    DECLARE @Plant TABLE (PlantID INT, PlantName VARCHAR(100))
    INSERT INTO @Plant (PlantID, PlantName) VALUES (1, 'Name One'),(2, 'Name Two'),(3, 'Name Three'),(4, 'Name Four'),(5, 'Name Five'),(6, 'Name Six')
    Director data for the Plants exist in the following table. Assistant value 1 means Assistant Director and 0 means Director. 
    Data exists only for subset of plants and a Plant may have one or both roles.
    DECLARE @PlantDirector TABLE (PlantID INT, PlantDirectorID INT, Assistant bit)
    INSERT INTO @PlantDirector (PlantID, PlantDirectorID, Assistant) VALUES (2, 111, 1),(2, 222, 0),(4, 333, 0),(6,444,1)
    The above data needs to be inserted into one table (@PlantNew) as follows: 
    PlantID in @Plant table is IDENTITY value and needs to be inserted as-is into this table.
    PlantDirExists will get a value of 1 if at least one record exists in @PlantDirector table for a PlantID. PlantAssistantDirID and PlantDirID should be set to the corresponding PlantDirID or NULL appropriately depending on the data.
    DECLARE @PlantNew TABLE (PlantID INT, PlantName VARCHAR(100), PlantDirExists bit, PlantAssistantDirID INT, PlantDirID INT)
    INSERT INTO @PlantNew (PlantID, PlantName, PlantDirExists, PlantAssistantDirID, PlantDirID)
    VALUES (1, 'Name One', 0, NULL, NULL),(2, 'Name Two', 1, 111, 222),(3, 'Name Three', 0, NULL, NULL),(4, 'Name Four', 1, NULL, 333),(5, 'Name Five', 0, NULL, NULL),(6, 'Name Six',1, 444, NULL)
    How do I achieve the above using SQL ? Thanks.

    like this
    INSERT @PlantNew  (PlantID, PlantName, PlantDirExists, PlantAssistantDirID, PlantDirID) 
    SELECT p.PlantID,
    p.PlantName,
    CASE WHEN pd.PlantID IS NULL THEN 0 ELSE 1 END,
    PlantAssistantDirID,
    PlantDirID
    FROM @Plant p
    LEFT JOIN (SELECT PlantID,
    MAX(CASE WHEN Assistant = 1 THEN PlantDirectorID END) AS PlantAssistantDirID,
    MAX(CASE WHEN Assistant = 0 THEN PlantDirectorID END) AS PlantDirID
    @PlantDirector
    GROUP BY PlantID)pd
    ON pd.PlantID = p.PlantID
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    You're missing a FROM
    insert into @PlantNew
    SELECT p.PlantID,
    p.PlantName,
    CASE WHEN pd.PlantID IS NULL THEN 0 ELSE 1 END,
    PlantAssistantDirID,
    PlantDirID
    FROM @Plant p
    LEFT JOIN (SELECT PlantID,
    MAX(CASE WHEN Assistant = 1 THEN PlantDirectorID END) AS PlantAssistantDirID,
    MAX(CASE WHEN Assistant = 0 THEN PlantDirectorID END) AS PlantDirID
    from @PlantDirector
    GROUP BY PlantID)pd
    ON pd.PlantID = p.PlantID

Maybe you are looking for

  • Infotype changes ( Urgent)

    Hi all, Facing some problems in changing Infotypes. Scenario: Have to add another tab with some Input fields in the standard Infotype 0045. Problem: Have added the tab with the fields . But the fields are appearing as output fields and moreover even

  • Adding Button on application toolbar on ABAP List display screen....

    Hello Gurus, I copied SAP program 'RFBUEB00' into custom program. When I execute the custom report, I see the data lijne by line in ABAP list. I see a deafult 'Select' button on application toolbar. If I want to add additional custom button on applic

  • SAP SCM Console error

    Hi SAP Friends, Iam using a SAP SCM IDES version 5.0. while posting transactions in SCM system the system dose not responce after 2 hours of starting the management Console. When i had a look at the management console the first instance status was en

  • PDF Doesnt Open Immediately

    When I try to open a pdf file it doesn't open immediately. I have to double click multiple times before it opens . Any suggestion on a fix?

  • Object Open Error while trying to export the vDataFact table

    I am getting an error when trying to export the vDataFact table to a flat file.  I have been able to do this several time before with the segment tables but would like to run this against vDataFact The error in the error log is:    ERROR:        Code