Better HN
topnewbestaskshowjobs
Log inSign up

_Gyan_

642 karma · joined Sep 2, 2018 (8y ago) · 86 submissions

https://www.gyan.dev
Submissions

1.

FFmpeg 5.0(github.com ↗)

124 points · by gyan · 4y ago · 29 comments

comment 4y ago · link · parent

libav is a part of FFmpeg, and the heart of it. But FFmpeg isn't just a skeleton. Most decoders + protocols + demuxers / muxsers + filters + scaler + resampler are native components.

The most well-known 3rd party libs provide a few (albeit commonly used) video encoders. Of course, having interfaces for these external libs is what allows media operations to be consolidated into a single process workflow. As standalone tools, x264/x265 would be more cumbersome to integrate into a pipeline.

comment 4y ago · link · parent

API/ABI is meant to be preserved within a major version, but not across. The deprecation period is typically two years, but deletion is usually much later.

Do you have examples to the contrary from the past few years?

comment 4y ago · link · parent

For a few years, the default aac coder has been fast. But the twoloop coder is better but slower, and was made default in May 2021. Add `-aac_coder twoloop` (in older builds) and recheck.

comment 5y ago · link · parent

With ffmpeg, use the below command to calculate maximum timestamps

    ffmpeg -i INPUT -map 0:v -map 0:a -enc_time_base -1 -c copy -f null -
Note the time= value at the end of the process.

comment 5y ago · link · parent

> You already provided better lines for some of the options than what their docs state

I wrote the docs section you refer to :)

They are meant to be narrow and to the point, not didactic, not least because the codepath leading up to an option and following that option depend on internal evaluations and other options.

> why would anyone want to do that?

Because the input has weird or unreliable DTS. One would have to check code history to see why an option was initially added. Many of ffmpeg options are there to deal with edge cases or weird inputs.

> -fflags +genpts+igndts -use_wallclock_as_timestamps 1

In theory, igndts is unsetting wallclock dts set by the last option. genpts should have no effect, again due to the third option.

comment 5y ago · link · parent

Think of ffmpeg as a universal translator. There are 100s of languages in use around the world, with their own syntax, vocabulary, writing system, formal and informal conventions ..etc.

A universal translator framework cannot provide a bespoke translation engine for all possible permutations of source and target language. Instead it provides a common engine which is meant to be suitable enough for the most common traits shared across languages.

When converting any two languages at random, there will be quirks of the language or errors/ambiguity in the source prose which the engine cannot hope to all automatically recognize and accommodate, so there are all these options that do one specific thing and allow users to modify a step of the translation process. The docs cannot go in detail because the downstream ramifications of the option can vary based on the exact properties of the source-target pair and the transformations requested of ffmpeg. Instead the docs will describe the exact change directly triggered by the option.

----

As for the specific options,

* -fflags +genpts, +igndts, +ignidx

All of these apply to inputs only.

genpts: if input packets have missing presentation timestamps, this option will assign the decoding timestamp as PTS, if present.

igndts will unset dts if packet's pts is set.

ignidx is only applied to a few formats. These provide a keyframe index, which ffmpeg uses to populate its internal KF index for the stream. This option makes ffmpeg ignore the supplied index.

* -vsync

The option is misnamed. It's better called fpsmode. Most commonly used to drop or duplicate frames to achieve a constant framerate stream.

* -copyts

FFmpeg will, by default, remove any starting offset to input timestamps or adjust timestamps if they overflow (roll over) or have a large gap. copyts stops all that and relays input timestamps. Basically used if one wishes to manually examine and adjust timestamps using setpts filter or setts bitstream filter.

* -use_wallclock_as_timestamps 1

Discards input timestamps and assign system clock time at time of handling packet as its pts.

comment 5y ago · link · parent

For `-f h264`, `-bsf:v h264_mp4toannexb` is not needed. It will be automatically inserted as needed, with ffmpeg 4.0 or later.

For latency, specify a short GOP size, e.g. `-g 50`

comment 5y ago · link · parent

> literally the only difference is the contents of the "ftyp" box, every other byte is identical.

Not quite. There are some boxes acceptable in one but not the other. Strings inside MOOV are length-prefixed in MOV but null-terminated in ISOBMFF. There are a variety of differences like that.

The set of codecs allowed, also differs between the two.

comment 5y ago · link · parent

Except for many primate cities: https://en.wikipedia.org/wiki/Primate_city#List

comment 5y ago · link · parent

Don't think that's the main reason. Hollywood has no compunction or lack of skill to embellish or dramatize a mundane life if they need to.

I suspect Bach's place at the top is received rather than recognized, which is not to say he doesn't deserve it. His skill lays in counterpoint and other facets of harmony. His music has structural elegance and ornamental beauty, not the full orchestral rabble rousing of Beethoven or delicate pianism of Chopin. Not exactly directly translatable to a poster or trailer.

comment 5y ago · link · parent

See a video with similar setup of a rocket launch constructed out of a timelapse photo sequence: https://www.youtube.com/watch?v=aJy1u-N3NY0

comment 5y ago · link · parent

A profitable strategy only if it attracts a lot more prey than predators.

comment 5y ago · link · parent

The intro of the actual paper* is ambivalent, rather than what the post title asserts.

"We critically examine relevant findings and argue that there is no clear evidence for detrimental lasting effects of digital technology on cognitive abilities."

*https://www.nature.com/articles/s41562-021-01162-0

comment 5y ago · link · parent

It's a shame that Graeme Garden and Barry Cryer appear to have retired.

16.

Top 100 3D Renders from the Internet's Largest CG Challenge(youtube.com ↗)

1 points · by _Gyan_ · 5y ago · discuss

17.

Human Cell Atlas(humancellatlas.org ↗)

2 points · by _Gyan_ · 5y ago · discuss

comment 5y ago · link · parent

FFmpeg already has registered channels there. Will update website within a day.

comment 5y ago · link · parent

It hasn't, since ffmpeg's inception. It's very unlikely - it would require that ffmpeg verify codec compatibility with the output muxer. Not all muxers have registered a codec tags list , so that can't happen.

comment 5y ago · link · parent

It's not the first tracks. Read http://ffmpeg.org/ffmpeg.html#Stream-selection

comment 5y ago · link · parent

The first one will re-encode.

comment 5y ago · link · parent

There have been 2000 fixes related to fuzzer issues so far, averaging 400 fixes in recent years. Almost all of them are taken care of by Michael.

comment 5y ago · link · parent

I don't see FFmpeg on there.

See https://link.springer.com/article/10.1007/s11214-020-00765-9

"The core EDL data processing and compression engine is powered by FFMPEG (ffmpeg.org)."

24.

FFmpeg 4.4(ffmpeg.org ↗)

365 points · by gyan · 5y ago · 130 comments

comment 5y ago · link · parent

The primary endpoint is symptomatic infection, not any infection per se. And it's a bit of a kludge, as all the Phase III protocols I've read define symptomatic infection as X no. of symptoms for Y+ no. of days i.e. there are people with fewer symptoms who aren't counted (or even tested to check for infection).

The efficacy is the 1-relative risk of the primary endpoint.

26.

AV Artifact Atlas: errors and anomalies in video(avartifactatlas.com ↗)

32 points · by _Gyan_ · 5y ago · discuss

comment 5y ago · link · parent

Did you see https://doublecmd.sourceforge.io/gallery/?

comment 5y ago · link · parent

Can anyone who's used both, compare it with Directory Opus?

comment 5y ago · link · parent

UK schools were open most of the autumn/fall term. They have been closed since mid-December and reopened earlier this month.

https://en.wikipedia.org/wiki/Impact_of_the_COVID-19_pandemi...

123