-
Use the
h264_mp4toannexbbitstream filter to convert the mp4s (video steam only) into the AnnexB bitstream formatffmpeg -i input1.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part1.ts # repeat for up to inputN -
Concat the files using cat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # based on https://launchpadlibrarian.net/94884626/testUtcToDst.patch | |
| # from https://bugs.launchpad.net/dateutil/+bug/944123 | |
| import unittest | |
| from datetime import datetime, timedelta | |
| import dateutil.tz | |
| import dateutil.zoneinfo | |
| import pytz | |
| tzname = "America/Toronto" |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
NewerOlder