Comments (8)
It is normally caused by either 1) a gap in the original stream or 2) packager is not fast enough to keep up with the stream, due to slow machine or slow input/output media.
Can you describe your setup in detail? It can help troubleshooting.
from shaka-packager.
I'm using VLC to transcode a Live input stream into a HLS valid stream output. I transcode it into H264/AAC for iOS HLS native playback. After the transcoding stub I place two destination stubs.
duplicate{dst=std{acces=httplive..},dst=std{access=udp,mux=ts,dst=239.192.1.1:1234}}
The packager then complains about the 239.192.1.1:1234 stating that there are gaps between segments.
The machine has a core i3 and is transcoding only one stream. Around 25% of CPU. The HLS stream output from VLC is flawless. I assume the UDP is too. VLC is by far the best TS muxer I've seen so far. Every hardware decoder does not complain when I use it.
I can save the UDP TS output for a sample just for debug purposes.
from shaka-packager.
Are vlc and packager running on the same machine? I am suspecting the cpu is not powerful enough and vlc/packager may compete for resources. Run them on different machines could help.
As for player, you could try shaka player: http://shaka-player-demo.appspot.com/ (https://github.com/google/shaka-player), which should be able to tolerate small gaps.
from shaka-packager.
I have 70% of idle cpu. There are plenty of resources I can assure you.
Packager creates all the segments, but even shaka player stops and keeps downloading segment -2 repeatedly. A very different experience from the HLS system I have running at the moment.
from shaka-packager.
I've sampled a TS from a live feed. It might help troubleshoot.
https://dl.dropboxusercontent.com/u/63418458/hls/livestream2.ts
from shaka-packager.
I don't see problems in the above ts.
Several questions:
-
Are all the gaps the size of 685? Does it happen once for every segment?
-
What is the full vlc and packager command parameters you are using?
-
Have you tried running vlc and packager on different machines? How does it go?
-
Can you post the logs and the generated mpd (it would be great if you can put the generated media files in an accessible location too)? A small gap of 685 should not cause playback problem.
-
Are you using latest packager code?
from shaka-packager.
I did find one small thing that seems to have triggered my playback problems.
I was using the original 5Mb bandwidth. I downsized it to around the same bandwidth of the original stream and its working.
This is working:
edash/src/out/Debug/packager
'input=udp://239.192.232.71:1234,stream=audio,init_segment=live-audio.mp4,segment_template=live-audio-$Number$.mp4,bandwidth=130000'
'input=udp://239.192.232.71:1234,stream=video,init_segment=live-video-sd.mp4,segment_template=live-video-sd-$Number$.mp4,bandwidth=2000000'
--profile live
--segment_duration 10
--mpd_output live.mpd
Gap size still occurs, but playback is flawless at the moment.
from shaka-packager.
Interesting. Perhaps what may have been happening is that the stream had a
lot of padding, which when removed by the packager, created gaps?
Glad to hear it's working for you now.
On Fri, Jun 12, 2015 at 10:54 AM, Nuno Mota [email protected]
wrote:
I did find one small thing that seems to have triggered my playback
problems.I was using the original 5Mb bandwidth. I downsized it to around the same
bandwidth of the original stream and its working.This is working:
edash/src/out/Debug/packager
'input=udp://239.192.232.71:1234,stream=audio,init_segment=live-audio.mp4,segment_template=live-audio-$Number$.mp4,bandwidth=130000'
'input=udp://239.192.232.71:1234,stream=video,init_segment=live-video-sd.mp4,segment_template=live-video-sd-$Number$.mp4,bandwidth=2000000'
--profile live
--segment_duration 10
--mpd_output live.mpdGap size still occurs, but playback is flawless at the moment.
—
Reply to this email directly or view it on GitHub
#18 (comment)
.
Thomás Inskip | Software Engineer | [email protected] | +1 650 241 9697
from shaka-packager.
Related Issues (20)
- Unable to run executable via NPM module on Apple Silicon (even with Rosetta 2 enabled) HOT 1
- ShakaPackager v3 doesn't generate <BaseURL> in MPEG-DASH manifest so that ShakaPlayer cannot play video completely.
- demux error HOT 2
- Packager fails to copy tmp files into place once its done when using a container volume + sshfs mount HOT 8
- Error building shaka packager in windows 10 HOT 2
- NALU length exceeds stream size HOT 2
- error: generic:18 Failed to write playlist HOT 3
- Shaka packager design in document HOT 3
- `ninja -C build pssh-box.py` not working HOT 5
- Packager Adaptation Set Switching values point to representation IDs instead of Adaptation Set IDs. HOT 1
- Error when using long path in input/output (Windows) HOT 4
- Shaka-packager's subtitle output and timing is broken for real-time flows when the input has "gaps/periods" without subtitle streams. HOT 3
- Packager Adaptation Set Switching doesn't work with forced command-line ordering HOT 1
- [DASH] Add content steering support.
- audioSamplingRate in representation is "0" for high sample rates HOT 2
- helpxml removed? HOT 1
- Macro DISALLOW_COPY_AND_ASSIGN include/file.h HOT 5
- For Packaging webm to mpd i am getting (MUXER_FAILURE): Error adding sample to segment: Cluster::AddFrame failed
- Packager doesn't work with macOS Big Sur 11.6 HOT 3
- Local/ Downloaded encrypted videos using Shaka Packager doesn't work on iOS.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shaka-packager.