Live packaging fails with Multicast source

616 views
Skip to first unread message

ABHEESH S

unread,
May 31, 2017, 6:54:05 PM5/31/17
to Shaka Packager Users
I am trying to package live from multicast source.

packager \
 
'input=udp://239.215.1.18:7001,stream=audio,init_segment=bravo-live-audio.mp4,segment_template=bravo-live-audio-$Number$.mp4,bandwidth=130000' \
 
'input=udp://239.215.1.18:7001,stream=video,init_segment=bravo-live-video-sd.mp4,segment_template=bravo-live-video-sd-$Number$.mp4,bandwidth=2000000' \
 
'input=udp://239.215.1.18:7001,stream=video,init_segment=bravo-live-video-hd.mp4,segment_template=bravo-live-video-hd-$Number$.mp4,bandwidth=5000000' \
 
--mpd_output bravo_live.mpd

Throws the following:

WARNING: availability_time_offset is deprecated and ignored.
[0531/225342:ERROR:packager_main.cc(414)] Failed to setup graph: 18 (ALREADY_EXISTS): The handler at the specified index already exists.


KongQun Yang

unread,
May 31, 2017, 7:05:55 PM5/31/17
to ABHEESH S, Shaka Packager Users
Hi Abheesh,

I saw duplicated entries for "input=udp://239.215.1.18:7001,stream=video", which is not allowed. 

Note that Shaka Packager does not do transcoding, so you cannot output both SD and HD from a single input stream. If you want to generate multi-bitrate DASH streams, they should already be available in the source streams. A common valid usage scenario for a multicast source would be

(1) Having transcoders generating multi-bitrate source, e.g. SD in udp://239.215.1.18:7001 and HD in udp://239.215.1.18:7002

(2) You can then use Shaka Packager to package multi-bitrate DASH streams:

packager \
  
'input=udp://239.215.1.18:7001,stream=audio,init_segment=bravo-live-audio.mp4,segment_template=bravo-live-audio-$Number$.mp4,bandwidth=130000' \
  
'input=udp://239.215.1.18:7001,stream=video,init_segment=bravo-live-video-sd.mp4,segment_template=bravo-live-video-sd-$Number$.mp4,bandwidth=2000000' \

  
'input=udp://239.215.1.18:7002,stream=video,init_segment=bravo-live-video-hd.mp4,segment_template=bravo-live-video-hd-$Number$.mp4,bandwidth=5000000' \
  
--mpd_output bravo_live.mpd

-- 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/60363b7a-2592-4640-9cd4-ce56b85cae2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ABHEESH S

unread,
May 31, 2017, 7:31:15 PM5/31/17
to Shaka Packager Users, abhe...@gmail.com
Thank you. This fixed the error.

-- KongQun Yang (KQ)

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

ABHEESH S

unread,
May 31, 2017, 7:43:33 PM5/31/17
to Shaka Packager Users, abhe...@gmail.com
Now I am getting a different error.

[0531/174210:WARNING:mp2t_media_parser.cc(321)] Ignore unsupported stream type 0x86
[0531/174210:WARNING:mp2t_media_parser.cc(321)] Ignore unsupported stream type 0x86
[0531/174210:WARNING:mp2t_media_parser.cc(321)] Ignore unsupported stream type 0x86
[0531/174210:WARNING:mp2t_media_parser.cc(321)] Ignore unsupported stream type 0x86
[0531/174210:ERROR:demuxer.cc(302)] Failed to process sample 512 5 (FILE_FAILURE): Cannot open file for write bravo-live-audio-1.mp4
[0531/174210:WARNING:mp2t_media_parser.cc(321)] Ignore unsupported stream type 0x86
[0531/174211:ERROR:demuxer.cc(302)] Failed to process sample 256 5 (FILE_FAILURE): Cannot open file for write bravo-live-video-hd-1.mp4
[0531/174211:ERROR:packager_main.cc(549)] Packaging Error: 8 (PARSER_FAILURE): Cannot parse media file udp://239.215.1.18:7001?interface=172.22.71.131

KongQun Yang

unread,
May 31, 2017, 7:58:26 PM5/31/17
to ABHEESH S, Shaka Packager Users
Looks like Shaka Packager is not able to open the file for writing. Is your disc or directory writable?


-- 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+unsub...@googlegroups.com.

ABHEESH S

unread,
May 31, 2017, 8:21:45 PM5/31/17
to Shaka Packager Users, abhe...@gmail.com
Thanks a lot. It was a permission issue. I am able to package live now!

-- 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.
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/60363b7a-2592-4640-9cd4-ce56b85cae2f%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.

ABHEESH S

unread,
Jun 1, 2017, 2:02:07 PM6/1/17
to Shaka Packager Users, abhe...@gmail.com
Is there a way to use multiple processors for packaging? The live playback stops after some seconds. Even with the lowest bitrate only.

KongQun Yang

unread,
Jun 1, 2017, 2:12:45 PM6/1/17
to ABHEESH S, Shaka Packager Users
Packaging shouldn't be the bottleneck. It does not use much CPU; also, it should already take advantages of the multiple processors if there are.

Can you share a little more detail of your setup? For example, what packaging command line are you using, in particular, segment size, the value of suggested presentation delay etc? Are you playing the streams locally or are the contents synced to a remote web server (if that is the case, how do you perform the syncing)? And which player and which version are you using?


-- 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-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/df55863b-a11b-4289-84bf-19ec21b25975%40googlegroups.com.

ABHEESH S

