Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Add a page to help debug the transmuxing process #27

Merged
merged 11 commits into from
Mar 11, 2014
Merged

Conversation

dmlap
Copy link
Member

@dmlap dmlap commented Mar 10, 2014

Create a test page that makes it slightly easier to look at the generated FLV tags from the segment parser.

Fix a parsing issue with NAL units ending and IDRs. Fix an issue where negative PTS values at the MP2T level would result in PTS and DTS values of zero on all FLV tags.

dmlap added 10 commits March 2, 2014 16:31
When debugging transmux issues, it can be handy to be able to easily compare the result of the javascript segment parser with the working output from a tool like ffmpeg. Put together a test page to display the hex dump of segment-parser output side-by-side with a working example. Fixed the hex dump utility to produce more than one line of output per tag.
Add rules to exclude the muxing utility page from jshint and qunit.
Avoid using one-letter variable names, especially in relatively complex functions.
Get rid of a commented console.assert that had been replaced by a runtime conditional anyways.
Make sure that a reasonable sequence parameter set can be decoded.
The original algorithm was incorrectly including the nal_unit_type in the returned RBSP when there were no emulation bytes to filter. This version is slower because it examines every byte individually but it's simpler to understand. Add a test case for H264 stream parsing that demonstrates the issue.
List the type and size of each tag of the input FLVs on the muxing helper page.
Remove an extra semi-colon and refrence videojs through window.
Overwrite setNextTimeStamp after the first invocation, capturing the first PTS value. Write all FLV PTS and DTS values as offsets from that.
Don't append to the tag info pane. Overwrite the innerHTML whenever one of the files change.
@@ -1,5 +1,12 @@
(function(window) {

if (!window.videojs) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just

window.videojs = window.videojs || {};
window.videojs.hls = window.videojs.hls || {};

Instead of using a conditional, use logical or when determining if videojs.hls should be stubbed out or not.
dmlap added a commit that referenced this pull request Mar 11, 2014
Add a page to help debug the transmuxing process
@dmlap dmlap merged commit b2716ec into master Mar 11, 2014
@dmlap dmlap deleted the feature/mux-helper branch March 11, 2014 23:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants