Date: Sat, 30 Apr 2022 15:23:40 -0400 From: Mason Loring Bliss <mason@blisses.org> To: multimedia@freebsd.org Subject: How to do audio with ffmpeg/v4l2/oss? Message-ID: <Ym2MvF2xnjngdbw0@blisses.org>
next in thread | raw e-mail | index | archive | help
--E8hkDDHykvTS8Qor Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all! I do this on Debian to present a video with audio over Jitsi: ffmpeg -re -ss 00:00:00 -i foo.mp4 \ -map 0:0 -f v4l2 -c:v rawvideo /dev/video100 \ -map 0:1 -f alsa hw:aloop100,1 & I'd like to do the equivalent on FreeBSD, and on my first pass I got video working, but not audio. I see the oss filter built into ffmpeg, but I'm not sure how to point it to a device or what that device might then be. It's been a while since I tried and this might not be the right video syntax, but I'm mostly curious about what the right thing to do is for the audio: ffmpeg -re -ss 00:00:00 -i foo.mp4 \ -map 0:0 -f v4l2 -c:v rawvideo /dev/video100 \ -map 0:1 -f oss [INSERT MAGIC HERE] Note that I'm not tied to the idea of using ffmpeg for this - it's just what works on GNU/Linux, and it seems to at least mostly work here. I'd be grateful for advice. --=20 Mason Loring Bliss mason@blisses.org Ewige Blumenkraft! awake ? sleep : random() & 2 ? dream : sleep; -- Hamlet, Act III, Scene I --E8hkDDHykvTS8Qor Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEEXtBZz1axB5rEDCEnrJXcHbvJVUFAmJtjLoACgkQnrJXcHbv JVWn6g//YFNkejkpO5oekGLJhnd6L1XUsVqHuessm/3MrcD5u5kKhaik93PmjdtJ zQYlGCbiINpUYf589vh9wIvIIyUSkWMrpEtdG48oE3/Akx+0lDuveb0nJGj8hlVc nwAgyK1RQRgYIU13ZVu6+xIUL1bcJyZMPqQr/VKaPJJ2KViNA94p/lrChgAVeHqX QiU85//Imkz4UTU/wx17LiUymFx7TrSN8Ri/sXoqXSFIT1limPwHSHYgLe63YYFi loUev4fQPlTL1E+qiujXR0yRLB1kYs9BUNHkmYbXPOP3t81+yprDA57+PsYdmfDl UWyPYwTYGYD888ppF1bhHrxpADuDfzjFHZ/6tJKWa2GHIRf9hbsL20yY11Pe1zKp sXADOtr12Dk2A6wpuEcRaIVJy0hirK1AJaXshpyWtNlSK7AQ7Febd/kH2l1ygWmK CyqdK37EsTTqxHsivNXH9L/GI/JgcM5UZq/iT0IrRyXgPMAb5ua7dzVAD5HvAwgt ZaO97SE8e9S4uwm468cdwEbYwYfL17KPl84ZCt5/P4SM2UBpe1sdoatjdoYB2zoY dDEtnj2unvCzLbUxqXRdRGkKnGuqJlRqw8sDuH6rcbBIJfi0CVDf2V6tGkM3FNfp uYMr0S8SkascluS+D0s/KzWfDozaa52CB81X8uZqm7LlWfgvscc= =Z1jB -----END PGP SIGNATURE----- --E8hkDDHykvTS8Qor--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Ym2MvF2xnjngdbw0>