Live data from Hacker News

FFmpeg 4.4

ffmpeg.org

81–90 of 135 posts

Re: FFmpeg 4.4

#81

Earlier quoted context omitted.

function grab-screen-lossless { ffmpeg -an -f x11grab -video_size 1920x1080 -framerate 60 -i :0.0 -c:v h264_nvenc -preset llhq -tune zerolatency -crf 0 -qp 0 "${1}" } function grab-screen { ffmpeg -an -f x11grab -video_size 1920x1080 -framerate 60 -i :0.0 -c:v h264_nvenc -preset llhq -tune zerolatency -qp 10 "${1}" } function vid_compress { ffmpeg -i "${1}" -codec:v libx264 -preset:v fast -pix_fmt yuv420p "${2}" }

Wow never realized ffmpeg could be used like this! Unfortunately both these commands create a somewhat jerky video on my rx 550 on linux mint and drives CPU crazy (ryzen 3500). I guess it's my underpowered graphics card, but any way to tweak your grab-screen-lossless for a smoother capture?

I'm surprised those specific commands work at all on your machine, since they use the Nvidia-specific nvenc.

Re: FFmpeg 4.4

#82
post #63

Earlier quoted context omitted.

are you planning to show the ffmpeg command that will be used in the background, I would like to try it out.

it should be simple enough to show the command used. great idea thanks!

Yes please do it, the Windows Admin Center has this, where any GUI thing you do you can click the PS button and see the powershell that is being run to execute the task. It’s helpful in a number of ways, I learn more ps, and I can build on their thing if they haven’t built out a way to do it yet through the GUI but posh supports it.

Re: FFmpeg 4.4

#83
post #17

Earlier quoted context omitted.

For a typical 1080p "linux iso" what filesize difference will there be between x265 and av1?

I understand that you are probably trying to be funny, but just to be clear, linux iso 's are not videos and therefore can't be compressed with a video codec. Assuming that you actually meant video content, I think your question may be a bit misguided on the nuances and goals of video encoding. Video encoding can be both lossy and lossless. Lossless video encoding isn't particularly interesting in most cases, but I d…

"Linux ISO" is a euphemism for pirated videos.

Re: FFmpeg 4.4

#84

Earlier quoted context omitted.

wow, this is crazy. I would never have imagined this level of a shitshow when you said "annoying"... But what to do with such a person if you can't/won't ban them from posting? Delete his comments? Don't engage until he tires himself out?

> But what to do with such a person if you can't/won't ban them from posting? How about ignoring details and only focus about the technicality? Looking at that way too long thread, both sides seem to be blamed on way or another. From what I can see, HDR support missing is actually an issue. Instead of letting him know they accept the bug, they are feeding him with rhetorical questions . Developers should not worry ab…

I do agree that it looks like they should not have engaged him on his level by pouring gas on the flames every time he went off the rails. Remaining on topic would have been the "professional" way to go I guess and just leave him to rant alone. They did take the bugreport though and never questioned that it was valid. All of that still does not excuse the behaviour of the reporter.

I think your assessment that developers should not derive any pride from happy users and are merely there to serve a greater good is a bit far from reality. Maybe they should not worry about things like this but then again these are also just people living their lives. This is not a corporate entity where you engage with a PR representative, these are people, doing what they like to do.

Re: FFmpeg 4.4

#85
I'm a voracious audiobook consumer and get my books in all forms and shapes. At some point, I got tired of organizing them and decided to put them in my Calibre library, re-encoding each book first into a single file preferably with chapter information. To my surprise, existing tools were quite cumbersome, so I put together a small nodejs CLI[1] that uses ffmpeg for encoding. It was hacked together in few hours, but has saved me a ton of time since.

[1] https://github.com/zandaqo/ctfb

Re: FFmpeg 4.4

#86

I think everyone was a txt file on their computer filled with FFmpeg commands. Care to share yours?

Test patterns:

  ffmpeg -f lavfi -i testsrc=d=60:s=1920x1080:r=24,format=yuv420p -f lavfi -i sine=f=440:b=4 -b:v 1M -b:a 192k -shortest output-testsrc.mp4

  ffmpeg -f lavfi -i testsrc2=d=60:s=1920x1080:r=24,format=yuv420p -f lavfi -i sine=f=440:b=4 -b:v 1M -b:a 192k -shortest output-testsrc.mp4

  ffmpeg -f lavfi -i smptebars=d=60:s=1920x1080:r=24,format=yuv420p -f lavfi -i sine=f=440:b=4 -b:v 1M -b:a 192k -shortest output-smptebars.mp4

Re: FFmpeg 4.4

#87
post #21

I think everyone was a txt file on their computer filled with FFmpeg commands. Care to share yours?

mine: h264: -c:v libx264 -preset medium -crf 22 h265: -c:v libx265 -preset medium -crf 26 no recompress: -c copy presets: ultrafast,superfast, faster, fast, medium, slow, slower, veryslow desinterlace: -vf yadif target size: -s 1920x1080 aspect ratio without recompressing: -aspect 16:9 rotate video: -vf "transpose=1" 0 = 90CounterCLockwise and Vertical Flip (default) 1 = 90Clockwise 2 = 90CounterClockwise 3 = 90Clock…

If you place -ss after the input file it will take longer. For true seek place -ss before -i.

Re: FFmpeg 4.4

#88
post #71

We're all thinking it, but holy cow is FFmpeg one of the craziest pieces of software I have on my computer. The amount of neat things I've been able to do with it and toss them into a bash loop and go to bed is incredible. I'm sure a lot of us get a kick out of automating our tasks, and FFmpeg is king when it comes to that.

ffmpeg and curl are two open source products I just tip my hat to.

Re: FFmpeg 4.4

#90

I think everyone was a txt file on their computer filled with FFmpeg commands. Care to share yours?

Downmixes audio on movies from surround sound to stereo balanced for night watching (prevents audio being too quiet) so that they can direct stream on my devices

  ffmpeg -hide_banner -loglevel error -nostdin -y -i "$f" -map 0:0 -c:v copy -map 0:a:0? -c:a:0 aac -b:a:0 160k -filter:a:0 "pan=stereo|FL=1.414*FC+0.707*FL+0.5*FLC+0.5*BL+0.5*SL+0.5*LFE|FR=1.414*FC+0.707*FR+0.5*FRC+0.5*BR+0.5*SR+0.5*LFE,acompressor=ratio=4" -metadata:s:a:0 title="NightMixed" -metadata:s:a:0 language=eng -disposition:a:0 default -map 0:a:0? -c:a:1 copy -disposition:a:1 none -map 0:a:1? -c:a:2 copy -disposition:a:2 none -map 0:a:2? -c:a:3 copy -disposition:a:3 none -map 0:a:3? -c:a:4 copy -disposition:a:4 none -map 0:a:4? -c:a:5 copy -disposition:a:5 none -map 0:a:5? -c:a:6 copy -disposition:a:6 none -map 0:a:6? -c:a:7 copy -disposition:a:7 none -map 0:a:7? -c:a:8 copy -disposition:a:8 none -map 0:a:8? -c:a:9 copy -disposition:a:9 none -map 0:s:0? -c:s:0 copy -map 0:s:1? -c:s:1 copy -map 0:s:2? -c:s:2 copy -map 0:s:3? -c:s:3 copy -map 0:s:4? -c:s:4 copy -map 0:s:5? -c:s:5 copy -map 0:s:6? -c:s:6 copy -map 0:s:7? -c:s:7 copy -map 0:s:8? -c:s:8 copy -map 0:s:9? -c:s:9 copy "/home/pi/media/remixed_in_progress/$f"
Post reply on HN