Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: How to merge video-only stream with audio-only into 1 stream using ModuleAddAudioTrac

  1. #1
    Join Date
    Dec 2012
    Posts
    12

    Lightbulb How to merge video-only stream with audio-only into 1 stream using ModuleAddAudioTrac

    Greetings.
    I have video-only stream from my ip-camera (rtsp stream, h264), and icecast mpga 1/2/3 audio stream.
    I need to merge them both into 1 stream.
    I've tried to do this using ModuleAddAudioTrack module, but it's not working. I'm transcoding mpga to aac over udp with ffmpeg before use this source as custom parameter of module.
    Is ModuleAddAudioTrack working with stream audio?
    Please give me advise how can i merge video-only stream with audio-only.

  2. #2

    Default

    Hello, there are a couple of prerequisites to meet here.

    The ModuleAddAudioTrack does not work with developer or trial licenses, what type of license are you running?
    Second, I believe the audio source needs to be a file located in the /content folder, rather then a URL to an audio stream.

    If these are both meet, then make sure you are connect to the correct stream in the player. If your stream name is "myStream" for example, then the stream to playback would be "myStream-audiodestin"

    Salvadore

  3. #3
    Join Date
    Dec 2012
    Posts
    12

    Default

    I've perpetual license.
    If i understand you correctly, i can't merge live audio stream (like icecast/shoutcast does)?
    Maybe you have some ideas how to do this?

    P.S. I've tested with file just and it is working fine...
    Last edited by drserg; 04-14-2014 at 06:45 AM.

  4. #4

    Default

    According to the documentation of this module, this module will loop the audio file continuously while the source stream is running. By default, the module will look for sample.mp4 in the StorageDir of the running application.
    I do not think it supports a live source as the audio track, and I do not think it supports audio/video synchronicity(if that is a requirement). There is nothing else built-in that supports this that I am aware of, but I have read a few consultants say they can achieve this

    Salvadore

  5. #5
    Join Date
    Dec 2012
    Posts
    12

    Default

    Thanks for answers.
    So have to use ffmpeg map or vlc mosaic to achieve my needs, thought that it can be avoided.

  6. #6
    Join Date
    Dec 2012
    Posts
    8

    Default

    Quote Originally Posted by salvadore View Post
    The ModuleAddAudioTrack does not work with developer or trial licenses, what type of license are you running?
    Is this still true?

  7. #7

    Default

    It looks like the guide has been updated recently.

    You can review the guide here:
    How to add an audio track to a video-only stream (ModuleAddAudioTrack)

    The updated guide now states that:
    This module creates two new published streams for each source stream so may exceed stream limits for Developer or Trial licenses.
    Regards,

    salvadore

  8. #8
    Join Date
    Dec 2012
    Posts
    8

    Default

    Quote Originally Posted by salvadore View Post
    It looks like the guide has been updated recently.

    You can review the guide here:
    How to add an audio track to a video-only stream (ModuleAddAudioTrack)

    The updated guide now states that:


    Regards,

    salvadore

    Thanks for the fast reply! I only have one incoming stream and with the module I think 3 outgoing.

    Would this explain the issue:

    "I'm using this plugin to add an audio track to a IP Camera feed to YouTube. It works great at first, but the audio bitrate degrades until it reaches "0" and then youtube hangs. Shorter audio clips stall sooner than longer ones. Does the audio loop fail after a while?"

    Or is something else the cause of this bit rate slowly going to zero and having youtube hang? I have not been able to determine when this happens, but it's sometime overnight.

    Eric

  9. #9
    Join Date
    Jun 2011
    Posts
    1,037

    Default

    Hi,
    Have you tried using the sample.mp4 file as the source for the audio? That file is used a lot in our testing, and if the audio being sent from that file works in your youtube publish without it fading away or cutting out then that may point to a problematic audio stream in the previous file.

    Daren

  10. #10
    Join Date
    Dec 2012
    Posts
    8

    Default

    Quote Originally Posted by daren_j View Post
    Hi,
    Have you tried using the sample.mp4 file as the source for the audio? That file is used a lot in our testing, and if the audio being sent from that file works in your youtube publish without it fading away or cutting out then that may point to a problematic audio stream in the previous file.

    Daren
    It seems to be working today with the sample.mp4 file. I'll let it go tonight and see what it looks like in the morning. Is there anyway to get a sample.mp4 file that is just silence and has an audio bit rate of 128k? Youtube complains that the current sample.mp4 file is only 96k, plus the soundtrack is a little weird

    Thanks!
    Eric

Page 1 of 2 12 LastLast

Similar Threads

  1. Merge Audio & Video on 3.5?
    By dvint1 in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 11-27-2012, 08:11 AM
  2. Replies: 2
    Last Post: 03-15-2012, 08:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •