Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I need to run software that supports only v4l (not v4l2)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Anatoly_khc
n00b
n00b


Joined: 30 Aug 2015
Posts: 2

PostPosted: Sun Aug 30, 2015 12:07 pm    Post subject: I need to run software that supports only v4l (not v4l2) Reply with quote

Several years ago I've used flumotion to stream html5 video (vp8). I've done it on 3.7.10-gentoo with no problems, except the fact that flumotion from portages was comletely broken and I've built it from sources with all dependencies. Now I trying to build such a system again, even using same 3.7.10-gentoo. Now I using same OS image with same (as I think) sources of everything. However, for reason I can't understand, now I can't compile from sources working gst-plugins-base-0.10.36 with --enable-gst_v4l on which flumotion depends.
When I running ./configure --prefix=/usr --enable-gst_v4l:
Code:
configure: *** checking feature: Video 4 Linux ***
configure: *** for plug-ins: video4linux ***
checking whether VID_TYPE_MPEG_ENCODER is declared... no
configure: *** These plugins will not be built: video4linux


Then I've tried to make a link:
lrwxrwxrwx 1 root root 31 авг. 28 17:56 /usr/include/linux/videodev.h -> /usr/include/libv4l1-videodev.h
After that gst-plugins-base compiles ok, but when I starting flumotion-admin and trying to choose /dev/video0, I getting error like "ioctl not supportded"
Also:
Code:
#gst-launch v4lsrc !  video/x-raw-yuv, format=\(fourcc\)YUY2, width=720, height=576 ! ffmpegcolorspace ! ximagesink
Установка конвейера в состояние PAUSED...
ОШИБКА: Конвейер не хочет становиться на паузу.
ОШИБКА: из элемента /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0: Не удалось получить/установить параметры ресурса.
Дополнительная отладочная информация:
v4l_calls.c(89): gst_v4l_get_capabilities (): /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0:
error getting capabilities Неприменимый к данному устройству ioctl of from device /dev/video0
Установка конвейера в состояние NULL...
Освобождение конвейера...


While
Code:
# gst-launch v4l2src !  video/x-raw-yuv, format=\(fourcc\)YUY2, width=720, height=576 ! ffmpegcolorspace ! ximagesink

works.
So what is the way to make v4l work? I wonder that several years ago I even not faced this problem, using same sources for everything.
Back to top
View user's profile Send private message
Anatoly_khc
n00b
n00b


Joined: 30 Aug 2015
Posts: 2

PostPosted: Mon Aug 31, 2015 12:24 pm    Post subject: Reply with quote

Finally, I solved the problem, it was very stupid thig :oops: . Flumotion does support v4l2. But in flumotion-admin GUI this is under "WebCam", not under "TV Card". Those items named quite wrong. "TV Card" is stand for v4l1 and "WebCam" is for v4l2.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum