Live data from Hacker News

FFmpeg 4.3

ffmpeg.org

171–180 of 226 posts

Re: FFmpeg 4.3

#171

Earlier quoted context omitted.

Not being able to read Dutch, do you happen to have a direct link to the lecture or the recording he made?

i'm thinking it's audio only. Maybe it's hiding here? https://soundcloud.com/oliviernijs

My guess is this one: https://soundcloud.com/oliviernijs/perdag1900

Re: FFmpeg 4.3

#172
post #53

And here's my incantation for screen recording under X Window (also used one like it under MS Windows, but I don't have it on hand): ffmpeg -rtbufsize 2147M -f x11grab -video_size 1920x1080 -i :0.0 -r 30 -preset ultrafast -vcodec h264 output.mp4

nice but it doesn't record audio and doesn't use hardware acceleration.

So if that's possible, please tell us how!

Re: FFmpeg 4.3

#173
post #55

Earlier quoted context omitted.

If you read the post by the link, each of these settings (or rather groups thereof) look reasonable and readabale in isolation. This demonstrates, in a rather extreme example, the colossal composability of the interface, even if it lacks nice formatting here.

I feel the same about imagemagick. Oh the things you can do with just curl, bash, imagemagick... And gnuplot if you're rich.

Why do you need to be rich for gnuplot? Aren't gnu things generally GPL?

Re: FFmpeg 4.3

#174
post #60
post #58

Somewhat related. Anyone have a good utility for downloading youtube videos?

https://ytdl-org.github.io/youtube-dl/index.html is the gold standard.

I'm a recent convert to youtube-dl. I use some bash scripts[0] to make youtube-dl even easier. I have a Mac but these should work elsewhere.

Copy the video page URL to your clipboard and just type

yd - download the video. Works on most popular sites with video.

yda - download just audio, best available

ypl - makes a subfolder with the whole playlist in it (Copy the playlist URL)

yc - downloads every video on the channel (Copy the channel URL)

    yd () { youtube-dl "$(pbpaste)" ; }
    yda () { youtube-dl -f bestaudio "$(pbpaste)" ; }
    ypl () { youtube-dl -i -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' "$(pbpaste)" ; }
    yc () { youtube-dl -i -o '%(channel)s/%(title)s.%(ext)s' "$(pbpaste)" ; }
I use especially yd and ypl constantly. Sites where youtube-dl doesn't work, this usually does: Get the master m3u8 or an mp4 link from the page using Developer tools->Network[1], copy link to clipboard, and

vd myfile - downloads the video as myfile.mp4

    vd () { youtube-dl -o "$1.mp4" "$(pbpaste)" ;  }
[0] Save them in your .bash_profile or equivalent on your machine.

[1] i.e. with Network tab open, refresh page and start video playing.

Re: FFmpeg 4.3

#175
post #60

Earlier quoted context omitted.

https://ytdl-org.github.io/youtube-dl/index.html is the gold standard.

I'm a recent convert to youtube-dl. I use some bash scripts[0] to make youtube-dl even easier. I have a Mac but these should work elsewhere. Copy the video page URL to your clipboard and just type yd - download the video. Works on most popular sites with video. yda - download just audio, best available ypl - makes a subfolder with the whole playlist in it (Copy the playlist URL) yc - downloads every video on the chan…

Nice. Thanks for the aliases. I just started using it myself for downloading and transcribing some videos. It works pretty well.

Re: FFmpeg 4.3

#176

Earlier quoted context omitted.

I feel the same about imagemagick. Oh the things you can do with just curl, bash, imagemagick... And gnuplot if you're rich.

Why do you need to be rich for gnuplot? Aren't gnu things generally GPL?

My guess is they’re referring the need for lots of compute power to get it to run in a reasonable time, which is expensive

Re: FFmpeg 4.3

#177

Earlier quoted context omitted.

FFmpeg is infamous for absurdly complex command options. It's really too much for a "one-liner" CLI. When I use it, I just look for "pre-baked recipes" otherwise it's a really unpleasant rabbit hole to get into.

I'd recommend looking at something like kdenlive, it generates the ffmpeg command and script for you. It's still complex and difficult to do somethings but it can be much nicer than trying to work out the command line interface for something you want to do. It's also nice because you can save the project at a higher level and reopen it later without having to do all the work of figuring things out again.

> I'd recommend looking at something like kdenlive, it generates the ffmpeg command and script for you.

Doesn't kdenlive use melt [0] instead of ffmpeg directly?

[0] https://www.mltframework.org

Re: FFmpeg 4.3

#178
post #60

Earlier quoted context omitted.

https://ytdl-org.github.io/youtube-dl/index.html is the gold standard.

It should be noted that despite the name it supports a lot of different websites, not just Youtube. It's great to capture hls streams for instance.

And the list is seriously long, too: https://github.com/ytdl-org/youtube-dl/tree/master/youtube_d...

Re: FFmpeg 4.3

#179

Can someone explain to me how FFmpeg seems to be the only open-source software to do even just basic functionality with audio. I was looking at getting the sound wave graph for a piece of audio a while ago, and not only was FFmpeg the only option I found to be able to do it, it was amazingly fast and also free.

My DAW is bash+sox+ecasound because I don't want to be distracted by visuals when working with audio. However, I just started working on a project involving about 15 hours of digital audio recorded under less than ideal circumstances a couple of decades ago and need a reliable way to analyze the data. SoX produces spectrograms that are insufficient for my needs and I've had reliability issues with Audacity. So far, D…

Maybe jaaa[0] and japa[1] are worth a look (from Fons Adriaensen's suite of audio tools[2])

0: https://kokkinizita.linuxaudio.org/linuxaudio/jaaa-pict.html

1: https://kokkinizita.linuxaudio.org/linuxaudio/japa-pict.html

2: https://kokkinizita.linuxaudio.org/linuxaudio/index.html

Re: FFmpeg 4.3

#180
post #89

Earlier quoted context omitted.

FFmpeg is infamous for absurdly complex command options. It's really too much for a "one-liner" CLI. When I use it, I just look for "pre-baked recipes" otherwise it's a really unpleasant rabbit hole to get into.

If you look at it as more of a "composable" interface (as the sibling poster suggested), it makes a lot more sense. No one is going to type out this one-liner from scratch, or have an easy time understanding what it means by reading it, but as it's made up of a series of smaller, more easily understood commands, in a shell or Python script it could be vastly more legible and, dare I say it, usable. This is also the r…

The problem with calling ffmpeg multiple times in a script is you often waste compute time.

If you can manage to cobble together a single command (as illegible as that may be), you might be able to do what you're looking to do in far less time

Post reply on HN