Tutorial: compile VLC with hardware acceleration on Raspberry Pi - Raspberry Pi General

Hi everyone,
As many have been searching for this since the Raspberry has been out, I decided to make a tutorial on how to compile and run VLC with hardware acceleration enabled on Raspberry.
You can find it at intensecode.blogspot.com/2013/10/tutorial-vlc-with-hardware-acceleration.html
Hope it helps

Excellent! Just what I was looking for! I'll give it a go and report back any issues.
I was running Raspxbmc to stream, but need VLC under my Raspbian setup to stream HD.
Cheers

gekod said:
Hi everyone,
As many have been searching for this since the Raspberry has been out, I decided to make a tutorial on how to compile and run VLC with hardware acceleration enabled on Raspberry.
You can find it at intensecode.blogspot.com/2013/10/tutorial-vlc-with-hardware-acceleration.html
Hope it helps
Click to expand...
Click to collapse
I followed your post and successfully compile vlc on my Raspberry. The player seems to play OK but it occasionally lost the display when queue up several video clips. The sound is still on but there is no video. The only way to get the display back is to exit vlc. When I activated the http interface, the video is gone after the first video. There are 4 errors from vlc vout when the video starts, may be this is the reason for the disappearing video screen.

Compiling VLC is always very hard.

How long?
How long does it take to compile it?
More than one hour?

TheXorg said:
How long does it take to compile it?
More than one hour?
Click to expand...
Click to collapse
I think a few hours, I recommend you to use RASPBMC its faster and looks better.

DarkD1988 said:
I think a few hours, I recommend you to use RASPBMC its faster and looks better.
Click to expand...
Click to collapse
Yep, I'm currently using it. But it can't play everything like some .MP4's from my camera.
Can VLC play everything with Hardware Acceleration? (I've got a MPEG2-License)

sry I tried VLC not long enough.
Which Codec use your Cam?

Related

Coreplayer Audio

I've set my Coreplayer up as per the posts elsewhere in the Athena threads and the video quality is almost perfect now.
I'm using 320x240, DivX 6, 500-700KBps constant bitrate files.
Stereo MP3 audio. 96kbps or 128kbps.
After 10 mins of playback the audio slowly starts to lose sync (it plays fine on my PC).
Has anyone got any ideas what I need to do to stop the audio from losing sync?
Any help greatly appreciated.
hi
when you say "outof sync", does this mean that the audio is fine but the video is not "in time"? if yes, that's exactly what i was going to ask in the forum =) but i'll be trying the parameters you set. i've been meaning to ask the "optimized" setting for this application.
cheers
Robson said:
hi
when you say "outof sync", does this mean that the audio is fine but the video is not "in time"? if yes, that's exactly what i was going to ask in the forum =) but i'll be trying the parameters you set. i've been meaning to ask the "optimized" setting for this application.
cheers
Click to expand...
Click to collapse
Yep, that's exactly it. It starts off fine, then ever so slowly the video gets ahead of the audio.
I've 'fiddled' with just about every setting I can think of within Coreplayer but have yet to find a solution.
Yep, that's exactly it. It starts off fine, then ever so slowly the video gets ahead of the audio.
I've 'fiddled' with just about every setting I can think of within Coreplayer but have yet to find a solution.[/QUOTE]
well, at least your video gets ahead. for me it's the other way around...the video is late yet the audio sounds perfect =)
cheers
ive already asked this question. with no replys. ive tried every setting and format possible. still loses sync. it doesnt matter if its from the sd card micro drive or streaming. it still loses sync. ive even tryed disabling the auto scaler and running tcpmp over clocked. still loses sync. im a a loss. if you find a solution let me know.
I guess we need to wait for the next version of Coreplayer which will (hopefully) be released on the 18th of June. It supposedly fixes some of the ATI issues.
I am so sick to death of this subject!! Not mad at you guys, but at ATI/AMD. This has been an ongoing issue since September last year when the TyTN was released with the ATI Imageon chip, and due to no input or support from ATI/AMD, Corecodec cannot fix this issue as it's to to with the Imageon hardware.
Bottom line is find the settings that work best for you. For me, I find TCPMP v0.72RC more stable and versatile than CorePlayer v1.04. Also set Video driver as Imageon (NOT Imageon decoder!) this yields best performance and visual quality 'during' playback.
If you're using DVD-Rips use the above setting, but if your playing/stretching QVGA 320x240 on your Athena, then Rawframebuffer mode is even more stable in the GUI, but lacks the ooomph of the Imageon driver, which to some extent might well eradicate your lipsync issues.
One more test folks. Play your video whilst your Athena is pluggen in to mains power. See if the lipsync is still out. If it is make manual adjustments in the A/V offset in TCPMP under Advanced.
mackaby007 said:
I am so sick to death of this subject!! Not mad at you guys, but at ATI/AMD. This has been an ongoing issue since September last year when the TyTN was released with the ATI Imageon chip, and due to no input or support from ATI/AMD, Corecodec cannot fix this issue as it's to to with the Imageon hardware.
Bottom line is find the settings that work best for you. For me, I find TCPMP v0.72RC more stable and versatile than CorePlayer v1.04. Also set Video driver as Imageon (NOT Imageon decoder!) this yields best performance and visual quality 'during' playback.
If you're using DVD-Rips use the above setting, but if your playing/stretching QVGA 320x240 on your Athena, then Rawframebuffer mode is even more stable in the GUI, but lacks the ooomph of the Imageon driver, which to some extent might well eradicate your lipsync issues.
One more test folks. Play your video whilst your Athena is pluggen in to mains power. See if the lipsync is still out. If it is make manual adjustments in the A/V offset in TCPMP under Advanced.
Click to expand...
Click to collapse
Rgr that - will test later - thanks!
Ive got the exact same problem on my x7510 i start playing it and slowly the video will go ahead of the audio and its out of sync very easy to detect when your viewing a lecture. ive tried all kind of video players
Vico100 said:
Ive got the exact same problem on my x7510 i start playing it and slowly the video will go ahead of the audio and its out of sync very easy to detect when your viewing a lecture. ive tried all kind of video players
Click to expand...
Click to collapse
How cam that you can use it.
I'v tried 0.72 version as well as 0.81 and both give me the "crash.txt" error while starting TCPMP.
Oh, you are using CorePlayer not TCPMP, right?
im using coreplayer the latest version becuase tmcp as you said keeps on crashing, (for me too).
With a hard reset playing even a video in windows media player still gives a audio lag. Its so bad, now i don't care about quility just let me have a video with audio i don't care how bad the video looks like.
Does anyone have any solution? ive tried all kinds of "video output" settings and it still gives audio lag (even raw framebuffer)
FINALLY! ah found it after lots of searching of google and forums and sites...
its -400ms and its perfect thought the whole video..
(Note: the best method that i use to see if its in sync is to watch a lecture and then watch their mouth real careful and you'll see that -400ms gives the best results )
Vico100 said:
FINALLY! ah found it after lots of searching of google and forums and sites...
its -400ms and its perfect thought the whole video..
(Note: the best method that i use to see if its in sync is to watch a lecture and then watch their mouth real careful and you'll see that -400ms gives the best results )
Click to expand...
Click to collapse
What is this -400Ms?
-400ms is -400 milliseconds as in time. The minus sign means "start playing the video 400 milliseconds ahead of the audio. Its perfect for core player put all the settings on max just take acceleration and dithering off. And it plays a DVD rip perfectly no conversion very sweet on its 5 inch screen
If you don't know put the -400 in the settings next to "manual A/V offset +/-" and just type in "-0.400"
Vico100 said:
-400ms is -400 milliseconds as in time. The minus sign means "start playing the video 400 milliseconds ahead of the audio. Its perfect for core player put all the settings on max just take acceleration and dithering off. And it plays a DVD rip perfectly no conversion very sweet on its 5 inch screen
If you don't know put the -400 in the settings next to "manual A/V offset +/-" and just type in "-0.400"
Click to expand...
Click to collapse
Thanks for sharing this tip!
Vico100 said:
-400ms is -400 milliseconds as in time. The minus sign means "start playing the video 400 milliseconds ahead of the audio. Its perfect for core player put all the settings on max just take acceleration and dithering off. And it plays a DVD rip perfectly no conversion very sweet on its 5 inch screen
If you don't know put the -400 in the settings next to "manual A/V offset +/-" and just type in "-0.400"
Click to expand...
Click to collapse
So does this work or not???
I am confused, because on the other thread, you mentioned it did not work.
it does for like 5-10 minutes then audio gets our of sync
Vico100 said:
it does for like 5-10 minutes then audio gets our of sync
Click to expand...
Click to collapse
Thank you for this information.
Vico100 said:
im using coreplayer the latest version becuase tmcp as you said keeps on crashing, (for me too).
With a hard reset playing even a video in windows media player still gives a audio lag. Its so bad, now i don't care about quility just let me have a video with audio i don't care how bad the video looks like.
Does anyone have any solution? ive tried all kinds of "video output" settings and it still gives audio lag (even raw framebuffer)
Click to expand...
Click to collapse
Does it play flv files as well?
Tadeusz said:
Does it play flv files as well?
Click to expand...
Click to collapse
Coreplayer plays flv files, yes. There's no need to separately install additional component. It benchmarks better than TCPMP in my test.

Video player for X1

Ok ive installed Coreplayer and every time i change to a new video like after changing 4-5 times it ALWAYS freezes... and i have to restart the phone by taking out the battery...
does anyone know of a better video player than coreplayer?
What the?
To be honest coreplayer works like a dream for me. Watching videos on it daily without any problems, fluent and all. Have you set output mode to Qtv?
Cheers
Agaas said:
What the?
To be honest coreplayer works like a dream for me. Watching videos on it daily without any problems, fluent and all. Have you set output mode to Qtv?
Cheers
Click to expand...
Click to collapse
yeah i have it on Qtv... what version of coreplayer do you have?

Video Codecs?

Ive got some .avi files and stuff that i'd like to put on my phone.
Unfortunalty the X1 does support them so I was wondering if there were any codes to make them run.
I know the Viewty had a Divx codec so was just wondering if the X1 had anything similar
Try TCPMP/Core which include a wide variety of codecs within the player.
Got a link for it?
I can only find .07RC1 or something
Here you go my friend
http://mytreo.net/downloads/the-core-pocket-media-player,930.html
Here's the fix: http://forum.xda-developers.com/showthread.php?p=2396421
Thanks
Why when I go to download it do I get all the code instead of the .cab downloading lol
Ok not to sound like a nub. But i dont get how you patch/fix it lol
EDIT: nevermind, sorted it. Nice one
Hello Guys!
i've tryed TCPMP and also the Core Player but on both AVI-Files was very slowly. The Sound was Ok, but at the Video Source many frames are dropped. What's wrong?
P.S.: The James Bond Trailer in MP4-File is very beautiful.
Shimpuu said:
Hello Guys!
i've tryed TCPMP and also the Core Player but on both AVI-Files was very slowly. The Sound was Ok, but at the Video Source many frames are dropped. What's wrong?
P.S.: The James Bond Trailer in MP4-File is very beautiful.
Click to expand...
Click to collapse
i have made a script to convert any videos into a MP4 like the james bond one.
if you are interested: http://forum.xda-developers.com/showthread.php?t=453684
The, play them with media player to have the hardware accelleration

XBMC with the native android videoplayer

Hi Guys,
I have an android mini pc dongle and i want to use it as a mediaplayer.
The native videoplayer of android plays everything flawless, even 3d movies.
Now i want to use XBMC but is lags very much when playing 1080p movies. I have read that it is possible to use XBMC now with external players like MX player. I tried that but it still lags.
My question is if it is possible to combine the android native videoplayer with XBMC. In case it does i think i will solve the 1080p issues.
Hope you can help me
Cheers
pirilampo8 said:
Hi Guys,
I have an android mini pc dongle and i want to use it as a mediaplayer.
The native videoplayer of android plays everything flawless, even 3d movies.
Now i want to use XBMC but is lags very much when playing 1080p movies. I have read that it is possible to use XBMC now with external players like MX player. I tried that but it still lags.
My question is if it is possible to combine the android native videoplayer with XBMC. In case it does i think i will solve the 1080p issues.
Hope you can help me
Cheers
Click to expand...
Click to collapse
Hi..
The issue has nothing to do with the videoplayer lagging. XBMC on android is sh*t at the minute.. Even on PC it's not that good.
Seems the devs are more focused on implementing new features over stability and bug fixing.
And it's been like that for years now. Don't expect much from XBMC on android..
Cheers..
Thx for ur reply!
Which app do you recommend to manage movies on android?
CtrlAltDelIrl said:
Hi..
The issue has nothing to do with the videoplayer lagging. XBMC on android is sh*t at the minute.. Even on PC it's not that good.
Seems the devs are more focused on implementing new features over stability and bug fixing.
And it's been like that for years now. Don't expect much from XBMC on android..
Cheers..
Click to expand...
Click to collapse
XBMC on android depends on the device you are running.
XBMC runs flawlessly on my Nexus 7, 1080p, 10bit video with no problem.
Have you tried one of the builds from XBMCAndroid.com?
They have several builds available and one that is targeted to set top/USB android devices.
Sm0k3d 0uT said:
XBMC on android depends on the device you are running.
XBMC runs flawlessly on my Nexus 7, 1080p, 10bit video with no problem.
Have you tried one of the builds from XBMCAndroid.com?
They have several builds available and one that is targeted to set top/USB android devices.
Click to expand...
Click to collapse
Hi, Yes i tried several versions. Also with the mx player but even with the mx player it still lags a bit.
The best solution would be the native android videoplayer with XBMC.
The device i use is a android mini pc cx803

Watch videos without XBMC (Root Required)

Just wanted to share a setup that I am using and very happy with. XBMC still is a little too buggy for me. Here is what I did. There are many different ways to get these programs on your Ouya. This is used to instruct on how I setup these programs.
1. Get ES File Explorer or any other file explorer with network capability.
2. Get MX Player
3. Open you file explorer program, navigate to your shared folder in your network. Click on video file. The file will play but then it will complain about codecs.
4. Hit the ouya button and go to tools--->settings---->decoder. Check Use H/W+ decoder. This will enable a smooth playback.
5. Now you need audio fixed (DTS, DD plus, etc) go to this thread. Scroll down to Arm v7 with Neon Support and download that and put it on your Ouya.
8. Open the same video file again and hit your ouya button. Tools--->Settings--->Decoder. Scroll down to Custom codec, select. Then point it to the unzipped folder.
I have played all kinds of video files and they play flawlessly. I know there is prob an easier way of doing this. But I thought I would share it.
Edited for misleading the need for root.
You don't need any sort of root anything to install or use mxplayer. You should probably hold off on making guides for people if you have no clue what you're talking about.
gianptune said:
You don't need any sort of root anything to install or use mxplayer. You should probably hold off on making guides for people if you have no clue what you're talking about.
Click to expand...
Click to collapse
Cool, Do you not have to sideload any app that is not available from the Ouya store? Anyway you look at it I was just offering a way to play video files from a share drive. Not my intention to mislead anyone with a incorrect way of using the Ouya equipment. If It doesn't need root for sideloading then obviously the guide would be incorrect. However if you use the Google Play store you do have to have root.
You should probably update your post to just say 'side load MX player', dont mention root.
Also you can use, Plex, BS Player, Dice player.... all work fine. However currently HW decoding of vc-1 video(many blu-rays) does not work on the ouya.
gottahavit said:
You should probably update your post to just say 'side load MX player', dont mention root.
Also you can use, Plex, BS Player, Dice player.... all work fine. However currently HW decoding of vc-1 video(many blu-rays) does not work on the ouya.
Click to expand...
Click to collapse
Changed, thank you for the response. I have a Roku 3 and Plex is a great program. I just like to see higher definition files play without transcoding. I realize there are many programs that achieve the same goal as MX player. I was just putting this out there because I have tried to do similar things on other devices and not been successful. I didn't realize that it would be scrutinized so much. I have been an android lover since I had my first droid. Just trying to share my findings.
Good job
falkien said:
Changed, thank you for the response. I have a Roku 3 and Plex is a great program. I just like to see higher definition files play without transcoding. I realize there are many programs that achieve the same goal as MX player. I was just putting this out there because I have tried to do similar things on other devices and not been successful. I didn't realize that it would be scrutinized so much. I have been an android lover since I had my first droid. Just trying to share my findings.
Click to expand...
Click to collapse
Well, i for one found it very helpfull. Thanks
What version of MX player are you using? For me it is crashing. And when i try to load custom codec folder shows empty even though i copied file there. Thanks.
Update:
I figured out. It is working perfect. if you need to go to settings you have to play some video and go to settings through there. If you click on MX Player it will crash.Only problem so far is no surround sound if you have AV receiver. It will only play stereo. But it's good to have alternate video player. Thank you for sharing.
suet hemeene
You should just be able to sideload the apps because they don't use superuser.
Personally I still like xbmc but this is nice for those that might not like it
Kavex said:
You should just be able to sideload the apps because they don't use superuser.
Personally I still like xbmc but this is nice for those that might not like it
Click to expand...
Click to collapse
I knew this when I wrote it, but I was thinking about the play store the whole time in my head, which does require root. After tweaking XBMC a little I am using it a little more. But I agree, always good to have another way to do something on the Ouya. I have been a member here for a while, I just don't usually post. This is usually why. Too many smart people on this form, well smarter than me i'm afraid.
falkien said:
I knew this when I wrote it, but I was thinking about the play store the whole time in my head, which does require root. After tweaking XBMC a little I am using it a little more. But I agree, always good to have another way to do something on the Ouya. I have been a member here for a while, I just don't usually post. This is usually why. Too many smart people on this form, well smarter than me i'm afraid.
Click to expand...
Click to collapse
Just my $0.02, BSPlayer is better because it has a built in SMB browser, so if you're wanting to play videos over the network but don't wanna use XBMC for some reason, that's my choice...

Categories

Resources