Whaou, j'ai trouvé à ma #mediatheque l'Exo conférence de @alexandreastier , inregardable sur le net (en entier ou de bonne qualité).
Des idées* pour le transformer sous #linux en films de vacances pour le mettre sur un #perturbe ?
FFmpeg to "szwajcarski nóż oficerski" do przetwarzania obrazu i dźwięku. Niestety ze względu na zawirowania licencyjno-patentowe wykorzystywanych kodeków długo był dostępny w #Fedora tylko z nieoficjalnych repozytoriów. To zmieniło się w lutym 2022 i Dominik Mierzejewski na #JesienLinuksowa przedstawi nam z detalami, jak do tego doszło.
Więcej informacji: https://jesien.org/2023/agenda/
Wirf einen Stein in einen spiegelglatten Teich und beobachte wie die Unruhe das Gesicht des Teiches verändert und ihn schließlich wieder zum Ursprung zurückkehren lässt.
Das ist/war erstmal nur ein Test. Mehrere animierte Projekte werden folgen.
In the mid 1990's I built a real-time streaming video server for a project... the answer was some rocket science C and Java. Got handed a similar problem today. HLS, RTMP, etc.. are solutions, but still rocket science. Gotta stare at it all again tomorrow. Thank $diety for FFMPEG. #ffmpeg
Decided to look into finishing Jingle calls: to handle audio I/O (along with encoding and decoding), in addition relaying #RTP and RTCP packets over an established encrypted channel. Spent the weekend and some time today poking #FFmpeg, so far managed to setup transcoding and resampling of a file into a stream with Opus over RTP (mixed with RTCP, apparently demultiplexing of those should be done manually and afterwards, which is a little awkward), which can be sent through pipes: the idea was to run capture and playback child processes (or threads) separately, communicating with them over pipes, since FFmpeg's I/O functions seem to be blocking, and rexmpp provides an asynchronous API. Now was about to try audio output (using alsa or a similar driver, via libavdevice), and thought FFmpeg supports it after trying it out with its CLI tools, but failed to do it at first, went looking into the ffplay sources, and noticed that it uses SDL, apparently for audio playback as well.
I thought FFmpeg is quite complicated (probably necessarily so, handling all sorts of things), and it seemed unfortunate that it does not appear to accept receiver's RTCP packets while producing RTP packets, but at least it seemed to handle everything (including even SRTP, for which I currently use libsrtp2). But now I am more inclined to use just something like #PortAudio to grab PCM, and then libopus to produce an #Opus stream (and the other way around on the receiver). With a custom RTP implementation, perhaps.
But having to take a break to sort out some work-related tasks now. One of them actually involves FFmpeg, too, but video streams there, and invoking the ffmpeg CLI program instead of using a library. And there are some relatively boring SQL-based reports to debug.
Who would have thought that working with video on a multi platform game would be such a pain.
Sure, we now hate #Unity anyways but I'm kinda disapointed that there are basically no supported video codecs on Linux (Yeah, I get it h265 is complicated on linux but VP9 would have been nice at least, especially nowadays with the Steamdeck)
Guess I'll do some transcoding today #ffmpeg
Un immense article qui explique les bases, l'essentiel à savoir sur ce #LogicielLibre excellentissime pour traiter l'audio et la vidéo, avant de donner de nombreux exemples de commandes expliqués en détail.
(Oui, j'adore FFMPEG même si je n'en utilise certainement qu'une fraction infime de ses possibilités, c'est juste d'une puissance incroyable et d'une rapidité inégalée.)
Erst mit ffshare teilen und dann mit z. B. #Fedilab. Auch der Dateiname wird unkenntlich gemacht.
Für #Fotos gibt es hingegen die App #ScrambledExif https://f-droid.org/packages/com.jarsilio.android.scrambledeggsif/
The #WebP buffer overflow bug that caused all the major browsers to issue patches earlier this week (e.g. #Firefox 117.0.1) also affects applications built with Electron. #1Password issued an update today for their Mac build.
The CVE affects the underlying webp library, not just web browsers, so this will be an ongoing issue.
"Who uses #libwebp?
"There are a lot of applications that use libwebp to render WebP images, I already mentioned a few of them, but some of the others that I know include: #Affinity (the design software), #Gimp, #Inkscape, #LibreOffice, #Telegram, #Thunderbird (now patched), #ffmpeg, and many, many #Android applications as well as cross-platform apps built with #Flutter."
My 4c/8t 4.6GHz i7-7700K CPU burned almost for entire day to bring you this #AV1 encoder time chart - re-encoding the same 480p 75s video in different bitrates (kbit/s) and speed settings (different encoders use different #ffmpeg parameters for some reason).
This does not show you how the image looks, just what to expect in terms of encode time. "Realtime"-ish encodes at:
- SVT preset: 6+
- AOM cpu-used: 5+
- rav1e (the "fastest av1 encoder"): never for some reason...
#FFmpeg has released patch notes showing a performance boost of approximately 20% on Win64 and 14% on Win32 for the Apple ProRes codec. No improvement was reported for macOS, Linux, and BSD.
It appears #ffmpeg supports streaming via RTMP (say, to Twitch) so you should be able to write a program that produces raw frames + audio to stdout, then pipe that to ffmpeg to get it online 🤔
60 Sekunden in der DEV-Konsole, 30 Sekunden am #ffmpeg Befehl getippt, 90 Sekunden gewartet, fertig.
Und das blöde Tool hat immernoch eine ETA von 30 STUNDEN...
I wrote about the process of deciding which quality factor to use when encoding videos on #Apple silicon using #ffmpeg https://b.27p.de/p/00016-ffmpeg-apple-silicon-h265-encoding/
Double-checking still in progress. So far, fixed an issues on 13.2/aarch64, another one on 14-CURRENT/amd64 (yep, didn't upgrade my #FreeBSD test builders to 15-CURRENT yet 🙈) and yet another one on 14-CURRENT/i386.
I play with the quality settings until I find something where I don't notice a difference to the original anymore. This process is pretty subjective. I think it's weird that you can end up with a bigger size video than the source although you have a more efficient codec.
If I leave it at default settings the quality worsens significantly.
Is there a deterministic way that doesn't worsen the source quality but utilizes all the benefits a new codec (like h.265) brings?
Screenshot of hevc hardware encoding.
Some recent package updates: chromium (-ungoogled), ffmpeg, handbrake, pipewire-jack
Chromium, regular and un-googled.
Google is speeding up its Chromium release cycle. Let's see if I can keep up since I also build the -ungoogled variant. The latest update is 116.0.5845.140 and addresses a vuln
That's #Linux port #151 I added, it has *almost* everything enabled that's in the default options of the FreeBSD port. I left out a few things that seemed (too) complex like vulkan ... 🙈
I guess now it's time to double-check the branch on other architectures and other FreeBSD versions first. And then, finally, check whether #MakeMKV will work fine with this!
Reminds me also of the perennial “discussions” of cloudflare’s support for nazis that i see @jwz regularly point out in comments, and the recent thread about hacker news commenters being cranky on the post about @samlavigne’s #ffmpeg tool (which seems neat).
one thought: why are their brand colors all orange? 🤔
Alright, I think I've done enough for today on the `sisyphus-ffmpeg` module for today. Documentation looks good, code makes some sense, and I've tested it out on Windows and Linux without issue. Did find an issue where Windows wasn't picking up the `ffmpeg.exe` binary, but got that sorted as well. #programming #python #ffmpeg
After a few tweaks, I've pushed the code for the `sisyphus-ffmpeg` wrapper to Github. I still need to verify the output mapping as I think the per-stream specifiers work a smidge differently than I think they do. Won't be a code change, but there would be a slight documentation change. #programming #python #ffmpeg
Rewriting my Python `ffmpeg` module and packaging it up so I don't have to keep copying it to other projects. The cleanup is still ongoing, and it's back to actually outputting proper `ffmpeg` command-line options. Added the ability to load the `ffmpeg` configuration from JSON along with from a data object (dict). Still has a ways to go though... #python #ffmpeg #programming
The samples look pretty good actually, so I'm gonna try and run through the first season to test properly.
DVD on the left, HD on the right.
wait you're telling me #ffmpeg does granular tiling / mosaics of video frames natively ? … you can even set threshold to grab screenshot when scene changes 🥶🤝 :mastodance:
It is quite possible that "brew install ffmpeg" installs more software than "docker run busybox" 🙂
Aaand it's minimally working, so: https://ffmpeg.app is now live!
Use FFmpeg recipes without fiddling with the command line!
Consider this an early beta. There's still a ton missing:
- Ability to tweak the command line (i.e. hand editing, or selectors)
- Proper mobile styles
- About, disclaimers, etc
- Many more command recipes
- Better accessibility
- "Bug fixes and performance improvements"
But, it's doing the thing!
Narf #ffmpeg 5.1.3-1
"sidx reference_type 1 is not implemented"
beim Versuch einen HLS-Stream von #Arte zu dumpen.
#yt-dlp scheint es aber zu können. Also zumindest die Segmente zusammenzupappen, muxen dann noch mit ffmpeg von der Platte. Müsste klappen. Nerv ist das wieder ein Gefrickel. Aber ich hab' ja schließlich schon GEZahlt, wa?
u.a. https://www.arte.tv/de/videos/021109-000-A/dead-man/ (1080p)
Want to make some cool animated GIFs from #Shotcut, but hate its dithering?
Try instead outputting a video from Shotcut & using #FFMPEG to make the GIF.
• Reduce the resolution to a max width of 480 & half the FPS.
• Export as lossless video as input.mkv to your FFMPEG folder.
In FFMPEG, do the following:
ffmpeg -i Input.mkv -filter_complex "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse" Output.gif
#ffmpeg is a powerful tool for manipulating audiovisual files. Unfortunately, it also has a steep learning curve, especially for users unfamiliar with a command line interface. This app helps users through the command generation process so that more people can reap the benefits of FFmpeg. https://amiaopensource.github.io/ffmprovisr/
This. I work in film-making and animation and I'm always hacking away in#VSCode.
Could someone who's good with #ffmpeg and #golang help me out with something? I have two implementations of a gif maker that downloads a video and turns it into a gif. For some reason, my go implementation, while faster, produces slow gifs whereas the python implementation makes snappier ones. As far as I can tell, I massaged ffmpeg the same way in both implementations but something went wrong it seems. Python: https://git.sr.ht/~x4d6165/video2gif Go: https://git.sr.ht/~x4d6165/gifmak3r
@lisamelton So, this is my one-liner:
ffmpeg6 -i movie1.m4v -aspect 4:3 -vf 'scale=768:576:force_original_aspect_ratio=decrease,pad=768:576:(ow-iw)/2:(oh-ih)/2,setsar=1' -c:v hevc_videotoolbox -profile:v main -b:v 8M -c:a copy -tag:v hvc1 -f mp4 movie1-new.m4v
Does anything in this one-liner scream "he's doing it wrong!"? OR is anything here that I don't need?
#FFMPEG users, Got a good one for ya! I have TV-captured videos that are all X:576. Most are good at 768, but some are 760, some are 758, etc.
I want to center horizontally the video in the frame and leave the vertical alone. I don't mind black bars filling in the left and right BUT I DO NOT WANT TO RESIZE - ie: stretch!
Yeah, I know. Don't ask why I want to make it this way, please. Also, I'll prob hevc not x264.
I *think* this will do it. Code in attached next msg in 🧵.
did they brake the links for this? I'm trying to install ffmpeg on my laptop and cannot as the now no longer support binaries, yet this article says to click the windows icon, I cannot as that icon is not labeled.
#ffmpeg people: I have a video and an audio file and I want to replace the default audio of the video with my file, but it should be placed at a specific second.
so, e.g. I have a 20 seconds long video and I want that the audio track is inserted at second 15 until the end of the video.
how can I do that? 👉👈
magic incantation to squish the video was
`-vf "scale=iw/2:ih/2" -vcodec libx264 -preset veryslow`
-vf to rescale was the most important to get it under the 40M limit. -vcodec is so mastodon doesn't try to re-encode it. not sure the compression -preset is necessary, but it worked, and I didn't try other settings.
ffmpeg: error while loading shared libraries: libhwy.so.1: cannot open shared object file: No such file or directory
I'm absolutely perplexed, apoplectic! I have searched furiously for a solution. UGH!
I installed the highway package that contains libhwy and it fixed the problem!
Say "no" to vertical videos! *)
Convert/rotate videos which are shot the wrong way.
ffmpeg -i in.mp4 -filter_complex '[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16' out.mp4
Vertical Video Syndrome is dangerous.
We’ve extended the cfp for CommCon as we don’t feel we have the right mix of talks just yet.
We’re going to be accepting some this week to give people an idea of what’s going to be talked about but I’d love to get more #openMedia talks; we’ve got loads of great Real Time submissions but if we finalised things today we’d be RTC heavy and lighter on the open media side of things.
Original tweet : https://twitter.com/phoronix/status/1624383371903131648
FOSDEM talk notes (2/2):
VLC.js demo, no JS involved, WASM. Hardware decode, directly WebGL. 4K MKV. Demuxing, chapter support, subtitles (not WebVTT), WebM. TS used by US broadcasting directly In the browser. Software decoding. Korean TV interlaced, cannot do in hardware, shaders in software, old multicast format works unchanged. YUV 444. Other filters: 360 movie, on the GPU.
Just finished RE-compiling #FFMPEG static binary from my bash script I used to compile #macOS #X86_64 & #arm64. I thought I had it solved yesterday. Ended up it worked on X86_64 to compile in #HDR10Plus and all relevant CPU optimizations, but something I did messed up ARM64’s compile - so it showed as no #NEON optimizations AND only 32-bit in the x265 section of ffmpeg!
One of my hobbies is creating tools to #transcode my collection of Blu-ray Discs and DVDs for playback on #Plex servers. These are all cross-platform wrappers for #FFmpeg or #HandBrake. My most flexible script, focused on hardware video encoders, is here:
Feel free to message me if you have questions about my scripts, FFmpeg, #HandBrakeCLI, #MKVToolNix or other video nerdery. I've been doing this for over a decade so I can probably point you in the right direction.