Skip to contentSkip to conversation

Question on dvr device copy

media Hamad Kadmany 1 participant 2 messages Feb 12, 2012 – Feb 14, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

Currently when playing stream from memory through dvr device (through write calls), the written buffer is copied from user-space to kernel space. The same applies when recording a stream, the TS packets received from HW are copied to dvr ring-buffer.

I'm a bit concerned about the performance due to the copy, and whether we better have a memory mapped ring-buffer in dvr device output and/or dvr device input with user-space to cope with high bitrate streams.

Your feedback on this will be mostly appreciated.

Thanks
Hamad

#1 lore raw

Hi,

I would appreciate if anyone can feedback on this, I'm considering implementing mmap in demux/dvr devices so that user-space can access the input/output buffers directly without the need for read/write operations.

Thanks
Hamad

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hamad Kadmany
Sent: Sunday, February 12, 2012 4:19 PM
To: [email protected]
Subject: [media][dvb-core] Question on dvr device copy

Hi,

Currently when playing stream from memory through dvr device (through write calls), the written buffer is copied from user-space to kernel space. The same applies when recording a stream, the TS packets received from HW are copied to dvr ring-buffer.

I'm a bit concerned about the performance due to the copy, and whether we better have a memory mapped ring-buffer in dvr device output and/or dvr device input with user-space to cope with high bitrate streams.

Your feedback on this will be mostly appreciated.

Thanks
Hamad

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html