unread,
Jun 1, 2017, 2:19:40 PM6/1/17
to Shaka Packager Users, abhe...@gmail.com
packager \
  --enable_widevine_encryption \
  --content_id "3031323334353637" \
  --signer "widevine_test" \
  --aes_signing_key "1ae8ccd0e7985cc0b6203a55855a1034afc252980e970ca90e5202689f947ab9" \
  --aes_signing_iv "d58ce954203b7c9a9a9d467f59839249" \
  --mpd_output bravo_live_wv.mpd

Local file system. Playing using Shaka Player latest version.

-- 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,
Jun 1, 2017, 5:36:48 PM6/1/17
to ABHEESH S, Shaka Packager Users
Do you know the GOP size of input video stream, or are you able to adjust the GOP size?

-- 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,
Jun 1, 2017, 5:38:45 PM6/1/17
to ABHEESH S, Shaka Packager Users
Also, does the player resume after waiting for some time?

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

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

ABHEESH S

unread,
Jun 1, 2017, 5:48:42 PM6/1/17
to Shaka Packager Users, abhe...@gmail.com
GOP size is 1 sec, I cannot change it. Video doesn't resume.

I see this error on packager :

Enter code here...[0601/154424:WARNING:mpd_builder.cc(231)] Video info does not contain frame duration required for calculating framerate. @frameRate is required for DASH IOP.




-- 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,
Jun 1, 2017, 6:14:37 PM6/1/17
to ABHEESH S, Shaka Packager Users
Emm... It is surprising to see the "Video doesn't resume".

Can you share the generated outputs (media files and the manifest) when playback stops and after 1 minute? 

You can email it to shaka-pack...@google.com if you don't want to share them publicly.


-- KongQun Yang (KQ)

On Thu, Jun 1, 2017 at 2:48 PM, ABHEESH S <abhe...@gmail.com> wrote:
GOP size is 1 sec, I cannot change it. Video doesn't resume.

I see this error on packager :

Enter code here...[0601/154424:WARNING:mpd_builder.cc(231)] Video info does not contain frame duration required for calculating framerate. @frameRate is required for DASH IOP.


It is a warning message which can be ignored. 

-- 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.

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-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/c50b4910-8925-44f0-b67c-0aeb6ce5d579%40googlegroups.com.

ABHEESH S

unread,
Jun 1, 2017, 6:34:28 PM6/1/17
to Shaka Packager Users, abhe...@gmail.com
I have sent the files.


On Thursday, June 1, 2017 at 4:14:37 PM UTC-6, KongQun Yang wrote:
Emm... It is surprising to see the "Video doesn't resume".

Can you share the generated outputs (media files and the manifest) when playback stops and after 1 minute? 

You can email it to shaka-packager-issues@google.com if you don't want to share them publicly.


-- 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.

--
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.

KongQun Yang

unread,
Jun 2, 2017, 2:10:39 PM6/2/17
to ABHEESH S, Shaka Packager Users
Thanks for the files.

From the media timeline, we saw a few very big gaps.

<SegmentTimeline>
  <S t="4425556308" d="720720"/>
  <S t="4426277028" d="900900" r="2"/>
  <S t="4428979728" d="3333330"/>                 --   About 27 seconds gap here
  <S t="4432313058" d="270270"/>
  <S t="4432583328" d="900900" r="1"/>
  <S t="4434385128" d="9369360"/>                 --   About 94 seconds gap here
  <S t="4443754488" d="540540"/>
  <S t="4444295028" d="900900" r="1"/>
</SegmentTimeline>

Can you check if the gap exists in the source? You may use VLC or FFmpeg to check the timestamps.



-- 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.

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-packager-users@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-packager-users@googlegroups.com.

ABHEESH S

unread,
Jun 2, 2017, 5:11:14 PM6/2/17
to Shaka Packager Users, abhe...@gmail.com
The feed is an actual live feed from source, no gaps.

I see this error:

[0602/151018:WARNING:mpd_builder.cc(1302)] Found a gap of size 2394240 > kRoundingErrorGrace (5). The new segment starts at 3193593214 but the previous segment ends at 3191198974.


On Friday, June 2, 2017 at 12:10:39 PM UTC-6, KongQun Yang wrote:
Thanks for the files.

From the media timeline, we saw a few very big gaps.

<SegmentTimeline>
  <S t="4425556308" d="720720"/>
  <S t="4426277028" d="900900" r="2"/>
  <S t="4428979728" d="3333330"/>                 --   About 27 seconds gap here
  <S t="4432313058" d="270270"/>
  <S t="4432583328" d="900900" r="1"/>
  <S t="4434385128" d="9369360"/>                 --   About 94 seconds gap here
  <S t="4443754488" d="540540"/>
  <S t="4444295028" d="900900" r="1"/>
</SegmentTimeline>

Can you check if the gap exists in the source? You may use VLC or FFmpeg to check the timestamps.



-- KongQun Yang (KQ)

On Thu, Jun 1, 2017 at 3:34 PM, ABHEESH S <abhe...@gmail.com> wrote:
I have sent the files.


On Thursday, June 1, 2017 at 4:14:37 PM UTC-6, KongQun Yang wrote:
Emm... It is surprising to see the "Video doesn't resume".

Can you share the generated outputs (media files and the manifest) when playback stops and after 1 minute? 

You can email it to shaka-pack...@google.com if you don't want to share them publicly.


-- 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.

--
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.

ABHEESH S

unread,
Jun 2, 2017, 6:16:18 PM6/2/17
to Shaka Packager Users, abhe...@gmail.com
Sorry, my bad. The incoming feed has some issues. Will get back to you.

Thanks for the help.

ABHEESH S

unread,
Jun 2, 2017, 7:31:26 PM6/2/17
to Shaka Packager Users, abhe...@gmail.com
It works, thanks a lot.
Reply all
Reply to author
Forward
0 new messages