[FFmpeg-user] MPEG TS+PS parser

Mark Filipak (ffmpeg) markfilipak at bog.us
Sat Oct 17 09:54:32 EEST 2020


On 10/16/2020 10:14 PM, Carl Zwanzig wrote:
> On 10/15/2020 1:44 AM, Mark Filipak (ffmpeg) wrote:
>> Got any suggestions how I should proceed?
> 
> I hate to say this, but you're rather reinventing the wheel (and building it out of toothpicks).

You're absolutely right, Carl.

> There are a fair number of mpeg-ts parsers already out there in a variety of languages ...

Really? Do you mean VOBEdit? All that I've seen are formatted as pretty pictures and all that I've 
seen have errors. I want a plain text format but I can't paste it here because it's too wide for email.

>... and the kind 
> of structure you've used is going to be slow and resource-intensive. If nothing else, if you're 
> using the bash shell use a case statement to separate out the translations (instead of passing 
> everything through one HUGE pipeline).
> 
> (This is not a task for pattern substitution.)

Oh, I know that. I just wanted to get started. Looking at the output (such as it is), I could see 
cases where, for example, bogus start_codes (\x00 00 01) are inside private streams (and elsewhere).

I used SNOBOL about 35 years ago to quickly write very powerful parsers. I'm looking at Unicon now.

-- 
Pandemic perspective, 17 October 2020 - early in the pandemic:
Yesterday, China: 24 new cases, S.Korea: 47, U.S.: 71,687.
Today, U.S.: 4% of world population, 21% of cases, 20% of deaths.
Today, U.S. dead, pandemic (8 mo): 223,644, WWII (4 yrs): 419,000.
Today, U.S.: Of 5,619,045 resolved cases, 96% lived, 4% died.
22 Jan: U.S. & S.Korea reported 1st cases on the same day.
6 Mar, S.Korea: 140,000 total tests; results in 4 hours.
6 Mar, U.S.: 2000 total tests; results in 1 to 2 weeks.
May: for the first time, U.S. care-homes are required to report.
1 Jun, S.Korea: 0 total care-home deaths, U.S.: 33,000 +/- 7,000.
5 Aug: U.S. tests still only 1/4 of number needed; 4 day results.
1 Sep: Over 60% of U.S. nurses report lack of protective equipment.
18 Sep: U.S. doctors & nurses still acutely lack PPE; 1200 dead.
?? 2021: U.S. gains herd immunity, 10 million dead, civil conflict.


More information about the ffmpeg-user mailing list