Live data from Hacker News

FFmpeg 4.4

ffmpeg.org

41–50 of 135 posts

Re: FFmpeg 4.4

#41

> Rayman 2 APM muxer > LEGO Racers ALP (.tun & .pcm) muxer Maybe that just shows off my ignorance, but reading the changelogs (current and past), I never realized that ffmpeg contains so many "niche" features.

It’s a lot like how Linux supports the N64, right? If someone wants to write and maintain the code, it can get upstreamed.

Re: FFmpeg 4.4

#42

Shameless plug: While working with ffmpeg over the years, i always thought that FFmpeg should have a simple to use UI. I have recently started working on a desktop(electron) tool that wraps ffmpeg script in easy to use interface Here is a video showing the tool in action https://www.youtube.com/watch?v=qqqiK6YnJu8 https://auvinox.com

The use cases are so diverse that adding a UI for all use cases is near impossible. I also built a UI for ffmpeg, but mine was geared towards creating and applying video filters - much like Lightroom presets.

Re: FFmpeg 4.4

#43

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

slow down by 10x (gopro 240fps to 24fps)

ffmpeg -i ${1} -sn -an -c:v libx264 -r 24 -filter:v "setpts=10PTS" -crf 19 ${1}-10x.mkv

reverse video

ffmpeg -i $IFILE -s 3840x2160 -f image2 -q:v 1 -vf format=yuvj420p $tmpdir/p%8d.jpg cat $(ls -t $tmpdir/p.jpg) | ffmpeg -f image2pipe -c:v mjpeg -r 30 -i - -c:v libx264 -crf 18 -vf format=yuv420p -preset slow -f mp4 $OFILE

loop a video: loopcount=$1

ffmpeg -stream_loop $1 -i $2 -c copy $3.mkv

Re: FFmpeg 4.4

#44

on my Mac I ran Brew Upgrade ffmpeg and now the current version is 4.3.2_3 -> 4.3.2_4 ... so still not 4.4... Do I need to wait on the Brew people to upgrade or did I make a mistake? Also, I have no idea which codecs are native encoding and decoding on a M1 chip but I hope h.265 is included

Its not merged into homebrew yet: https://github.com/Homebrew/homebrew-core/pull/74849

Re: FFmpeg 4.4

#45

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

I use various scripts, not a single file. This one I call recorder which I use to record meetings.

    ffmpeg -video_size 3840x1080 -framerate 25 -f x11grab -i :0.0+0,0 -f pulse -ac 2 -i default $1.mkv
resolution needs to be adjusted for your setup

Re: FFmpeg 4.4

#46

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

ffmpeg -i foo.mp4 -c:v h264_videotoolbox -b:v 1600k foo_out.mp4 On macOS, this uses hardware acceleration to reencode a video at a lower bitrate. My macbook is from 2012, so this does make a notable difference. There's also "hevc_videotoolbox" for H.265 if your machine supports it.

It will also significantly tank the quality (HW encoders are horrible at quality-per-bit ratio) - libx264 at this bitrate will make a huge difference in how good the video will look.

Re: FFmpeg 4.4

#47

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

avi2gif:

    ffmpeg -i $1 -vf scale=320:-1:flags=lanczos,fps=10 /tmp/frames/ffout%03d.png
    convert -loop 0 /tmp/frames/ffout*.png $1.gif

flac2mp3

    parallel-moreutils -i -j$(nproc) ffmpeg -i {} -qscale:a 0 {}.mp3 -- ./*.flac
    rename .flac.mp3 .mp3 ./*.mp3

screencast

    TIMESTAMP=`date +"%Y-%m-%d_%H"`
    TMP_AVI=$(mktemp /tmp/outXXXXXXXXXX.avi)
    ffcast -s % ffmpeg -y -f x11grab -show_region 1 -framerate 15 \
    -video_size %s -i %D+%c -codec:v huffyuv                  \
    -vf crop="iw-mod(iw\\,2):ih-mod(ih\\,2)" $TMP_AVI         \
    && convert -set delay 10 -layers Optimize $TMP_AVI /home/nemo/Desktop/GIFs/$TIMESTAMP.gif

split-audio-by-chapters[0] to split a audiobook from Audible to multiple files by chapters.

split-by-audible[1] to split a audiobook from Audible to multiple files by chapters using the copied timestamps from the Audible Web Player.

split-by-silence[2] to split audiobooks by Silence instead

audiobook2video[3] to generate a video file from audiobooks. Puts up a nice cover.

[0]:https://github.com/captn3m0/Scripts/blob/master/split-audio-...

[1]: https://github.com/captn3m0/Scripts/blob/master/split-by-aud...

[2]: https://github.com/captn3m0/Scripts/blob/master/split-by-sil...

[3]: https://github.com/captn3m0/Scripts/blob/master/audiobook2vi...

Re: FFmpeg 4.4

#48
post #33

Earlier quoted context omitted.

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

Cannot offer any data on that but I experimented with a SD TV series episode. HEVC and AV1 ended up at the same file size (few kilobytes difference) but encoding AV1 took over 10 times as long using rav1e.

Considering lossy encoding, you cant compare file sizes without comparing also quality, or you're just comparing default settings. I can make a tiny mpeg1 file (which will just be a pixel soup)

Re: FFmpeg 4.4

#49

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

Cut ffmpeg video without losing quality by keeping the same codecs, very fast:

Example: Start at 52 seconds, take 10 minutes after that:

  ffmpeg -ss 52 -i input.mp4 -c copy -t 00:10:00.0 output.mp4

Re: FFmpeg 4.4

#50

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

  Convert AVI to MP4
  ----------------------------
  ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a libvo_aacenc -b:a 192k -ac 2 out.mp4

  Convert MP4 to GIF
  ---------------------------
  mkdir frames
  ffmpeg -i video.mp4  -r 5 'frames/frame-%03d.jpg'
  cd frames
  convert -delay 20 -loop 0 -layers Optimize *.jpg myimage.gif
Post reply on HN