Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect both raw and BDAV versions of MPEG-2 Transport Streams #497

Merged
merged 1 commit into from Oct 5, 2021
Merged

Detect both raw and BDAV versions of MPEG-2 Transport Streams #497

merged 1 commit into from Oct 5, 2021

Conversation

pasieronen
Copy link
Contributor

MPEG-2 Transport Stream specification (Section 2.3 and Annex T):
https://www.itu.int/rec/dologin_pub.asp?lang=f&id=T-REC-H.222.0-201703-S!!PDF-E&type=items

Blu-ray Disc Audio-Video (BDAV) MPEG-2 Transport Stream (Section 3.1):
http://www.blu-raydisc.com/Assets/downloadablefile/2b_bdrom_audiovisualapplication_0305-12955-15269.pdf

The "raw" fixture file was generated from the existing BDAV fixture with this command (-mpegts_m2ts_mode 0 is the relevant part):

ffmpeg -i fixture-bdav.mts -f mpegts -vcodec copy -acodec copy -mpegts_m2ts_mode 0 -t 1 fixture-raw.mts 

Copy link
Collaborator

@Borewit Borewit left a comment

Choose a reason for hiding this comment

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

Looks good to me

@sindresorhus sindresorhus merged commit 4ce6838 into sindresorhus:main Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants