Re: v4l2 Device with H264 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Apr 2012, Rémi Denis-Courmont wrote:

  Hello,

On Tue, 17 Apr 2012 12:02:25 +1200 (NZST), Pieter De Wit
<pieter@xxxxxxxxxxxxx> wrote:
I would like to stream H264 from a v4l2 device that does hardware
encoding. ffmpeg and all of those doesn't seem to understand H264, but
v4l2 "does". If I run qv4l2, it shows that H264 is in the encoding list
and I can preview that. Using v4l2-ctl, I can set the pixel format to
H264
and the "get-fmt" reports it correctly.

Is there any way I can get a "raw" frame dump from the v4l2 device ? I
have used "all" the samples I can find and none seems to work.

If the device supports read(/write) mode, I suppose you could simply read
the device node as a file.

'vlc v4l2c:///dev/video0 --demux h264' might work "thanks" to a software
bug whereby the format is not reset, but I have not tried. V4L2 H.264 is
supported in VLC version 2.0.2-git: 'vlc v4l2:///dev/video0:chroma=h264'.

--
Rémi Denis-Courmont
Sent from my collocated server


Hi,

Thanks for the reply. I suspect that there is some tricks needed to get the h264 stream from this device, into something of a player. Can some please point me to some code where the v4l2 device is read and the result is dumped to stdout ? I will then modify that code :) and submit patches if needed etc.

Cheers,

Pieter

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux