Broadcast video from a mobile device to YouTube

    imageContinuing a series of articles on the capabilities of Intel® INDE Media Pack, this time I’ll talk about how you can use our library to add the ability to broadcast live video from a mobile device’s camera to YouTube. This is not about code, but about how to properly configure all the necessary components. You can find the required code in the examples supplied with the Intel INDE Media Pack .

    We will need:

    Install Wowza Streaming Engine:

    Setting up the Wowza Streaming Engine:

    1. At the top of the Streaming Engine Manager start page, click the Applications tab .
    2. In the Applications panel, click Live .
    3. Next, select Incoming Security and click the Edit button .
    4. Set the following options, click the Save


    5. Restart the application.

    Setting up YouTube live event

    1. Enter the YouTube Video Manager Live Events page
    2. Click Enable live streaming , follow the instructions to verify your account.


    3. Click Create live event .
    4. On the Create a new event page , on the Basic info tab, enter the necessary information about your broadcast (name, description, date and time, location, etc.).
    5. Select Custom (more encoding options) as the type .


    6. Go to the Advanced settings tab to manage additional options (comments, post, etc.).
    7. Click the Create event button .
    8. On the Ingestion Settings tab , under Choose maximum sustained bitrate of your encoder, select the option most suitable for your network and device.
    9. Under Select your encoder, select Other Encoders . You will see information about the stream name and server addresses.


    Save this information. We will need it later.
    10. Click the Save changes button.

    Install Push Publishing AddOn

    Starting with Wowza Streaming Engine 4, no additional steps are required. Push Publishing AddOn is now integrated into the Wowza Streaming Engine .

    Configuring and Verifying Push Publishing AddOn

    1. To access the Modules tab, you will need administrator privileges:


    2. Then, in the Wowza Streaming Engine Manager, select the necessary live application.
    3. Click the Modules tab in the application settings.


    4. On the Modules tab, do the following:
    a. Click Edit .
    b. Add the module by entering the following data: c. Click Add, then Save , and the Restart , when there will be a proposal to: Module ModulePushPublish listens for incoming stream, which will be published on the server. Push Publishing AddOn

    Name: ModulePushPublish
    Description: ModulePushPublish
    Fully Qualified Class Name: com.wowza.wms.pushpublish.module.ModulePushPublish



    needs the following information, formatted in a special way and stored in the file [install-dir] /conf/PushPublishMap.txt . Editing this file directly from the Streaming Engine Manager is currently not possible. Here is all the information we need: 5. Using a text editor, edit the file [install-dir] /conf/PushPublishMap.txt . Return, if necessary, to the Ingestion Settings page in YouTube Video Manager to find the options you need. The updated PushPublishMap.txt file should look like this: For compatibility with the JSON specification, the PushPublishMap.txt file

    Profile: rtmp
    Host(1): rtmp://
    Host(2): rtmp://
    Application(1): live2
    Application(2): live2?backup=1
    StreamName: ilya.aleshkov.hpw0-zadr-d849-4pbj

    test={profile:”rtmp”, streamName:”ilya.aleshkov.hpw0-zadr-d849-4pbj”, host:””, application:”live2”}
    test={profile:”rtmp”, streamName:”ilya.aleshkov.hpw0-zadr-d849-4pbj”, host:””, application:”live2?backup=1”}

    now supports quotes ("). Old files without quotes will continue to work for some time.
    6. Save the file [install-dir] /conf/PushPublishMap.txt .
    7. Restart the Wowza Streaming Engine .


    Check everything in action

    1. Run the “Camera Streaming” example included with the Intel INDE Media Pack . Pay attention to the settings


    2. Check the settings of the Test Players live application


    3. Go to the YouTube Live Control Room page of your event and click the Preview button . When the status becomes GOOD , find Preview below on the page and click Play . If you see video from your device, then everything works correctly.
    4. When you are ready to publish your stream, go to the YouTube Live Control Room page of your event and click the Start Streaming button. If you see your stream in the test player Public View , you did it!

    Also popular now: