Live data from Hacker News

FFmpeg 6.0

ffmpeg.org

111–120 of 210 posts

Re: FFmpeg 6.0

#112
post #106

Earlier quoted context omitted.

Use ChatGPT, prompt: ffmpeg pipeline capture webcam to mp4 ChatGPT: >>> ffmpeg -f v4l2 -framerate 30 -video_size 640x480 -i /dev/video0 -c:v libx264 -preset veryfast -crf 28 -pix_fmt yuv420p output.mp4 Here's a brief explanation of what each part of the command does: - `f v4l2`: specifies that the input device is a V4L2 (Video for Linux 2) device, which is typically what webcams use. - `framerate 30`: sets the framer…

> Never used the `crf` or `pix_fmt` flags personally, but seems correct ( Let me translate: the AI might or might not be bullshitting, I have no way to know but I decide to believe in it. Why ?

Why do you trust the descriptions of `ffmpeg -help`? What if some evil daemon [1] went into the binary and changed completely the behaviour of the flags? Do you read the source code and verify the checksums for every program you run? In the real world, good or bad, very few people care beyond a first level of trust: does it work for my current issue? great, no?, try something else.

Also, you disingenuously left out the parentheses from the quote: using a tool requires undertaking its downsides, if the downsides can be mitigated accordingly then the tool is useful. Millions of users put to good use imperfect tools daily.

[1] https://en.wikipedia.org/wiki/Evil_demon

Re: FFmpeg 6.0

#113
post #36

Earlier quoted context omitted.

You need `-pix_fmt yuv420p` for an iPhone to recognize a ffmpeg-encoded video file.

Do you happen to know why? Is this a hardware decode limitation perhaps, or a bug in the standard decoder?

The capture pixel format depends on device - I think 4:2:2 is pretty common for webcams, which in H.264 requires profiles that aren’t widely implemented outside of x264 and ffmpeg.

Re: FFmpeg 6.0

#114
post #101

Earlier quoted context omitted.

This is very nice. I've been surprised how many people don't know HN, it can definitely use some promotion.

Please, no! We'd need way more dangs than are available.

From the Oxford Dictionary of Modern Slang, paperback edition from 2010 on page 65

"Dang: Expressing annoyance or antipathy, or as an intensive" ;)

Re: FFmpeg 6.0

#115
post #66

Earlier quoted context omitted.

“Did you know that Dennis Ritchie wrote macOS? Just look at stdio.h, it’s still there.”

From https://en.wikipedia.org/wiki/FFmpeg > Original author(s) Fabrice Bellard [...] Your point?

His point is probably that FFmpeg was written by Fabrice Bellard.

Re: FFmpeg 6.0

#116
post #6

Fun fact of the day: ffmpeg is written by Fabrice Bellard, who among other impressive things, wrote the JS PC emulator capable of running windows 2000 in a browser over 10 years ago that got me fascinated with emulators in general. https://bellard.org/jslinux/tech.html

He also wrote QEMU, which is probably far more impressive.

The most impressive thing is the LTE modem

Re: FFmpeg 6.0

#117
post #16

I absolutely love ffmpeg, but for the life of me I cannot understand how its pipeline system works. Each time I need to use it, I attempt to construct the command myself, but end up giving up and consulting StackOverflow. Amazingly, someone has usually done the exact thing I need to do and posted their command line to StackOverflow, so I'm never out of luck! How do I actually start understanding how ffmpeg works? I w…

I think the only hope a mortal brain has is using a graphic tool to build ffmpeg command lines like https://ffmpeg.guide/

Re: FFmpeg 6.0

#118

Earlier quoted context omitted.

Eternal March here we come

I'm getting a bit older and my memory might not serve me very well, but it used to be Eternal September, right?

Yes, your recall matches mine.

Also, try the page

jargon/html/S/September-that-never-ended.html

on www.catb.org.

Re: FFmpeg 6.0

#120

Earlier quoted context omitted.

Eternal March here we come

I'm getting a bit older and my memory might not serve me very well, but it used to be Eternal September, right?

yeah but HN version is going to happen on March...at least that was the point of my joke
Post reply on HN