First program using the Shaka packager library

676 views
Skip to first unread message

Virginia M

unread,
Sep 27, 2017, 11:36:05 AM9/27/17
to Shaka Packager Users
Hello,

I have recently started to work with this library. First, I used the packager binary to segment a content, generate the different types of playlists, extract the video or the audio... And now, I'm trying to do the same linking this library in my program. Following the documentation, I have written the next simple program with the aim of segmenting the input .ts content into multiples segments and generating the HLS playlist:

#include <cstdlib>
#include <vector>

#include "packager/packager.h"
#include "packager/status.h"

int main () {

    shaka
::Packager packager;

   
// Setup packaging parameters.
    shaka
::PackagingParams packaging_params;
    packaging_params
.temp_dir = "~/shaka-results/temp";
   
// --- Chunking params
    packaging_params
.chunking_params.segment_duration_in_seconds = 6;
    packaging_params
.chunking_params.subsegment_duration_in_seconds = 6;
    packaging_params
.chunking_params.segment_sap_aligned = true;
    packaging_params
.chunking_params.subsegment_sap_aligned = false;
   
// --- HLS params
    packaging_params
.hls_params.base_url = "video_$Number$.ts";
    packaging_params
.hls_params.master_playlist_output = "~/shaka-results/master_playlist.m3u8";
    packaging_params
.hls_params.playlist_type = shaka::HlsPlaylistType::kVod;
    packaging_params
.hls_params.time_shift_buffer_depth = 0;



   
// Setup stream descriptors.
    std
::vector<shaka::StreamDescriptor> stream_descriptors;
    shaka
::StreamDescriptor stream_descriptor;
   
// --- video
    stream_descriptor
.input = "~/Contents/original_content/AMCHD-04-TS.ts";
    stream_descriptor
.stream_selector = "video";
    stream_descriptor
.output = "~/shaka-results/video_$Number$.ts";
    stream_descriptor
.segment_template = "video_$Number$.ts";
    stream_descriptor
.skip_encryption = true;
    stream_descriptor
.trick_play_factor = 0;
    stream_descriptor
.hls_playlist_name = "playlist.m3u8";
    stream_descriptors
.push_back(stream_descriptor);

    shaka
::Status status = packager.Initialize(packaging_params, stream_descriptors);

   
if (!status.ok()){
        std
::cout << "Status is NOK" << std::endl;
       
return EXIT_FAILURE;
   
}

    status
= packager.Run();

   
return EXIT_SUCCESS;
}

The compilation and linking of the library is successful, but the status variable takes a no-OK value. I don't know what the correct value is to initialize these parameters and above all, I don't know how to configute the logging level to see the debug messages included in the code.

I appreciate any help.
Thanks.

KongQun Yang

unread,
Sep 27, 2017, 3:17:26 PM9/27/17
to Virginia M, Shaka Packager Users
Hi Virginia,

You can print out the status to see what is wrong, i.e.

std::cout << "Status is NOK" << status << std::endl;

The problem is that TS is self-initialization, so stream_descriptor.output shouldn't be set. There is actually another problem, packager does not understand "~" in the path, you'll need to use the absolute path instead.



-- KongQun Yang (KQ)

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/bf7f1f02-a02f-4035-9649-a873cb041d51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MV

unread,
Sep 28, 2017, 8:43:42 AM9/28/17
to Shaka Packager Users

Thanks for your answer, it was very useful for me.

I take advantage to ask another question, I'm having problems with the generated HLS content. The content is gnerated successfully, but it can be played using several players.
Maybe I'm not providing the correct information and the output content might have generated with errors.

The first case is using a MP4 input content:

   
// --- Setup packaging parameters.
   
// ------ Chunking params

    packaging_params
.chunking_params.segment_duration_in_seconds = 6;
    packaging_params
.chunking_params.subsegment_duration_in_seconds = 6;
    packaging_params
.chunking_params.segment_sap_aligned = true;

    packaging_params
.chunking_params.subsegment_sap_aligned = true;
   
// ------ MPD params

    packaging_params
.hls_params.playlist_type = shaka::HlsPlaylistType::kVod;

    packaging_params
.hls_params.master_playlist_output = destDir_test8 + "master_playlist.m3u8";
    std
::string test8_br1 = destDir_test8 + "bitrate_1/";
    mkdir
