Issues Playing a Merged DataSource

Hi, I'm trying to merge 2 audio DataSources, but when I create a Player for the MergedDataSource, I get the following error:
javax.media.NoPlayerException: Cannot find a Player for: com.ibm.media.protocol.MergingPullDataSource@4c624c62
     at javax.media.Manager.createPlayerForSource(Manager.java:1512)
     at javax.media.Manager.createPlayer(Manager.java:500)
     at Sample1.<init>(Sample1.java:25)
     at Sample1.main(Sample1.java:39)
This is my code:
public Sample1() {
          MediaLocator ml1 = new MediaLocator("file:/c:/dev/samples/sample1.wav");
          MediaLocator ml2 = new MediaLocator("file:/c:/dev/samples/sample2.wav");
          try {
               DataSource ds[] = new DataSource[2];
               ds[0] = Manager.createDataSource(ml1);
               ds[1] = Manager.createDataSource(ml2);
               DataSource ds3 = Manager.createMergingDataSource(ds);
               Player player = Manager.createPlayer(ds3);
               player.start();
          } catch (NoPlayerException e) {
               e.printStackTrace();
          } catch (IOException e) {
               e.printStackTrace();
          } catch (NoDataSourceException e) {
               e.printStackTrace();
          } catch (IncompatibleSourceException e) {
               e.printStackTrace();
Any help would be great, thanks.

Someone on the forum recently posted sucess doing that using the merge example, and claimed the Merge example produced a single output track under the condition that the input tracks were of identical formats.
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.html]
It's my understanding of the code that given 2 audio inputs you'll get an output with 2 audio tracks combined into a single file, but, the user (don't recall who) said they got a single track output... so the moral of the story is, I'm probably wrong and your milage may vary.
But I'd give the example code a few tinkering hours and see what it'll give ya.

Similar Messages

  • Video feed freezes when using a merging datasource

    I have an application that needs to take in data from either an audio source, a video source, or both. I'm able to view/hear the data just fine if it is just audio or just video but when I try to have a processor play both, the video feed will start running, but then stop. The audio will continue and the processor's controls continute to show the duration, so I know it's not the processor that's having the problem.
    Two points of interest: Since my application needs to send this data as well as have it viewed locally, I am utilizing a MonitorStream in the same fashion as described in the "JMF Solutions" section. Also, since I'm using both types of data I'm creating a merged datasource via:
    Manager.createMergingDataource( <audioDS>, <videoDS> )I wasn't able to locate anything related already posted here. Has anyone experienced this before, or know what is going on? Thanks.

    My 2 cents:
    1- Try this <video><audio> instead of <audio><video>
    2- Forgot monitor stream if you want to monitor audio. I was unable to monitor video + audio with the jmf monitor solution.
    3- Use a player, not a processor to play the data. I was unable to encode and play with the same processor.
    If you need, make clones!

  • Issue playing movies downloaded from iTunes on TV when linked to computer via HDMI cable.

    Recently I purchased the advance digital copy of "Star Trek Into Darkness" as it was it was released just in time for  moving some people into another state; we planned to watch it when we rested for the day.  After hooking my windows 7 laptop up to a Samsung flatscreen TV using an HDMI cable, iTunes refused to play the movie.  It would play when the computer was disconnected from the TV, and the same error would appear when reconnected.  The error stated that I had to be connected to an "HDCP compatible device."
    Is this some way of iTunes forbidding me from watching movies downloaded from their service when connected to an exterior device?  My computer has no issues playing other content, such as netflix, when connected to a TV. 
    For me it's pointless to buy movies now from iTunes; I feel like I've wasted $20.  Why on earth would I want to sit in front of a computer to watch it when there's a TV five times the size available? 

    Hello happylilvampyr,
    Unfortunately, this is due to a lack of HDCP support provided by the TV in use. More information regarding HDCP can be found in the following article.
    iTunes for Windows: Unable to view or play HD video content that requires HDCP
    http://support.apple.com/kb/TS3354
    As an alternative, you can always download the movie in standard definition, which will allow for viewing on non-HDCP devices.
    When you purchase an HD video on a supported device or computer, only HD video will be downloaded. To download the SD version, you need to download the video again from your Purchased page. Conversely, if you purchase an HD video on an unsupported device, the SD version will be downloaded. Then, you will need to download the HD version from your Purchased page. Learn more about downloading previous purchases.
    iTunes: Purchasing and viewing HD videos
    http://support.apple.com/kb/HT3209
    Cheers,
    Allen

  • Issue with PDF merging

    Hi,
    I am doing PDF merging using using assembler. But the issue is after merging some of the fields of pdf are non editable. Can some one tell me why this is happening.

    Please upload your document and ddx.

  • Issue with PDF Merge

    Hi,
    Thanks in advance. I have an issue when I merge pdf files in Acrobat 9. Please see the attached Screenshot below. The issue seems very strange. Few of files in the merge list reads "Can not convert this file ... from the list"
    Please help. I need to solve them immediately.
    With many thanks,
    Saravanan

    The two most common reasons why a file would receive such a warning: (1) The file follows a particular standard (e.g., PDF/A or PDF/X) and would no longer comply with the standard if merged. (2) The file has security or a signature applied, and it would lose its integrity of part of a merged PDF
    I think more info might be shown if you opened the warning window wider (not sure about whether this is specified in the warning).

  • Issue Playing SCORM Content on iLearning 5.0b

    Hey there - anyone else have an issue playing SCORM content on iLearning 5.0b where you have a version of Sun JRE later than 10 and the "Enable next generation Java plugin" setting in its control panel checked (which is the default on install)?
    We experienced this issue with OLM and Oracle issued a patch and updated SCORM adapter that fixed the issue for our OLM instance but I can't seem to find anything related to an updated iLearning SCORM adapter.
    Thanks

    Lee, I think patch #7565299 solves this if I recall correctly.
    Scott
    http://www.seertechsolutions.com

  • Issues playing video through USB on 58M9363D 4k TV

    Hi there,
    I recently purchased the 4k 58M9363D and I am loving it so far. However I do have some serious issues with playing video from both USB and through my pc. They do ruin the experience at the moment and hopefully they can be fixed. So here goes!
    Whenever I try to play a mp4 file through USB it says format is not supported, this is especially painful when all 4k content I could find seems to be in the mp4 format.
    Another issue I get is with playing 3D movies from usb.
    Sometimes they play perfectly fine but often I get strange long lines at the bottom of the screen, making is unwatchable.
    It doesn't seem to be a format issue as I tried mostly mkv files that work half the time and the other half I get the same distorted screen.
    Lastly, I can't seem to play 3D movies from my pc.
    When I turn on a SBS video and press the 3d button on the remote I just get a double SBS screen that looks converted from 2D to 3D, instead of them merging into a single actual 3D image.
    Can anyone tell me how to fix these issues?
    Thanks in advance!

    Hi
    Regarding the USB playback:
    In Toshiba M8365 user manual (page 94/95) you can find the details about the supported media format, video codec, file extension, etc
    http://www.toshiba-om.net/LCD/PDF/English/M8365-405058-English.pdf
    The MP4 media format is definitely supported.
    The following video codecs in connection with mp4 file format should be used: H.264 (MPEG-4 AVC) or MPEG-4 part12,14
    Regarding the 3D support (over HDMI):
    Take a look on page 96. There you can find info about the supported 3D resolution, aspect ratio and 3D structure (Side by Side (Half), Side by Side (Full), Top and Bottom)
    The possible 3D structure depends on the movie resolution.

  • Question on merging datasource

    Can I merge two datasources into one?
    One is video datasource from webcam and the other is audio datasource from mic.
    If I can not merge them, does it mean I have to create two processors to play?

    I've done it, but I've got another problem now.
    When I want to record a data source combining audio from mic and video from web cam to data sink, it throws a NoDataSinkException that cannot find a datasink for: com.sun.media.mulitplexer....

  • I just recently got a new laptop and transfered everything over and it seemed to be ok but now having issues playing videos and can't edit any of my song info in music files

    I just got a new laptop so I had to transfer everything over and I thought everything would be ok but I'm having some strange issues especially with my purchased tv shows, movies, and music videos. They just wont play. Sometimes I'll get lucky and a tv show will play but if I stop it and try again it wont. If I open in Quicktime it works fine. The computer is authorized so that shouldnt be it especially if it plays in QT and like I said sometimes I'll get lucky and one will play. Now the other thing I just noticed is all my music files play fine but when opening and looking at the info of the music file I can't edit anything for example song title or artist the area seems shaded and won't let me do any editing. So I'm having those 2 issues. Video files not playing ones that I have purchased. movies, tv shows and music videos. Also like I said if I just sit there and click one after another I may get lucky and one will play but if I stop it and try again it will not play again. And I can't seem to edit any music file which play fine. I have a new Dell with windows 7 and I have never had this happen any help would be great. The computer is authorized for i tunes so it cant be that.

    Right-click on your main iTunes folder and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and system full control to this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but Windows 7 shouldn't be too different.
    tt2

  • Delta issue on a Generic Datasource

    Hi
       I had a Generic Datasource on a Z table.
       The Z table had a Date field on which Delta is based.The Postings are performed manually.
      How to solve the delta issue in the below scenario.
    Ex; A user made a manual posting with a date 09AUG2010 today and delta is extracted to BW.
        But tommorow a used made another posting with a date 14JULY2010....
    Currently that record is not being extracted....how can i resolve this
    Thanks

    Hi,
    Once the data source is created you will extract the data till that date and as the delta is set it will fetch the newly updated records .But i dont think one can post with the back dates in R/3 side.
    If i'm not wrong if you are asking regarding record got missed out them wht need to be done?
    Then do the repair full request and pull the missed delta records and it wont effect the delta settings.
    Regards
    KP

  • Error Mail Merge Aborted due to error in creating the Mail Merge DataSource

    Dear All,
    please help me with this problem (Oracle release 12.0.4.)
    1. PROBLEM:
    When attempting to extract data, using Web ADI in HRMS, Word is selected as the viewer, but an Excel spreadsheet is generated rather than a MS Word document containing the data. Also error "Mail Merge Aborted due to error in creating the Mail Merge Data Source." appears on screen.
    We are using MS Office 2003.
    2. PROBLEM:
    Unable to create data source from HR form PAYWSLEE.
    We are using custom integrator. This integrator is attached to form function. Form function is attached to responsibility. We also created the layout.
    The next step would be to create data source from form PAYWSLEE, but we are not able to perform this...
    In release 11i we used this form (PAYWSLEE) to create datasource (for mailmerge), but in R12 this is not working... Something is missing here and I need your help to determine what. I checked the most documents on Oracle Support and didn't find solution for this problem...
    Please advise.
    Kind Regards,
    Andreja

    Hi all,
    Thanks for visiting our forum and sharing your experience here. It'll be benefited to our communicator.
    Have a good time.
    Regards,
    Thanks
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Issue playing videos in iTunes with Windows 7 x64

    Hi, hoping someone can help.
    I  am running Windows 7 64 bit, and have installed the latest version of iTunes. I have around 150 HD movies stored on my PC, which were previously from an iMac I owned. Whenever I play one of these, the video keeps stuttering and dropping frames then freezing etc. Now, the issue is not with the files, as they play in WMP and VLC perfectly fine. It happens in exactly the same spot in the videos everytime they are played. My CPU reaches 100% then drops to 0% as the freezing is happening. It appears as though my CPU cannot handle the files, yet they play fine in another player.
    I was wandering if anyone else is having this problem, it's incredibly frustrating because I love iTunes as a media manager.
    Thanks.

    Try reset winsock and see it will fix the issue.
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 &amp; above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes, and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Issue with BPM-Merging 2 files.

    Hi all,
    I am facing one issue with my development object...it is a BPM scenario in which i am merging 2 files using constant correlation id...JDBC to File scenario...i am using 2 JDBC adapters at source side...the scenario is getting executed without any error and i am getting the output...but the output contain only the data in 1 file...merging is not happening and only one file data is displayed in the output...could someone help me with this issue???am i missing something here??any help will be really appreciated...
    Thanks,
    Lekshmi.

    Hi all,
    As informed in my earlier post the same scenario was working with File adapters at source side.I figured out why it was working earlier.
    Since i have generated the source files for the File adpaters i have added the name space as displayed in the mapping(highlighted in bold letters).
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:Test1_MT xmlns:ns1="http://testing.com/Details">
             <row>
             </row>
          </ns1:Test1_MT>
       </ns0:Message1>
       <ns0:Message2>
          <ns1:Test2_MT xmlns:ns1="http://testing.com/Details">
             <row>
                <VIA_NO/>
                <VSL_NM/>
                <ATA_DTTM/>
                <PATA_DTTM/>
                <ADT_INS_DTTM/>
                <ADT_UPD_DTTM/>
             </row>
          </ns1:Test2_MT>
       </ns0:Message2>
    </ns0:Messages>
    But in the case of real time scenario data is pulled from database and the input file is created through JDBC adater i am getting the source message for mapping as :
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns:Test1_MT xmlns:ns="http://testing.com/Details">
             <row>
             </row>
         </ns:Test1_MT>
       </ns0:Message1>
       <ns0:Message2>
         <ns:Test2_MT xmlns:ns="http://testing.com/Details">
             <row>
                <VIA_NO/>
                <VSL_NM/>
                <ATA_DTTM/>
                <PATA_DTTM/>
                <ADT_INS_DTTM/>
                <ADT_UPD_DTTM/>
             </row>
         </ns:Test2_MT>
       </ns0:Message2>
    </ns0:Messages>
    When i tested this message in message mapping it is giving only the first file in the output.
    Any idea how to resolve this one?
    Rgds,
    Lekshmi.

  • Issue with Duplicate Merge Fields in PDFs

    I have been utilizing merge fields from our Salesforce instance into our Forms and Contracts for a couple of years now and have never come across this issue.  Since we utilize Salesforce, we will have certain merge fields duplicated on multiple pages.  For instance, the Record Owner's Name and Firm from their User records will be on different pages, but will be coming from the same source and need to show the same information.  Everything seems to be fine once the documents have been merged, it is printing that is causing the issue.
    If I place "Master.Owner_Name" into the PDFs on multiple pages, it will change the name to "Master.Owner_Name#1" and "Master.Owner_Name#0".  So now when our users are printing the documentation, the fields are printing out vertically.
    Has anyone seen this issue before and how were you able to resolve?
    Thank you for any assistance you can provide!

    PDF forms are not Salesforce forms and do not work in the same way.
    Within a PDF form any field with same type of field and same name will share the same value.
    All fields should be uniquely named.
    LiveCycle form behave differently and do support same field names with different values unless a field is configured as a global field.
    The usual way to have multiple copies of a from within a single PDF is to use a template to make the multiple copies and uniquely name the fields on the copy of the form.

  • Having issues playing videos after the latest update

    After the latest update for ITunes, I am having issues with some of my videos.  Some of my videos will play while others in attempting to play them will play back choppy, at times the picture will freeze and then all at once the video will start fast forwarding to catch up to where it should be, and then at other times the video will cut out intirely, the screen will be completely black without the control areas in the top right corner or the center of the bottom of the screen even being visible.
    Have been unable to watch a large number of my TV series, and movies.

    Try playing videos directly in Quicktime:
    1.) Open Quicktime
    2.) Click File > Open File
    3.) Navigate to your iTunes folder
    4.) Movies are in iTunes\Movies\, TV in iTunes\TV Shows\, podcasts in iTunes\Podcasts
    5.) Select a video and open it
    6.) Watch in awe as Quicktime plays it perfectly, full screen option is in the View menu BTW.
    iTunes 10.7.0.21 is a disaster.

Maybe you are looking for

  • Novice Q - Printing Woes

    Good morning all; I'm an amateur photographer looking to get a little less amateur in my ways, so I have decided to give Aperture a try. I have the Luna/Long book and after working through that, I find I that I like Aperture (version 1.5.6), I think

  • Javascript error: wdaOnMainLoad is undefined

    Hello together I'm reading the SDN for quite a while now, and thanks to all of you most of my problems could be solved. So I hope there is anybody who knows a solution to my current problem with WebDynpro for ABAP. On our development machine everythi

  • Modifying JList selection behavior

    What I want to do is change the selection behavior so that if the user clicks on the left half of the cell, the item is selected, but if the user clicks on the right half, the item is not selected. I already have the code to determine where the user

  • Outline Indent Problems

    I have created a custom outline, can send template if needed. Looks something like this. Title (centered) Scripture (Centered) Introduction (In Italic) 1. A. 2. 3. Discussion (In Italic) I A. B. 1. 2. II III Conclusion: (In Italic) 1. 2. 3. Problem i

  • How am I going to get my etf's reimbursed from TMobile without a final bill from Verizon?...

    Duplicate post - please see: https://community.verizonwireless.com/thread/817234 Message was edited by: Admin Moderator