Skip to contentSkip to conversation

mpeg2 support in kernel?

DISCUSSION Britton 3 participants 4 messages Feb 10, 1999 Sound

lore
Share & tools
lore

Britton

author
#0 lore raw

I see the following snipet of code in the O'Reilly Linux Multimedia Guide:

if (formats & AFMT_MPEG) {
printf(" MPEG 2");
(deffmt = AFMT_MPEG) ? printf(" (default)\n") : printf("\n");
}

Is there something you can compile into the kernel that will let the "dsp" produce mpeg 2 encoded stuff? If so I'd love to know about it.

__
GNU GPL: "The Source will be with you... always."

Britton Kerin

#1 lore raw
Quoted 10 lines · Britton

I see the following snipet of code in the O'Reilly Linux Multimedia Guide:

if (formats & AFMT_MPEG) {
printf(" MPEG 2");
(deffmt = AFMT_MPEG) ? printf(" (default)\n") : printf("\n");
}

Is there something you can compile into the kernel that will let the "dsp" produce mpeg 2 encoded stuff? If so I'd love to know about it.

MPEG encoding/decoding does not belong in the kernel but in a user space program or library. The libary option is probably best.

Erik

Signature · 5 lines
+-------------------------------------------------+
     Erik de Castro Lopo     [email protected]
+-------------------------------------------------+
"We all know Linux is great...it does infinite loops in 5 
seconds." -- Linus Torvalds
#2 lore raw
In reply to Britton
Quoted 3 lines · Erik de Castro Lopo

MPEG encoding/decoding does not belong in the kernel but in a user space program or library. The libary option is probably best.

True. The sample format option is there just for (future) devices that support MPEG encoding/decoding in hardware.

Best regards,

Hannu
-----
Hannu Savolainen ([email protected])
http://www.opensound.com (Open Sound System (OSS))
http://www.opensound.com/ossfree (OSS/Free)

author
#3 lore raw
In reply to Britton
Quoted 9 lines · Erik de Castro Lopo
Quoted 8 lines · Britton

I see the following snipet of code in the O'Reilly Linux Multimedia Guide:

if (formats & AFMT_MPEG) {
printf(" MPEG 2");
(deffmt = AFMT_MPEG) ? printf(" (default)\n") : printf("\n");
}

Quoted 6 lines
Quoted 2 lines

Is there something you can compile into the kernel that will let the "dsp" produce mpeg 2 encoded stuff? If so I'd love to know about it.

MPEG encoding/decoding does not belong in the kernel but in a user space program or library. The libary option is probably best.

That's what I'd have thought. So the above snipet of code is testing for that support in one of the included files?

Britton Kerin