(test8_br1.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
   
//packaging_params.hls_params.base_url = test7_br1 + "seg_";

   
// --- Setup stream descriptors.
    stream_descriptor
.input = inputDir + "BigBuckBunny_512kb.mp4";
    stream_descriptor
.stream_selector = "video";
    stream_descriptor
.output = test8_br1 + "video_init.mp4";
    stream_descriptor
.segment_template = test8_br1 + "seg_$Number$.m4s";
    stream_descriptor
.hls_playlist_name = "video_playlist.m3u8";
    stream_descriptors
.push_back(stream_descriptor);

    stream_descriptor
.input = inputDir + "BigBuckBunny_512kb.mp4";
    stream_descriptor
.stream_selector = "audio";
    stream_descriptor
.output = test8_br1 + "audio_init.mp4";
    stream_descriptor
.segment_template = test8_br1 + "seg_$Number$.m4s";
    stream_descriptor
.hls_playlist_name = "audio_playlist.m3u8";
    stream_descriptors
.push_back(stream_descriptor);


The output traces are:
[vmarting@localhost ingress]$ ./Ingress                                                                                                                                                                          
[0928/141759:INFO:demuxer.cc(88)] Demuxer::Run() on file '[...]/Contents/original_content/BigBuckBunny_512kb.mp4'.                                                                          
[0928/141759:INFO:demuxer.cc(160)] Initialize Demuxer for file '[...]/Contents/original_content/BigBuckBunny_512kb.mp4'.                                                                    
[0928/141800:INFO:mp4_muxer.cc(215)] MP4 file '[...]test8_hls_mp4_to_multiple_m4s_segments/bitrate_1/video_init.mp4' finalized.                                                  
[0928/141800:INFO:mp4_muxer.cc(215)] MP4 file ''[...]test8_hls_mp4_to_multiple_m4s_segments/bitrate_1/audio_init.mp4' finalized.



The second case is using a TS input content:


   std::string destDir_test7 = destDir + "test7_hls_ts_to_multiple_ts_segments/";
    mkdir
(destDir_test7.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);

   
// --- Setup packaging parameters.
   
// ------ Chunking params

    packaging_params
.chunking_params.segment_duration_in_seconds = 6;
    packaging_params
.chunking_params.subsegment_duration_in_seconds = 6;
    packaging_params
.chunking_params.segment_sap_aligned = true;

    packaging_params
.chunking_params.subsegment_sap_aligned = true;
   
// ------ MPD params

    packaging_params
.hls_params.playlist_type = shaka::HlsPlaylistType::kVod;

    packaging_params
.hls_params.master_playlist_output = destDir_test7 + "master_playlist.m3u8";
    std
::string test7_br1 = destDir_test7 + "bitrate_1/";
    mkdir
(test7_br1.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);

   
// --- Setup stream descriptors.
    stream_descriptor
.input = inputDir + "AMCHD-04-TS.ts";
    stream_descriptor
.stream_selector = "video";
    stream_descriptor
.segment_template = test7_br1 + "seg_$Number$.ts";
    stream_descriptor
.hls_playlist_name = "playlist.m3u8";
    stream_descriptors
.push_back(stream_descriptor);


The playlists seem correct.



And the last question: With the previous TS content, I am getting the following output message:


[0928/143659:WARNING:h26x_byte_to_unit_stream_converter.cc(91)] Seeing varying NAL unit of type 8. You may need to set --strip_parameter_set_nalus=false during packaging to generate a playable stream.

But after analyzing all input parameters, I haven't found the way to indicate this argument in a program using the library (I know how to manage it using the executable directly)

Thanks.


On Wednesday, September 27, 2017 at 9:17:26 PM UTC+2, KongQun Yang wrote:
Hi,

-- KongQun Yang (KQ)

To post to this group, send email to shaka-pack...@googlegroups.com.

KongQun Yang

unread,
Sep 28, 2017, 1:33:40 PM9/28/17
to MV, Shaka Packager Users
See the replies below. A not directly related question, are you linking the library statically or dynamically?

-- KongQun Yang (KQ)

On Thu, Sep 28, 2017 at 5:43 AM, MV <v.martin....@gmail.com> wrote:

Thanks for your answer, it was very useful for me.

I take advantage to ask another question, I'm having problems with the generated HLS content. The content is gnerated successfully, but it can be played using several players.

Do you mean cannot?
The segment_template for audio and video are set to the same value. That is probably what is causing your problem.
Sorry about that. It is not exposed in the packaging API interface right now. For now, you'll have to modify the packager code directly to do that (maybe set the default value to false just for your test).
 

-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

MV

unread,
Sep 29, 2017, 9:45:40 AM9/29/17
to Shaka Packager Users

I'm linking the library dynamically.
Yes, the same segment_template for video and audio was causing some problems ... I didn't realize about it. However, the generated HLS content is not playable in some players such as, Osmo GPAC, VLC ....
Then, I have tried to play it on the Safari browser of an iOS device and the playback is correct.

Thanks for your help.

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

KongQun Yang

unread,
Sep 29, 2017, 12:28:28 PM9/29/17
to MV, Shaka Packager Users


-- KongQun Yang (KQ)

On Fri, Sep 29, 2017 at 6:45 AM, MV <v.martin....@gmail.com> wrote:

I'm linking the library dynamically.
Yes, the same segment_template for video and audio was causing some problems ... I didn't realize about it. However, the generated HLS content is not playable in some players such as, Osmo GPAC, VLC ....

I am not very familiar with HLS support in Osmo GPAC and VLC. I am not sure if VLC supports fMP4 in HLS, but TS should be supported in VLC. You may file an issue to Osmo GPAC and VLC. Feel free to loop me in if you do.
 
Then, I have tried to play it on the Safari browser of an iOS device and the playback is correct.

Great! 

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
Message has been deleted

MV

unread,
Oct 16, 2017, 7:16:50 AM10/16/17
to Shaka Packager Users
Hi again,

I'm having a small problem with the initialization segment location in HLS playlists.
For example, the input parameters indicated in my program are:

    [...]

   
else if(format == "hls"){
        destination
= dest_dir + "mp4-hls/";
       
// ------ HLS params
        packaging_params
.hls_params.playlist_type = shaka::HlsPlaylistType::kLive;
        packaging_params
.hls_params.master_playlist_output = destination + "master_playlist.m3u8";
   
}

    mkdir
(destination.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);

   
// --- Stream descriptors.

    std
::vector<shaka::StreamDescriptor> stream_descriptors;
    shaka
::StreamDescriptor stream_descriptor;


    stream_descriptor
.input = input_content;
    stream_descriptor
.stream_selector = "video";
    std
::string dest_video = destination + "video/";
    mkdir
(dest_video.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
    stream_descriptor
.segment_template = dest_video +  "seg_video_$Number$.m4s";
    stream_descriptor
.output = dest_video + "video_init.mp4";

   
if(format == "hls")
        stream_descriptor
.hls_playlist_name = "video_playlist.m3u8";

    stream_descriptors
.push_back(stream_descriptor);



The output content is stored as follows:

[...@localhost mp4-hls]$ ls -la & ls -la video/
[1] 24182
total
12
drwxrwxr
-x 3 ... ...   71 Oct 16 12:53 .
drwxrwxr
-x 3 ... ...   20 Oct 16 12:51 ..
-rw-rw-r-- 1 ... ...  188 Oct 16 12:53 master_playlist.m3u8
drwxrwxr
-x 2 ... ... 4096 Oct 16 12:53 video
-rw-rw-r-- 1 ... ...  904 Oct 16 12:53 video_playlist.m3u8
total
21432
drwxrwxr
-x 2 ... ...      4096 Oct 16 12:53 .
drwxrwxr
-x 3 ... ...        71 Oct 16 12:53 ..
-rw-rw-r-- 1 ... ...   1136395 Oct 16 12:52 seg_video_10.m4s
-rw-rw-r-- 1 ... ...   1123253 Oct 16 12:52 seg_video_11.m4s
-rw-rw-r-- 1 ... ...   1028984 Oct 16 12:53 seg_video_12.m4s
-rw-rw-r-- 1 ... ...   1163507 Oct 16 12:53 seg_video_13.m4s
-rw-rw-r-- 1 ... ...   1206544 Oct 16 12:53 seg_video_14.m4s
-rw-rw-r-- 1 ... ...   1365737 Oct 16 12:53 seg_video_15.m4s
-rw-rw-r-- 1 ... ...   1222401 Oct 16 12:53 seg_video_16.m4s
-rw-rw-r-- 1 ... ..    1217984 Oct 16 12:53 seg_video_17.m4s
-rw-rw-r-- 1 ... ...   1154715 Oct 16 12:53 seg_video_18.m4s
-rw-rw-r-- 1 ... ...   1253755 Oct 16 12:53 seg_video_19.m4s
-rw-rw-r-- 1 ... ...    756946 Oct 16 12:51 seg_video_1.m4s
-rw-rw-r-- 1 ... ...   1163004 Oct 16 12:52 seg_video_2.m4s
-rw-rw-r-- 1 ... ...   1138016 Oct 16 12:52 seg_video_3.m4s
-rw-rw-r-- 1 ... ...    990437 Oct 16 12:52 seg_video_4.m4s
-rw-rw-r-- 1 ... ...   1155734 Oct 16 12:52 seg_video_5.m4s
-rw-rw-r-- 1 ... ...   1249844 Oct 16 12:52 seg_video_6.m4s
-rw-rw-r-- 1 ... ...   1270836 Oct 16 12:52 seg_video_7.m4s
-rw-rw-r-- 1 ... ...   1074323 Oct 16 12:52 seg_video_8.m4s
-rw-rw-r-- 1 ... ...   1221184 Oct 16 12:52 seg_video_9.m4s
-rw-rw-r-- 1 ... ...       802 Oct 16 12:51 video_init.mp4



The problem is the location of the initialization segment indicated in the playlist. It is an absolute path ( live_content/mp4-hls/video/video_init.mp4)instead of the relative path (video/video_init.mp4) like for the rest of segments.

[...@localhost mp4-hls]$ cat video_playlist.m3u8
#EXTM3U
#EXT-X-VERSION:6
## Generated with https://github.com/google/shaka-packager version 31bf6da-release
#EXT-X-TARGETDURATION:6
#EXT-X-MAP:URI="live_content/mp4-hls/video/video_init.mp4"
#EXTINF:2.000,
video
/seg_video_1.m4s
#EXTINF:6.000,
video
/seg_video_2.m4s
#EXTINF:6.000,
video
/seg_video_3.m4s
#EXTINF:6.000,
video
/seg_video_4.m4s
...



I have tried several ways to provide the parameters, but I haven't found the solution yet.
Thanks.


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

KongQun Yang

unread,
Oct 16, 2017, 2:14:38 PM10/16/17
to MV, Shaka Packager Users
Sorry about that. It is a bug which was fixed last week: https://github.com/google/shaka-packager/commit/c87c4c2327374d875d33021e82ef1805b396c41a.

Can you try the latest commit?

-- KongQun Yang (KQ)



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

KongQun Yang

unread,
Oct 16, 2017, 6:37:17 PM10/16/17
to MV, Shaka Packager Users

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

MV

unread,
Nov 3, 2017, 10:58:48 AM11/3/17
to Shaka Packager Users
Hello,

I'm facing to a new problem. I'm trying to obtain live CMAF content in several qualities using Shaka packager library from TS content sent via UDP.

In my program, I initialize the parameters as follows:

    for (unsigned int n_v = 1; n_v <= num_video_qualities; n_v++){

        stream_descriptor
.input = "udp://0.0.0.0:" + std::to_string(port + 10*(n_v - 1)) + "?interface=159.23.209.11";
        stream_descriptor
.stream_selector = "video";

        dest_video
= dest_dir + "video_q" + std::to_string(n_v) + "/";

        mkdir
(dest_video.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);


        stream_descriptor
.output = dest_video + "video_q"  + std::to_string(n_v) + "_init.mp4";
        stream_descriptor
.segment_template = dest_video + "seg_q" + std::to_string(n_v) + "_$Number%04d$.m4s";
       
if(format == "hls")
            stream_descriptor
.hls_playlist_name = "playlist_q" + std::to_string(n_v) + ".m3u8";
   
}

Using port=21234 and 2 qualities, the Shaka's output is the following: (First I print the parameter values)


Template: [...]/mp4packager_MP4/video_q1/seg_q1_$Number%04d$.m4s
Playlist: playlist_q1.m3u8
Input: udp://0.0.0.0:21234?interface=159.23.209.11
Output: [...]/mp4packager_MP4/video_q1/video_q1_init.mp4

Template:  [...]/mp4packager_MP4/video_q2/seg_q2_$Number%04d$.m4s
Playlist: playlist_q2.m3u8
Input: udp://0.0.0.0:21244?interface=159.23.209.11
Output: [...]/mp4packager_MP4/video_q2/video_q2_init.mp4
[1103/155955:INFO:demuxer.cc(90)] Demuxer::Run() on file 'udp://0.0.0.0:21234?interface=159.23.209.11'.
[1103/155955:INFO:demuxer.cc(162)] Initialize Demuxer for file 'udp://0.0.0.0:21234?interface=159.23.209.11'.
[1103/155955:INFO:demuxer.cc(90)] Demuxer::Run() on file 'udp://0.0.0.0:21244?interface=159.23.209.11'.
[1103/155955:INFO:demuxer.cc(162)] Initialize Demuxer for file 'udp://0.0.0.0:21244?interface=159.23.209.11'.

[1103/160011:WARNING:h26x_byte_to_unit_stream_converter.cc(91)] Seeing varying NAL unit of type 7. You may need to set --strip_parameter_set_nalus=false during packaging to generate a playable stream.
[1103/160011:WARNING:es_parser_h264.cc(133)] H.264 decoder configuration has changed.
[1103/160011:WARNING:h26x_byte_to_unit_stream_converter.cc(91)] Seeing varying NAL unit of type 7. You may need to set --strip_parameter_set_nalus=false during packaging to generate a playable stream.


The generated content is shown below:

[... mp4packager_MP4]$ ls -la
total 16
drwxrwxr-x 4 ... ...  109 Nov  3 16:01 .
drwxrwxr-x 5
... ...   71 Nov  3 15:59 ..
-rw-rw-r-- 1
... ...  270 Nov  3 16:01 master_playlist.m3u8
-rw-rw-r-- 1
... ...  180 Nov  3 16:00 playlist_q1.m3u8
-rw-rw-r-- 1
... ... 1608 Nov  3 16:01 playlist_q2.m3u8
drwxrwxr-x 2
... ...   30 Nov  3 16:00 video_q1
drwxrwxr-x 2
... ... 4096 Nov  3 16:01 video_q2

[... mp4packager_MP4]$ ls -la video_q1/
total 4
drwxrwxr-x 2 ... ...  30 Nov  3 16:00 .
drwxrwxr-x 4
... ... 109 Nov  3 16:01 ..
-rw-rw-r-- 1
... ... 803 Nov  3 16:00 video_q1_init.mp4

[... mp4packager_MP4]$ ls -la video_q2/
total 9612
drwxrwxr-x 2 ... ...   4096 Nov  3 16:01 .
drwxrwxr-x 4
... ...    109 Nov  3 16:01 ..
-rw-rw-r-- 1
... ... 200329 Nov  3 16:00 seg_q2_0001.m4s
-rw-rw-r-- 1
... ... 460218 Nov  3 16:00 seg_q2_0002.m4s
-rw-rw-r-- 1 ... ...  92519 Nov  3 16:00 seg_q2_0003.m4s
-rw-rw-r-- 1 ... ... 156947 Nov  3 16:00 seg_q2_0004.m4s
-rw-rw-r-- 1 ... ... 423727 Nov  3 16:00 seg_q2_0005.m4s
-rw-rw-r-- 1 ... ...  61828 Nov  3 16:00 seg_q2_0006.m4s
-rw-rw-r-- 1 ... ... 176194 Nov  3 16:00 seg_q2_0007.m4s
-rw-rw-r-- 1 ... ... 176194 Nov  3 16:00 seg_q2_0008.m4s
-rw-rw-r-- 1 ... ...    803 Nov  3 16:00 video_q2_init.mp4

The problem is that all the segments (except the initialization segment) are stored in the folder of the second quality. That is, although the program is listening at the port of the first quality, the content generated is stored in the directory associated to the second quality. So each time two new segments are generated in the directory "video_q2", instead of, one of them at "video_q1" and the other one at "video_q2". I think it can be derivated from some problem with "segment_template".

This doesn't happen if I use the executable in the following way:
 ./packager 'in=udp://239.10.10.10:8011?interface=159.23.209.11,stream=video,init_segment=content_8011/video_8011_init.mp4,segment_template=content_8011/segm_8011_$Number$.m4s'  'in=udp://239.10.10.10:8021?interface=159.23.209.11,stream=video,init_segment=content_8021/video_8021_init.mp4,segment_template=content_8021/segm_8021_$Number$.m4s' --mpd_output manifest.mpd


Thanks in advance

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

KongQun Yang

unread,
Nov 3, 2017, 11:30:08 AM11/3/17
to MV, Shaka Packager Users
Hi,

That is weird. I saw some differences in the command line and library usage. Do you see problems if you convert your command line to an equivalent library change, i.e.

shaka::Packager packager;

// Setup packaging parameters.
shaka::PackagingParams packaging_params;
packaging_params.mpd_params.mpd_output = "manifest.mpd";


// Setup stream descriptors.
std::vector<shaka::StreamDescriptor> stream_descriptors;
shaka::StreamDescriptor stream_descriptor;

stream_descriptor.input = "udp://239.10.10.10:8011?interface=159.23.209.11";
stream_descriptor.stream_selector = "video";
stream_descriptor.output = "content_8011/video_8011_init.mp4";
stream_descriptor.segment_template = "content_8011/segm_8011_$Number$.m4s";
stream_descriptors.push_back(stream_descriptor);

stream_descriptor.input = "udp://239.10.10.10:8021?interface=159.23.209.11";
stream_descriptor.stream_selector = "video";
stream_descriptor.output = "content_8021/video_8021_init.mp4";
stream_descriptor.segment_template = "content_8021/segm_8021_$Number$.m4s";

stream_descriptors.push_back(stream_descriptor);

shaka::Status status = packager.Initialize(packaging_params,
                                           stream_descriptors);
if (!status.ok()) { ... }
status = packager.Run();



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

MV

unread,
Nov 3, 2017, 1:10:30 PM11/3/17
to Shaka Packager Users
Hi,

Thanks for your fast answer.
Yes, it is too weird.

Following your advise, I changed the code:
   
   
// First quality:
    stream_descriptor
.input = "udp://0.0.0.0:" + std::to_string(port); //+ "?interface=159.23.209.11";
    stream_descriptor
.stream_selector = "video";
   
    std
::string dest_video1 = dest_dir + "video_q1/";
    std
::cout << "dest_video1: " << dest_video1.c_str() << std::endl;
    mkdir
(dest_video1.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
   
    stream_descriptor
.output = dest_video1 + "init_q1.mp4";
    stream_descriptor
.segment_template = dest_video1 + "seg_q1_$Number%04d$.m4s";
   
   
if(format == "hls")
        stream_descriptor
.hls_playlist_name = "playlist_q1.m3u8";
    stream_descriptors
.push_back(stream_descriptor);
   
   
   
// Second quality:
    stream_descriptor
.input = "udp://0.0.0.0:" + std::to_string(port+100); //+ "?interface=159.23.209.11";
    stream_descriptor
.stream_selector = "video";
   
    std
::string dest_video2 = dest_dir + "video_q2/";
    std
::cout << "dest_video2: " << dest_video2.c_str() << std::endl;    
    mkdir
(dest_video2.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
   
    stream_descriptor
.output = dest_video2 + "init_q2.mp4";
    stream_descriptor
.segment_template = dest_video2 + "seg_q2_$Number%04d$.m4s";
   
if(format == "hls")
        stream_descriptor
.hls_playlist_name = "playlist_q2.m3u8";
    stream_descriptors
.push_back(stream_descriptor);
   

And the result is the same:

[... mp4packager_MP4]$ tree
.
├── master_playlist.m3u8
├── playlist_q1.m3u8
├── playlist_q2.m3u8
├── video_q1
│   └── init_q1.mp4
└── video_q2
   
├── init_q2.mp4
   
├── seg_q2_0001.m4s
   
├── seg_q2_0002.m4s
   
├── seg_q2_0003.m4s
   
├── seg_q2_0004.m4s
   
├── seg_q2_0005.m4s
   
├── seg_q2_0006.m4s
   
├── seg_q2_0007.m4s
   
├── seg_q2_0008.m4s
   
├── seg_q2_0009.m4s
   
├── seg_q2_0010.m4s
   
├── seg_q2_0011.m4s
   
├── seg_q2_0012.m4s
   
├── seg_q2_0013.m4s
   
├── seg_q2_0014.m4s
   
├── seg_q2_0015.m4s

I open two UDP datagram sockets  (port 21234 and 21334) where another program writes the TS content in two different qualities and these ports are specified as part of the input to Shaka in order to it reads from it.
And I see that different TS streams are written at their corresponding ports, but all Shaka output content (for both qualities) is stored at one of the directories.

I can't get to see what the problem is.

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/b55ae819-52bd-49a4-9e9d-81698bd743a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

KongQun Yang

unread,
Nov 3, 2017, 3:16:24 PM11/3/17
to MV, Shaka Packager Users
Hi,

Do you any reason behind "all Shaka output content (for both qualities) is stored at one of the directories."?

Another possibility is that somehow the code does not receive data from one of the ports.

I have some questions and also need your help to debug a few things:

1. Rebuilt library and add debug dumps to dump cumulative read size from UDP: https://github.com/google/shaka-packager/blob/master/packager/file/udp_file.cc#L72

do {
  result =
    recvfrom(socket_, reinterpret_cast<char*>(buffer), length, 0, NULL, 0);
} while ((result == -1) && (errno == EINTR));
static int64_t cumulative_size = 0;
if (result > 0) {
  cumulative_size += result;
  LOG(INFO) << "cumulative_size " << cumulative_size;
}

2. Do you know the speed of incoming streams? All at 1x?

3. Does it work if you change the code to package only one quality, either first quality or second quality?

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

MV

unread,
Nov 6, 2017, 5:52:39 AM11/6/17
to Shaka Packager Users
Hi,

I have rebuilt the library following your guidelines and the output traces are the following:

[vmarting@localhost MP4Packager]$ ./MP4Packager ../../config/tesera-devel.json
[2017-11-06 12:16:58.948] [mp4packager] [info] CBE configuration file: /home/vmarting/code/quality-based-encoding/Realtime/config/demo_ibc.json
[2017-11-06 12:16:58.948] [mp4packager] [debug] width: 480, height: 270, bitrate: 350
[2017-11-06 12:16:58.948] [mp4packager] [debug] width: 640, height: 360, bitrate: 750
[2017-11-06 12:16:58.948] [mp4packager] [debug] Number of layer configurations: 2
[2017-11-06 12:16:58.948] [mp4packager] [info] Succesfully loaded configuration json file
[2017-11-06 12:16:58.949] [mp4packager] [info] --- format: hls

[2017-11-06 12:16:58.949] [mp4packager] [info] --- num_video_qualities: 2
dest_video1
: /home/vmarting/innovation/vmg_public/content/mp4packager_MP4/video_q1/
dest_video2
: /home/vmarting/innovation/vmg_public/content/mp4packager_MP4/video_q2/
[2017-11-06 12:16:58.949] [mp4packager] [info] --- segment duration: 6
[2017-11-06 12:16:58.949] [mp4packager] [info] --- subsegment duration: 6


Template: /home/vmarting/innovation/vmg_public/content/mp4packager_MP4/video_q1/seg_q1_$Number%04d$.m4s
Playlist: playlist_q1.m3u8
Input: udp://0.0.0.0:21234
Output: /home/vmarting/innovation/vmg_public/content/mp4packager_MP4/video_q1/init_q1.mp4

Template: /home/vmarting/innovation/vmg_public/content/mp4packager_MP4/video_q2/seg_q2_$Number%04d$.m4s
Playlist: playlist_q2.m3u8
Input: udp://0.0.0.0:21334
Output: /home/vmarting/innovation/vmg_public/content/mp4packager_MP4/video_q2/init_q2.mp4
[1106/121658:INFO:demuxer.cc(90)] Demuxer::Run() on file 'udp://0.0.0.0:21234'.
[1106/121658:INFO:demuxer.cc(162)] Initialize Demuxer for file 'udp://0.0.0.0:21234'.
[1106/121658:INFO:demuxer.cc(90)] Demuxer::Run() on file 'udp://0.0.0.0:21334'.
[1106/121658:INFO:demuxer.cc(162)] Initialize Demuxer for file 'udp://0.0.0.0:21334'.
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 1000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 2000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 3000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 4000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 5000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 6000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 7000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 8000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 9000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 10000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 11000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 12000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 13000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 14000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 15000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 16000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 17000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 18000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 19000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 20000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 21000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 22000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 23000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 24000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 25000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 26000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 27000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 28000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 29000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 30000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 31000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 32000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 33000
[...]
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 299000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 300000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 301000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 302000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 303000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 304000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 305000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 306000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 307000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 308000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 309000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 310000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 311000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 312000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 313000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 314000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 315000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 316000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 317000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 318000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 319000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 320000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 321000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 322000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 323000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 324000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 325000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 326000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 327000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 328000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 329000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 330000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 331000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 332000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 333000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 334000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 335000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 336000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 337000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 338000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 339000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 340000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 341000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 342000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 343000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 344000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 345000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 346000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 347000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 348000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 349000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 350000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 351000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 352000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 353000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 354000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 355000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 356000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 357000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 358000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 359000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 360000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 361000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 362000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 363000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 364000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 365000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 366000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 367000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 368000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 369000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 370000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 371000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 372000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 373000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 374000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 375000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 376000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 377000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 378000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 379000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 380000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 381000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 382000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 383000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 384000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 385000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 386000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 387000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 388000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 389000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 390000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 391000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 392000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 393000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 394000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 395000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 396000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 397000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 398000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 399000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 400000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 401000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 402000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 403000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 404000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 405000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 406000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 407000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 408000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 409000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 410000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 411000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 412000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 413000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 414000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 415000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 416000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 417000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 418000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 419000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 420000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 421000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 422000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 423000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 424000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 425000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 426000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 427000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 428000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 429000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 430000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 431000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 432000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 433000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 434000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 435000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 436000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 437000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 438000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 439000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 440000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 441000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 442000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 443000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 444000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 445000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 446000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 447000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 448000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 449000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 450000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 451000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 452000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 453000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 454000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 455000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 456000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 457000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 458000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 459000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 460000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 461000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 462000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 463000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 464000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 465000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 466000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 467000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 468000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 469000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 470000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 471000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 472000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 473000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 474000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 475000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 476000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 477000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 478000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 479000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 480000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 481000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 482000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 483000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 484000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 485000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 486000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 487000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 488000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 489000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 490000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 491000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 492000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 493000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 494000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 495000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 496000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 497000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 498000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 499000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 500000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 501000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 502000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 503000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 504000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 505000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 506000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 507000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 508000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 509000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 510000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 511000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 512000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 513000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 514000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 515000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 516000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 517000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 518000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 519000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 520000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 521000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 522000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 523000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 524000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 525000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 526000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 527000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 528000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 529000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 530000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 531000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 532000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 533000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 534000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 535000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 536000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 537000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 538000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 539000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 540000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 541000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 542000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 543000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 544000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 545000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 546000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 547000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 548000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 549000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 550000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 551000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 552000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 553000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 554000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 555000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 556000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 557000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 558000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 559000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 560000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 561000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 562000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 563000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 564000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 565000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 566000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 567000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 568000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 569000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 570000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 571000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 572000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 573000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 574000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 575000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 576000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 577000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 578000
[...]
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 733000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 734000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 735000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 736000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 737000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 738000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 739000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 740000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 741000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 742000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 743000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 744000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 745000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 746000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 747000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 748000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 749000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 750000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 751000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 752000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 753000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 754000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 755000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 756000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 757000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 758000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 759000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 760000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 761000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 762000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 763000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 764000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 765000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 766000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 767000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 768000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 769000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 770000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 771000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 772000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 773000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 774000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 775000
[1106/121719:INFO:udp_file.cc(82)] cumulative_size 776000
[...]
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 980000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 981000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 982000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 983000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 984000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 985000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 986000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 987000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 988000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 989000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 990000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 991000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 992000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 993000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 994000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 995000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 996000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 997000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 998000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 999000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1000000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1001000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1002000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1003000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1004000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1005000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1006000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1007000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1008000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1009000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1010000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1011000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1012000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1013000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1014000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1015000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1016000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1017000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1018000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1019000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1020000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1021000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1022000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1023000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1024000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1025000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1026000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1027000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1028000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1029000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1030000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1031000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1032000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1033000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1034000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1035000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1036000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1037000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1038000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1039000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1040000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1041000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1042000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1043000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1044000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1045000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1046000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1047000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1048000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1049000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1050000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1051000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1052000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1053000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1054000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1055000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1056000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1057000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1058000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1059000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1060000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1061000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1062000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1063000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1064000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1065000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1066000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1067000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1068000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1069000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1070000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1071000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1072000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1073000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1074000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1075000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1076000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1077000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1078000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1079000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1080000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1081000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1082000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1083000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1084000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1085000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1086000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1087000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1088000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1089000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1090000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1091000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1092000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1093000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1094000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1095000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1096000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1097000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1098000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1099000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1100000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1101000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1102000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1103000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1104000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1105000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1106000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1107000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1108000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1109000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1110000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1111000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1112000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1113000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1114000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1115000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1116000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1117000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1118000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1119000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1120000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1121000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1122000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1123000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1124000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1125000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1126000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1127000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1128000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1129000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1130000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1131000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1132000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1133000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1134000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1135000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1136000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1137000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1138000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1139000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1140000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1141000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1142000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1143000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1144000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1145000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1146000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1147000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1148000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1149000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1150000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1151000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1152000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1153000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1154000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1155000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1156000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1157000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1158000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1159000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1160000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1161000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1162000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1163000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1164000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1165000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1166000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1167000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1168000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1169000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1170000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1171000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1172000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1173000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1174000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1175000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1176000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1177000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1178000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1179000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1180000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1181000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1182000
[1106/121725:WARNING:h26x_byte_to_unit_stream_converter.cc(91)] Seeing varying NAL unit of type 7. You may need to set --strip_parameter_set_nalus=false during packaging to generate a playable stream.
[1106/121725:WARNING:es_parser_h264.cc(133)] H.264 decoder configuration has changed.
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1183000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1184000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1185000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1186000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1187000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1188000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1189000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1190000
[...]
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1386000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1387000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1388000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1389000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1390000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1391000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1392000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1393000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1394000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1395000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1396000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1397000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1398000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1399000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1400000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1401000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1402000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1403000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1404000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1405000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1406000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1407000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1408000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1409000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1410000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1411000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1412000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1413000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1414000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1415000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1416000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1417000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1418000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1419000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1420000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1421000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1422000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1423000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1424000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1425000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1426000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1427000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1428000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1429000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1430000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1431000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1432000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1433000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1434000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1435000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1436000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1437000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1438000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1439000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1440000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1441000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1442000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1443000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1444000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1445000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1446000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1447000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1448000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1449000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1450000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1451000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1452000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1453000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1454000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1455000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1456000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1457000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1458000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1459000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1460000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1461000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1462000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1463000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1464000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1465000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1466000
[1106/121725:INFO:udp_file.cc(82)] cumulative_size 1466748
[1106/121725:WARNING:h26x_byte_to_unit_stream_converter.cc(91)] Seeing varying NAL unit of type 7. You may need to set --strip_parameter_set_nalus=false during packaging to generate a playable stream.
[1106/121725:WARNING:es_parser_h264.cc(133)] H.264 decoder configuration has changed.
[1106/121731:INFO:udp_file.cc(82)] cumulative_size 1467748
[1106/121731:INFO:udp_file.cc(82)] cumulative_size 1468748





[... mp4packager_MP4]$ tree
.
├── master_playlist.m3u8
├── playlist_q1.m3u8
├── playlist_q2.m3u8
├── video_q1
│   └── init_q1.mp4
└── video_q2
    ├── init_q2.mp4
    ├── seg_q2_0001.m4s
    ├── seg_q2_0002.m4s
    ├── seg_q2_0003.m4s
    ├── seg_q2_0004.m4s
    └── seg_q2_0005.m4s

Last Friday, it seemed that the content associated to all qualities were stored under the same directory, but today I'm seeing that one quality is segmented correctly and the other one doesn't received at the port (I don't know if the problem happens in the other side, that is, the content aren't being written at the port associated to the first quality or if Shaka isn't managing the listening of two different ports).

The other program is writing TransportStream segments with a duration of 6 seconds (like Shaka) at the socket. Below I include some traces where the times can be observed:

[11/06/17-12:17:49:170][tesera][7425][I] - +-+-+ segment: 480x270@350-Q3045-African-Fixed_segment_0005.ts   length:676424
----- writeToSocket => segment_name: 480x270@350-Q3045-African-Fixed_segment_0005.ts    -  innerNumSegment: 5
[11/06/17-12:17:49:172][tesera][7425][D] - Sending segment data to MP4Packager (port:21234, num_bytes:676424)

[11/06/17-12:17:49:173][tesera][7425][I] - +-+-+ segment: 640x360@750-Q3334-African-Fixed_segment_0005.ts   length:1010312
----- writeToSocket => segment_name: 640x360@750-Q3334-African-Fixed_segment_0005.ts    -  innerNumSegment: 5
[11/06/17-12:17:49:178][tesera][7425][D] - Sending segment data to MP4Packager (port:21334, num_bytes:1010312)

Therefore, a segment was sent completely at 11/06/17-12:17:49:172 by the port 21234, whereas the other segment was sent at  11/06/17-12:17:49:178 (6 milliseconds after) by the port 21334.

Thank you so much for your help. I really appreciate it.
 


With one quality, the problem doesn't occur.

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/2a4b7690-51ae-47c6-8d37-bb3e8926f775%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

KongQun Yang

unread,
Nov 6, 2017, 3:04:28 PM11/6/17
to MV, Shaka Packager Users
Hi,

It does look like it receives data from only one port. Let's print the
file_name to confirm:

do {
result =
recvfrom(socket_, reinterpret_cast<char*>(buffer), length, 0, NULL, 0);
} while ((result == -1) && (errno == EINTR));
static int64_t cumulative_size = 0;
if (result > 0) {
cumulative_size += result;
LOG(INFO) << *file_name() <<* ": cumulative_size " << cumulative_size;
}

Btw, do you have answer to my other questions:

2. Do you know the speed of incoming streams? All at 1x?

3. Does it work if you change the code to package only one quality, either
first quality or second quality?


-- KongQun Yang (KQ)

On Mon, Nov 6, 2017 at 2:52 AM, MV <v.martin....@gmail.com> wrote:

> Hi,
>
>>>>>>>>>>>> The first case is *using a MP4 input content*:
>>>>>>>>>>>> The second case is *using a TS input content*:
>>>>>>>>>>>>>> stream_descriptor.stream_selector = "video";
>>>>>>>>>>>>>> stream_descriptor.output = "~/shaka-results/video_$Number
>>>>>>>>>>>>>> $.ts";
>>>>>>>>>>>>>> stream_descriptor.segment_template = "video_$Number$.ts";
>>>>>>>>>>>>>> stream_descriptor.skip_encryption = true;
>>>>>>>>>>>>>> stream_descriptor.trick_play_factor = 0;
>>>>>>>>>>>>>> stream_descriptor.hls_playlist_name = "playlist.m3u8";
>>>>>>>>>>>>>> stream_descriptors.push_back(stream_descriptor);
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> shaka::Status status = packager.Initialize(packaging_
>>>>>>>>>>>>>> params, stream_descriptors);
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> if (!status.ok()){
>>>>>>>>>>>>>> std::cout << "Status is NOK" << std::endl;
>>>>>>>>>>>>>> return EXIT_FAILURE;
>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> status = packager.Run();
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> return EXIT_SUCCESS;
>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The compilation and linking of the library is successful, but
>>>>>>>>>>>>>> the status variable takes a no-OK value. I don't know what the correct
>>>>>>>>>>>>>> value is to initialize these parameters and above all, I don't know how to
>>>>>>>>>>>>>> configute the logging level to see the debug messages included in the code.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I appreciate any help.
>>>>>>>>>>>>>> Thanks.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>>>> Google Groups "Shaka Packager Users" group.
>>>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from
>>>>>>>>>>>>>> it, send an email to shaka-packager-users+unsubscri
>>>>>>>>>>>>>> b...@googlegroups.com.
>>>>>>>>>>>>>> To post to this group, send email to
>>>>>>>>>>>>>> shaka-pack...@googlegroups.com.
>>>>>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>>>>>> https://groups.google.com/d/msgid/shaka-packager-users/bf7f1
>>>>>>>>>>>>>> f02-a02f-4035-9649-a873cb041d51%40googlegroups.com
>>>>>>>>>>>>>> <https://groups.google.com/d/msgid/shaka-packager-users/bf7f1f02-a02f-4035-9649-a873cb041d51%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>>>>>>> .
>>>>>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>> Google Groups "Shaka Packager Users" group.
>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from
>>>>>>>>>>>> it, send an email to shaka-packager-users+unsubscri
>>>>>>>>>>>> b...@googlegroups.com.
>>>>>>>>>>>> To post to this group, send email to
>>>>>>>>>>>> shaka-pack...@googlegroups.com.
>>>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>>>> https://groups.google.com/d/msgid/shaka-packager-users/4636a
>>>>>>>>>>>> 88b-3553-4a38-bc92-2fed98f33960%40googlegroups.com
>>>>>>>>>>>> <https://groups.google.com/d/msgid/shaka-packager-users/4636a88b-3553-4a38-bc92-2fed98f33960%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>>>>> .
>>>>>>>>>>>>
>>>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>> Google Groups "Shaka Packager Users" group.
>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>>> send an email to shaka-packager-users+unsubscri
>>>>>>>>>> b...@googlegroups.com.
>>>>>>>>>> To post to this group, send email to
>>>>>>>>>> shaka-pack...@googlegroups.com.
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/shaka-packager-users/df390
>>>>>>>>>> 435-4195-4c3e-9fd8-6832f5303c84%40googlegroups.com
>>>>>>>>>> <https://groups.google.com/d/msgid/shaka-packager-users/df390435-4195-4c3e-9fd8-6832f5303c84%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>>> .
>>>>>>>>>>
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Shaka Packager Users" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to shaka-packager-u...@googlegroups.com.
>>>>>>>> To post to this group, send email to shaka-pack...@googlegroups.com
>>>>>>>> .
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/shaka-packager-users/b55ae
>>>>>>>> 819-52bd-49a4-9e9d-81698bd743a5%40googlegroups.com
>>>>>>>> <https://groups.google.com/d/msgid/shaka-packager-users/b55ae819-52bd-49a4-9e9d-81698bd743a5%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Shaka Packager Users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to shaka-packager-u...@googlegroups.com.
>>>>> To post to this group, send email to shaka-pack...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/shaka-packager-users/2a4b7
>>>>> 690-51ae-47c6-8d37-bb3e8926f775%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/shaka-packager-users/2a4b7690-51ae-47c6-8d37-bb3e8926f775%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Shaka Packager Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to shaka-packager-u...@googlegroups.com.
>>> To post to this group, send email to shaka-pack...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/shaka-packager-users/1d6556c0-4815-48d3-b930-0f0e4d60ea2
>>> c%40googlegroups.com
>>> <https://groups.google.com/d/msgid/shaka-packager-users/1d6556c0-4815-48d3-b930-0f0e4d60ea2c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Shaka Packager Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to shaka-packager-u...@googlegroups.com.
> To post to this group, send email to shaka-pack...@googlegroups.com
> .
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/shaka-packager-users/fce64080-4ad5-4649-90a1-
> f42e78036127%40googlegroups.com
> <https://groups.google.com/d/msgid/shaka-packager-users/fce64080-4ad5-4649-90a1-f42e78036127%40googlegroups.com?utm_medium=email&utm_source=footer>
> .

MV

unread,
Nov 7, 2017, 2:28:40 PM11/7/17
to Shaka Packager Users
Hi,

I have found the error. Although at the beginning I was binding the socket at "n" different ports to write the "n" different streams and Shaka will listen at these ports, however I was always passing the structure that describes the IP socket address (sockaddr_in) with the last port to the function "sendto".

I'm so sorry, it was my fault completely. Thanks for your time.


On Monday, November 6, 2017 at 9:04:28 PM UTC+1, KongQun Yang wrote:
Hi,

> [...

KongQun Yang

unread,
Nov 7, 2017, 2:38:57 PM11/7/17
to MV, Shaka Packager Users
Cool. Glad that you figured out the problem.

-- KongQun Yang (KQ)

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/6f0e9607-8548-42fb-b0d5-ccc4135ba653%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages