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)

Benson 2008-05-29 22:13

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

Originally Posted by qwerty12 (Post 186938)
I'm 95% sure it's on all the partitions (kernel has fixed partition on /dev/mtd2 iirc) , you can verify next time you boot into the flash by running uname -a.

My kernels say BST, fanoush's say CEST and Nokia ones say EEST.

That's right; 100% sure here. One kernel with any normal multi-boot setup. (With the Linux flasher, I think you can boot any kernel; that might be a good way, if you just want to test a different kernel quickly...)

lokidor 2008-06-01 12:38

Re: Here is a working VLC Media Player!!
 
Well the dbus error comes from the alsa dsp plugin, I have submitted a patch for it :
https://garage.maemo.org/tracker/ind...id=81&atid=371
I have rebuild a package with this fix :
http://manupap1.free.fr/maemo/chinoo..._0.7_armel.deb

The good thing it's now with some other vlc fix I can heard my voice in the headset. :D

I will post new packages soon...

lokidor

qole 2008-06-01 16:47

Re: Here is a working VLC Media Player!!
 
Sometimes I wish I could hit the "thanks" button multiple times on a post. This is magnificent. You're stealing all the fun stuff from the GSoC student. He's not going to have much to do. :D

Well, OK, there is this whole playback thing that needs some serious optimization...

EDIT: Installing your .deb requires a bit of forcing:

Quote:

sudo dpkg -i --force-conflicts osso-dsp-plugin-alsa_0.7_armel.deb

dpkg: regarding osso-dsp-plugin-alsa_0.7_armel.deb containing osso-dsp-plugin-alsa:
libasound2-plugins conflicts with osso-dsp-plugin-alsa
osso-dsp-plugin-alsa (version 0.7) is to be installed.
dpkg: warning - ignoring conflict, may proceed anyway !
EDIT2: Still getting the bus error, will wait (impatiently) for your new packages.

lokidor 2008-06-01 18:01

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

Originally Posted by qole (Post 187711)
Sometimes I wish I could hit the "thanks" button multiple times on a post. This is magnificent. You're stealing all the fun stuff from the GSoC student. He's not going to have much to do. :D

Well, OK, there is this whole playback thing that needs some serious optimization...

EDIT: Installing your .deb requires a bit of forcing:



EDIT2: Still getting the bus error, will wait (impatiently) for your new packages.

Effectively the osso-dsp-plugin-alsa package conflicts with the libasound2-plugins package but on my own tablet dpkg removed it cleanly before to install the dsp plugin.

I'm not sure the package is properly installed on your tablet because the dbus error should not happen anymore even with non fixed vlc debian packages.

lokidor 2008-06-01 20:16

Re: Here is a working VLC Media Player!!
 
You can try new packages here :
http://manupap1.free.fr/maemo/chinook/

Adding ":adev=default" to the v4l2 part of the command line should be enough to enable the sound capture.

There is still a lot of work to do :

I didn't succeed in transcoding the audio, this perhaps only a command line issue, I didn't try all the parameters.

I get a vlc crash with an unexpected "Bus error" with the followingl command :
Code:

qvlc v4l2:///dev/video0:chroma="UYVY":width=176:height=144:fps=5:adev=default
lokidor

qole 2008-06-02 06:06

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

Originally Posted by lokidor (Post 187733)
Effectively the osso-dsp-plugin-alsa package conflicts with the libasound2-plugins package but on my own tablet dpkg removed it cleanly before to install the dsp plugin.

I'm not sure the package is properly installed on your tablet because the dbus error should not happen anymore even with non fixed vlc debian packages.

Here's what I'm getting when I try:

Quote:

dpkg -i osso-dsp-plugin-alsa_0.7_armel.deb
Selecting previously deselected package osso-dsp-plugin-alsa.
dpkg: regarding osso-dsp-plugin-alsa_0.7_armel.deb containing osso-dsp-plugin-alsa:
libasound2-plugins conflicts with osso-dsp-plugin-alsa
osso-dsp-plugin-alsa (version 0.7) is to be installed.
dpkg: error processing osso-dsp-plugin-alsa_0.7_armel.deb (--install):
conflicting packages - not installing osso-dsp-plugin-alsa
Errors were encountered while processing:
osso-dsp-plugin-alsa_0.7_armel.deb
EDIT: I can't just remove libasound2-plugins, either:

Quote:

apt-get remove libasound2-plugins
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
libasound2-plugins osso-multimedia
0 upgraded, 0 newly installed, 2 to remove and 4 not upgraded.
Need to get 0B of archives.
After unpacking 381kB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.

qole 2008-06-02 19:07

Re: Here is a working VLC Media Player!!
 
Sorry, me again...

OK, I was getting the bus error with --force-conflicts because it was actually not installing it:

Quote:

Unpacking replacement osso-dsp-plugin-alsa ...
Replaced by files in installed package libasound2-plugins ...
Setting up osso-dsp-plugin-alsa (0.7) ...
When I tried using

Code:

dpkg-deb -x osso-dsp-plugin-alsa_0.7_armel.deb  /
it does its thing silently, but then VLC does this:

Quote:

[00000001] main libvlc debug: translation test: code is "en_GB"
[00000353] dummy interface: using the dummy interface module...
dsp_protocol_open_node(): Could not open pcm device file /dev/dsptask/pcm_rec
alsa_dsp_prepare(): Error in send speech params data
[00000363] v4l2 demux error: Failed to read alsa frame (Input/output error)
[00000363] v4l2 demux error: Failed to read alsa frame (Input/output error)
That v4l2 demux / alsa error just repeats over and over, as log as the video is displayed.

This is very frustrating. Can you post your successful command line that played mic in your headphones?

EDIT: Oops. Forgot to install new VLC packages. Wait a bit...

lokidor 2008-06-02 19:57

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

Originally Posted by qole (Post 188051)
EDIT: Oops. Forgot to install new VLC packages. Wait a bit...

Yes it should work much better with the new packages...
I have applied one patch for the speech error.

Quote:

Originally Posted by qole (Post 188051)
I notice that the camera is VERY particular about the dimensions you give it. It has to be exactly 1.3 ratio, so use 192x144 or 176x132.

Oops I can not believe I missed this one.

lokidor

qole 2008-06-02 20:14

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

Originally Posted by lokidor (Post 188076)
Oops I can not believe I missed this one.

No I was wrong*. I used a gst-launch pipeline to determine the acceptable resolutions, and 176x144 is one of them. That's not the problem.

I only get the bus error when trying to get audio working. What command line actually works?

*This happens a lot.

qole 2008-06-02 20:28

Re: Here is a working VLC Media Player!!
 
Here is the gstreamer pipeline script I use to test the camera and mic. This works to echo both cam and mic. When VLC can do this, I know that the cam and mic are both working.
Code:

gst-launch gconfv4l2src ! "video/x-raw-yuv,width=$1,height=$2,framerate=(fraction)$3/1" ! xvimagesink  dsppcmsrc ! "audio/x-raw-int,rate=8000,channels=1" ! dsppcmsink
you save it as a script, then test the camera parameters by running

Code:

gstest 176 144 8
Again, though, lokidor, I need to know what command line you used to get the mic to echo to your headphones. I cannot get it to work at all.

lokidor 2008-06-02 20:58

Re: Here is a working VLC Media Player!!
 
The dbus error seems to be happen only when the camera video output is launched in the same time as the mic input.

So to be clear at this time I did not succeed in playing both them simultaneously with VLC.

I would like to post the exact command line but I face a very bad bug on my tablet : the applications menu is now completely empty since this weekend (too much installations and tests...) and I have no ssh access this week so I can't even launch a terminal session.

I could only heard my voice if I disabled the camera video output, so you could try :
  • to launch vlc with the cvlc command
  • or to give a false camera device (ex: /dev/null)
  • or to set a bad display environment setting before lauching vlc.

lokidor

qole 2008-06-02 22:21

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

Originally Posted by lokidor (Post 188096)
The dbus error seems to be happen only when the camera video output is launched in the same time as the mic input.

So to be clear at this time I did not succeed in playing both them simultaneously with VLC ... you could try ... to give a false camera output device...

I found I could get VLC to echo audio once when I added "-V dummy" (output video to dummy) to my basic vlc line. After that, I got either silence, bus error, or even a couple of segmentation faults.

EDIT: It seems you only get one shot per reboot. It works only once after a reboot. Perhaps I am exiting incorrectly? (CTRL-C)

EDIT2:
I can send a transcoded audio stream (mpga), but the mpga codec doesn't support low sample rates, so I have to change the samplerate to 22010, which makes me sound like a chipmunk. haven't tried video yet. And I haven't figured out how to send a "raw" audio stream yet. (acodec=raw gives an error).

EDIT3:
I have audio streaming! The transcode portion looks like this:
Code:

:sout="#transcode{vcodec=WMV2,vb=196,samplerate=8000,channels=1}:duplicate{dst=std{access=http,mux=asf,dst=:7070}}"
...Also, streaming video+audio causes the same "bus error" that happens when trying to echo both. Inserting the "-V dummy" allows you to stream audio only.

lokidor 2008-06-03 16:44

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

Originally Posted by qole (Post 188121)
EDIT: It seems you only get one shot per reboot. It works only once after a reboot. Perhaps I am exiting incorrectly? (CTRL-C)

Yes the vlc ctrl-c quits badly vlc without sending the snd_pcm_close command so the device stays in a busy state. There is a mention about this possible problem in the the dsp plugin documentation.
Maybe the solution would be to launch vlc with the command line interface and to exit properly with the quit command.

Quote:

Originally Posted by qole (Post 188121)
EDIT2: I can send a transcoded audio stream (mpga), but the mpga codec doesn't support low sample rates, so I have to change the samplerate to 22010, which makes me sound like a chipmunk. haven't tried video yet. And I haven't figured out how to send a "raw" audio stream yet. (acodec=raw gives an error).

I also thought about this problem of low bitrate and for that I added in the new packages the amr codec which is designed precisely for this case, I tried it few minutes after seeing that :
http://wiki.videolan.org/AMR

Quote:

Originally Posted by qole (Post 188121)
EDIT3: I have audio streaming! The transcode portion looks like this:
Code:

:sout="#transcode{vcodec=WMV2,vb=196,samplerate=8000,channels=1}:duplicate{dst=std{access=http,mux=asf,dst=:7070}}"
...Also, streaming video+audio causes the same "bus error" that happens when trying to echo both. Inserting the "-V dummy" allows you to stream audio only.

Good news, I will try to investigate this bus error as soon as I have a fully functional tablet...

qole 2008-06-25 18:19

Re: Here is a working VLC Media Player!!
 
I guess we're waiting for Antoine now. I added links to the progress you guys (especially Lokidor) have made to his discussion page.

lokidor 2008-06-25 18:55

Re: Here is a working VLC Media Player!!
 
Yes I'm waiting the first commits from Antoine now.
You can check here http://git.videolan.org/?p=vlc-phytos.git;a=summary

qole 2008-06-25 20:18

Re: Here is a working VLC Media Player!!
 
Well, he's on vacation this week, but hopefully next week...

anders_gud 2008-06-27 07:08

Re: Here is a working VLC Media Player!!
 
Does anyone know if the VIDIOC_DQBUF bug is fixed in Diablo?
https://bugs.maemo.org/show_bug.cgi?id=2491

lokidor 2008-06-30 21:02

Re: Here is a working VLC Media Player!!
 
According to what I am seeing now the VIDIOC_DQBUF bug is still present in diablo 4.2008.23-14

svs57 2008-07-25 14:21

Re: Here is a working VLC Media Player!!
 
Where can I download latest vlc for maemo diablo?
Thank you

lokidor 2008-07-27 00:37

Re: Here is a working VLC Media Player!!
 
As I wanted to take a look at the Antoine work's (the GSoC student, see here) , I built a version of vlc from its tree.

This tree is in an alpha stage of development , so don't expect that everything works.

I did it from the maemo 4.1 SDK for diablo, the packages are here

Antoine has added an interface for maemo, you can try it with :
Code:

vlc -I maemo
The menu does not seem to work yet.

I just see that he is currently adding a new video output (port of the omap framebuffer video output of mplayer).

lokidor

qole 2008-08-29 21:23

Re: Here is a working VLC Media Player!!
 
