maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   Here is a working VLC Media Player!! (https://talk.maemo.org/showthread.php?t=14126)

lokidor 2008-05-21 20:33

Re: Here is a working VLC Media Player!!
 
Looking at the VLC code, it seems that the "Failed to wait (VIDIOC_DQBUF)" error is returned by vlc when the VIDIOC_DQBUF function of the v4l2 driver returns the error code EIO.

And looking at the maemo bug list, I found a patch from Sakari Ailus dealing with this error :
https://bugs.maemo.org/attachment.cgi?id=661

"vidioc_dqbuf returned -EIO in a number of cases which is probably a bit confusing for many programs. This patch changes behaviour so that the next intact frame is always returned (i.e. never -EIO anymore)."

I don't think this patch is applied to the current kernel because I don't see it in the source code, but I think it could do the trick.

Lokidor

qole 2008-05-22 17:33

Re: Here is a working VLC Media Player!!
 
Any ideas why "size" is being ignored?

As for the buffer errors: I've seen similar buffer errors with other camera-related programs, especially mplayer. I would say that all of the programs that use the camera (even gstreamer) struggle with the "missing frames" problem. I would love to see a patched kernel (I guess fanoush is the go-to guy for that), but I hope that a maemo version of VLC has some kind of workaround, since most people won't have a custom kernel.

qole 2008-05-22 23:34

Re: Here is a working VLC Media Player!!
 
I have a fairly acceptable stream from VLC now. I replaced "size" with "width" and "height" and I used 160x120 for the dimensions.

Code:

vlc -Idummy v4l2://dev/video0:chroma=RV16:width=160:height=120 :sout="#transcode{vcodec=WMV2,fps=10,vb=196}:duplicate{dst=std{access=http,mux=asf,dst=:7070}}"
I have to use mplayer (mplayer http://localhost:7070) if I want to see the video on the tablet, since I can't seem to get VLC to actually display video. :( :o

One bit of good news: we don't have to worry too much about hildonizing VLC. Just run the following:

Code:

vlc -I http
and then point your browser at http://localhost:8080 :D

lokidor 2008-05-23 17:53

Re: Here is a working VLC Media Player!!
 
Hey qole,

Reading your command line I think you are missing a slash, you should do this :
Code:

vlc -Idummy v4l2:///dev/video0:chroma=RV16:width=160:height=120 :sout="#transcode{vcodec=WMV2,fps=10,vb=196}:duplicate{dst=std{access=http,mux=asf,dst=:7070}}"
That will have no impact on the video but that will prevent the following error to come :
Code:

[00000369] v4l2 demux error: cannot open video device (No such file or directory)
You will still have the ALSA/OSS errors.

Lokidor

lokidor 2008-05-24 19:37

Re: Here is a working VLC Media Player!!
 
Hey sampppa,

Can't reply your last private message, I think your inbox or outbox is full.

To do the mv commands you need to be outside scratchbox and run the commands as root.

Be sure to be in the folder you run "scratchbox/login" and you should be able to complete commands like:
Code:

mv scratchbox/tools/bin/m4.bak scratchbox/tools/bin/m4

qwerty12 2008-05-24 19:44

Re: Here is a working VLC Media Player!!
 
Quote:

Originally Posted by qole (Post 184715)
Any ideas why "size" is being ignored?

As for the buffer errors: I've seen similar buffer errors with other camera-related programs, especially mplayer. I would say that all of the programs that use the camera (even gstreamer) struggle with the "missing frames" problem. I would love to see a patched kernel (I guess fanoush is the go-to guy for that), but I hope that a maemo version of VLC has some kind of workaround, since most people won't have a custom kernel.

Well, if you want, I could compile the stock nokia kernel with that patch applied?

lokidor 2008-05-24 20:01

Re: Here is a working VLC Media Player!!
 
Yes I think that would be very useful to test this patch.

Thank you qwerty12

qwerty12 2008-05-24 20:12

Re: Here is a working VLC Media Player!!
 
Sure, I'm away from computer now but I'll do it 1st thing in the morning if someone doesn't beat me overnight :)

qwerty12 2008-05-25 08:15

Re: Here is a working VLC Media Player!!
 
What did I tell you ;) :)

This is the stock kernel with the patch applied:
http://www.mediafire.com/?mabwyzytjuo

lokidor 2008-05-25 13:06

Re: Here is a working VLC Media Player!!
 
Thanks qwerty12

I tested your stock kernel, as expected the patch solve the VIDIOC_DQBUF error.

Lokidor


All times are GMT. The time now is 01:45.

vBulletin® Version 3.8.8