Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v2] avformat: add Software Defined Radio support
Date: Sun, 25 Jun 2023 16:25:37 +0200
Message-ID: <20230625142537.GC3250409@pb2> (raw)
In-Reply-To: <F07245E0-1575-4D39-BFE3-A32B90442943@remlab.net>


[-- Attachment #1.1: Type: text/plain, Size: 3064 bytes --]

On Sat, Jun 24, 2023 at 10:27:13PM +0200, Rémi Denis-Courmont wrote:
> 
> 
> Le 23 juin 2023 20:12:41 GMT+02:00, Michael Niedermayer <michael@niedermayer.cc> a écrit :
> >Hi
> >
> >On Fri, Jun 23, 2023 at 06:37:18PM +0200, Rémi Denis-Courmont wrote:
> >> Hi,
> >> 
> >> Le 23 juin 2023 13:17:28 GMT+02:00, Michael Niedermayer <michael@niedermayer.cc> a écrit :
> >> >On Fri, Jun 23, 2023 at 10:34:10AM +0800, Kieran Kunhya wrote:
> >> >> FFmpeg is not the place for SDR. SDR is as large and complex as the
> >> >> entirety of multimedia.
> >> >> 
> >> >> What next, is FFmpeg going to implement TCP in userspace, Wifi, Ethernet,
> >> >> an entire 4G and 5G stack?
> >> >
> >> >https://en.wikipedia.org/wiki/Straw_man
> >> >
> >> >What my patch is doing is adding support for AM demodulation, the AM
> >> >specific code is like 2 pages. The future plan for FM demodulation will
> >> >not add alot of code either. DAB/DVB should also not be anything big
> >> >(if that is implemented at all by anyone)
> >> 
> >> Literally every one of those layer-2 protocols has a lower-level API already on Linux, and typically they are, or would be, backends to libavdevice.
> >> 
> >> (Specifically AM and FM are supported by V4L radio+ALSA; DAB and DVB by Linux-DVB. 4G and 5G are network devices.)
> >
> >4 problems
> >* FFmpeg is not "linux only".
> 
> And then what? Whether you like it or not, radio signal processing sits on top of OS-specific APIs to access whatever bus or hardware. You can't make this OS-independent whether it's in FFmpeg or elsewhere.
> 
> At best you can write or reuse platform abstraction layers (such as libusb). Maybe.
> 
> In other words, whether this ends up in FFmpeg or not has absolutely no bearing on this "problem" as you call it.
> 
> But it doesn't end here. Audio input on Linux is normally exposed with ALSA modules (hw/plughw if the driver is in kernel, but it doesn't have to be), and other OSes have equivalent APIs. A sound (pun unintended) implementation of AM or FM would actually be an ALSA module, and *maybe* also PA and PW modules. (They don't have to be kernel mode drivers.)
> 
> ...Not an FFmpeg device or demux.
> 

speaking of layers. IMHO the kernel and driver layer should end with the IQ
data for SDR. Thats OS specific.
After that the whole chain should be largely OS and HW independent
turning IQ data to a decoded video and audio stream for DVB is the same on every OS
as complex as it may be.
We could feed this back into ALSA on linux but i doubt that would be used alot
more likely players would link to the library directly that turns IQ -> video+audio
even more so because for the player it would be the same on every platform
otherwise the player would have to support platform specific interfaces and not
just one per platform either i think

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

  parent reply	other threads:[~2023-06-25 14:25 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-18 22:28 Michael Niedermayer
2023-06-22 13:43 ` Michael Niedermayer
2023-06-22 13:55   ` James Almer
2023-06-22 15:05     ` Michael Niedermayer
2023-06-22 15:10       ` James Almer
2023-06-22 16:26         ` Michael Niedermayer
2023-06-22 16:42           ` James Almer
2023-06-22 22:00             ` Michael Niedermayer
2023-06-23  2:34 ` Kieran Kunhya
2023-06-23 11:17   ` Michael Niedermayer
2023-06-23 11:36     ` Kieran Kunhya
2023-06-23 16:37     ` Rémi Denis-Courmont
2023-06-23 18:12       ` Michael Niedermayer
2023-06-23 18:17         ` Paul B Mahol
2023-06-23 18:56           ` Michael Niedermayer
2023-06-23 19:10             ` Paul B Mahol
2023-06-23 19:16               ` James Almer
2023-06-24 20:27         ` Rémi Denis-Courmont
2023-06-24 21:03           ` Tomas Härdin
2023-06-25 13:53           ` Michael Niedermayer
2023-06-25 14:25           ` Michael Niedermayer [this message]
2023-06-24 22:19         ` Nicolas George
2023-06-25 14:10           ` Michael Niedermayer
2023-06-27 19:09           ` Rémi Denis-Courmont
2023-06-28 22:15           ` Tomas Härdin
2023-06-29  7:14             ` Nicolas George
2023-06-29  9:46               ` Jean-Baptiste Kempf
2023-06-30 21:51               ` Tomas Härdin
2023-07-02  8:11                 ` Michael Niedermayer
2023-07-02  9:34                 ` Nicolas George
2023-07-02  9:54                   ` Tomas Härdin
2023-07-02  9:56                     ` Nicolas George
2023-06-23 20:10 ` Tomas Härdin
2023-06-23 21:18   ` Michael Niedermayer
2023-06-24  9:51     ` Tomas Härdin
2023-06-24 21:01       ` Michael Niedermayer
2023-06-24 22:01         ` Tomas Härdin
2023-06-25  9:54           ` Michael Niedermayer
2023-06-27  9:00             ` Tomas Härdin
2023-06-27 10:57               ` Nicolas George
2023-06-27 17:07                 ` Tomas Härdin
2023-06-27 17:11                   ` Nicolas George
2023-06-25 10:23           ` Kieran Kunhya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230625142537.GC3250409@pb2 \
    --to=michael@niedermayer.cc \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git