Live data from Hacker News

Learn FFmpeg the hard way

github.com

81–82 of 82 posts

Re: Learn FFmpeg the hard way

#81
post #30

>In summary this is the very basic idea behind a video: a series of pictures / frames running at a given rate. >Therefore we need to introduce some logic to play each frame smoothly. For that matter, each frame has a presentation timestamp (PTS) which is an increasing number factored in a timebase that is a rational number (where the denominator is know as timescale) divisible by the frame rate (fps). Constant framer…

Any tutorial will not get very far if every corner case is spelled out every time. The point of “learning” documents is to give enough concepts and useful information for the reader to have a basis to start building additional knowledge on top of. Getting into the weeds quickly derails this process.

>> not true for videos shot with mobile phones

> Any tutorial will not get very far if every corner case is spelled out every time.

Is mobile phone video a corner case?

Re: Learn FFmpeg the hard way

#82
post #78
post #72

About a year ago I wrote a zsh script to analyse files in my collection and format/selectively re-encode them based on a set of rules. Basically, I wanted .mp4 files that the Roku Plex app could play back without having to do any kind of re-encoding (stream/container or otherwise). That started me on a 2-week mission of understanding the command-line. Good God is it a nightmare! All my script was doing was reading th…

Would you be willing to share this script?

I'm not entirely sure what state its in (and the code is brutally hacked together -- I spent far more time reading up on how to mangle the ffmpeg CLI to get what I wanted than I did bothering to write anything resembling quality shell code)

I don't use it any longer, but I'll see if it's still sitting on my media server (but probably not until the weekend) - if you're on keybase, you can find me @mdip; I'll toss it in my public keybase filesystem folder (keybase.pub/mdip, I think) if I can locate it! :)

Post reply on HN