<bump>

According to the rough planning, Antoine should be getting close to something useful. Any updates, lokidor?

qole 2008-08-29 21:35

Re: Here is a working VLC Media Player!!
 
Hm, I guess I can answer my own question...

Last activity: Mon, 18 Aug 2008: "Maemo GUI: Add a basic playlist listing the media files on the device"

I'd be interested in seeing a compiled version of this...

lokidor 2008-08-30 12:52

Re: Here is a working VLC Media Player!!
 
I should be able to build packages before the end of the weekend.

I dont know if Antoine will have the time to follow the planning.

From what I see on the git log for the moment he did not yet committed something about the webcam.

I hope he will at least have the time to provide packages optimized well, not like mine

lokidor

lokidor 2008-08-30 21:49

Re: Here is a working VLC Media Player!!
 
New packages here

I got some bugs with the maemo interface but the playlist and the omapfb video output seems to work.

lokidor

qole 2008-09-02 23:29

Re: Here is a working VLC Media Player!!
 
So, with the Google SoC 2008 over today, can we expect anything more, or does this mean we've got as much as we're going to get? Perhaps Antoine might still commit one more version to the VLC git? I mean, he's been doing something for the last two weeks, right? So he'll probably commit that before closing down his project, right?

qole 2008-09-02 23:53

Re: Here is a working VLC Media Player!!
 
Test results are not very good; mplayer is still a much better video player for the tablets. My tablet-optimized xvid files are not watchable via this VLC. The camera gets the "failed to wait (VIDIOC_DQBUF)" error. If you want to see the output, you can't run VLC twice, it is too resource hungry. mplayer works to receive the VLC video stream.

I guess it's a start to build upon...

sampppa 2008-09-25 16:46

Re: Here is a working VLC Media Player!!
 
Does streaming from webcam work with this version already? With http streaming?
I have tried to build vlc from those sources but i have failed everytime, tools in scratchbox are all so outdated...

lokidor 2008-09-28 11:17

Re: Here is a working VLC Media Player!!
 
Streaming over http works (audio or video but not both at the same time)

Typical command for video :
Code:

cvlc -vvv v4l2:///dev/video0:chroma=UYVY:height=144:width=176:swscale_maemo \
--sout="#transcode{vcodec=H263,fps=10,vb=196}:std{access=http,mux=asf,dst=:7070}"

Did you followed the advices that I gave you in PM about the outdated tools in scratchbox ?
If you're still interested in building vlc inside scratchbox, I think I can help you a little bit. (have not a lot of time)
I thought more people would have done the same thing as me, so you are welcome.

lokidor

sampppa 2008-11-21 21:07

Re: Here is a working VLC Media Player!!
 
How is this VLC project going on?? Is this guy Antoine still working on with this ? It would be nice to see maemo port of VLC.

rafiks 2008-11-24 15:25

Re: Here is a working VLC Media Player!!
 
how is VLC compared to the mplayer on maemo?

sampppa 2008-11-25 09:16

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

Originally Posted by rafiks (Post 244258)
how is VLC compared to the mplayer on maemo?

At least for me VLC is better because of its good streaming capabilities...

qole 2008-11-25 17:07

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

Originally Posted by sampppa (Post 244483)
At least for me VLC is better because of its good streaming capabilities...

I found that maemo VLC doesn't play video as well as mplayer, but it can stream video or audio out (not both simultaneously).

Both mplayer and VLC can stream video IN to the tablet.

Peet 2008-12-16 15:42

Re: Here is a working VLC Media Player!!
 
The VLC changelog (Changes between 0.9.8a and 1.0.0-git) has now an entry about Maemo version:

Code:

Maemo Port:
 * New Maemo port with:
  - an interface based on Hildon framework.
  - scaler based on the swscale_nokia770 library.

FWIW.

mtron 2008-12-16 18:53

Re: Here is a working VLC Media Player!!
 
wow, that's great news! thanks for the information Peet.Though after qole's reports i don't expect too much.

ukki, imagine what neat features for knots would be possible with a working vlc for maemo :) , eg VDR OSD support :D


All times are GMT. The time now is 03:12.

vBulletin® Version 3.8.8