WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: VLC on piCore.  (Read 3132 times)

Offline meo

  • Hero Member
  • *****
  • Posts: 651
VLC on piCore.
« on: July 22, 2023, 03:50:56 PM »
Is it possible to use vlc on piCore? (found the question mark!).
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

aus9

  • Guest
Re: VLC on piCore.
« Reply #1 on: July 22, 2023, 09:02:48 PM »
HI Meo

I am not sure which media type you need to play but

Code: [Select]
cvlc /pathway/2/file.mp3  # plays audio as expected with a pulsaudio error msg as per below

cvlc /pathetc/file.mp4 # a video screen appears and plays as expected

I do not use or love pulseaudio so YMMV
The mp4 screen does not have as far as I can tell any GUI controls but I have spent no time looking. YMMV

I am waiting for some Xorg type updates and I plan to fix parole which currently broken due to libffi
if interested.

There are other audio only players that might suit you depending on what format you reply?

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: VLC on piCore.
« Reply #2 on: July 23, 2023, 05:04:06 AM »
Thanks a lot for your help! Will try. I want to play mp4 videos. I have used Kali Linux for Raspberry Pi and it works perfect. The downside is that the aluminum box that uses passive cooling get very hot. I burnt my fingers yesterday when putting something under it to help it to cool down. Thanks again! I think that the Raspberry Pi would be a better choice for me. I have been away from Tiny Core for years now so I have forgotten a lot. Yesterday was the first day I got the piCore to work with a GUI.

Thanks a lot,
Meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

aus9

  • Guest
Re: VLC on piCore.
« Reply #3 on: July 23, 2023, 09:07:16 AM »
mp4 you can also download ffmpeg.

Code: [Select]
ffplay file.mp4
offers keyboard skip ahead and such
https://linux.die.net/man/1/ffplay

aus9

  • Guest
Re: VLC on piCore.
« Reply #4 on: July 24, 2023, 06:45:09 AM »
meo

if interested, I have recompiled parole which has locales but not Swedish.
Have you ever used parole on any linux distro before?
I can give you a screenshot if interested and post the dep file if interested.

Would you like to be a translator of a non-Swedish file -> Swedish using below examples?

Let me give you an example from a fr and de file for the same en string

Quote
#: ../src/parole-player.c:1280
msgid "Play"
msgstr "Lecture"

#: ../src/parole-player.c:1280
msgid "Play"
msgstr "Wiedergabe"

Based on your kb post, you may need to save any file in UTF-8 to protect your Swedish letters.

No rush to reply. I will attempt tomorrow to fake a swedish file and see if I can compile it.
And only if I succeed ...depending on whether you have time or interest....we can proceed.

I work faster than a snail but not sure if you have seen aussie snails?  ;D

these are available for you to cheat off if you know them. Name the one you would like to use
English is available too

Quote
zh_TW zh_CN uk ug tr th te sv sr sq sl sk ru pt_BR
pt pl oc nn nl nb ms lv lt ko kk ja it is ie id
hye hy_AM hu hr he gl fr fi eu et es en_GB en_AU
el de da cs ca bg be ast ar
« Last Edit: July 24, 2023, 06:51:18 AM by aus9 »

aus9

  • Guest
Re: VLC on piCore.
« Reply #5 on: July 24, 2023, 09:43:25 PM »
Ok this is my last post here to save any embarrassment if I am a bully.

I was able to create a fake se file, adjust Makefile and compile such that my fake entry
Code: [Select]
root@box:/tmp/parole/usr/local/share/locale/se/LC_MESSAGES# cat parole.mo | /usr/local/bin/grep "zzz
"
/usr/local/bin/grep: (standard input): binary file matches

works as expected

It is now up to you or someone with time to show an interest in this. Otherwise I will not reply here

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: VLC on piCore.
« Reply #6 on: July 25, 2023, 06:05:06 PM »
Hey aus9,

Just to let you know, I do actually read all your "piCore" posts, :) (incase they are relevant to piCorePlayer.)

Posting to this forum is still problematic for me, so I don't usually respond.

regards
Greg

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: VLC on piCore.
« Reply #7 on: July 26, 2023, 09:43:39 AM »
Hi aus9!

I have never used parole but I can give it a shot. Translating from English to Swedish wouldn't be a problem

Kind regards,
meo

"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

aus9

  • Guest
Re: VLC on piCore.
« Reply #8 on: July 26, 2023, 10:14:55 PM »
Hi

as you did not choose a language and seem ok with british english is a a clickable link which is a raw language file
https://www.dropbox.com/scl/fi/cd92u79wc3kl23saxfbkx/en_GB.po.txt

1) starting from the top...ignore edit to include your email address, I do no need it
we will change that to meo@tinycorelinux.net

2) However, as I am nice, if your test of the resultant file I need to compile....works....I am plan to submit our raw file to the XFCE team. So if you want others to contact you give out a email address that you used on for shady characters. eg I have an email for my family and separate email for TC and a separate email when join other places and not sure if I am going to get spam.  Your choice.

3) Note the language in examples
"Language: en_GB\n"  and another example for French is "Language: fr\n"
so change this to whatever Swedish is

4) then for each entry labelled msgstr give me your best one line translation that a Swede would understand please.

5) As prev discussed...your fonts may include  non C lang fonts...so you need to save any text file in UTF-8.

I use leafpad....you would pulldown and choose save as.....and at the bottom pulldown and change character coding to UTF-8

6) your translated file needs to show your Swede fonts and then upload it somewhere and give me the link
I will compile and can use cat against the resultant file to see if characters look ok ....with luck

7) I need to forewarn you....just like vlc...parole on 14.x has a huge range of dependencies.
Thanks to Paul_123 we have updated 2 of the deps in the parole build chain and I have delayed submitting
update to libxfce4ui and parole as I plan to update gtk3.

But as a bonus for you ....once I know the translation file will work...I will give you links to the updates.
If however, I find the translation fails....I might still give just the English stuff.

this will take time.  Ask any question

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: VLC on piCore.
« Reply #9 on: July 27, 2023, 05:35:38 AM »
Hi!

After seeing all the work that it will I must turn this offer down. I have several medical conditions that are chronic and that takes a lot of energy. In practical terms that means that just don't have the energy needed for such a task. It is just impossible. If it was possible I would have been glad to help out.

Kind regards,
meo

DS Actually I use English almost as much as Swedish. Watching a video I actually choose English if possible. DS
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

aus9

  • Guest
Re: VLC on piCore.
« Reply #10 on: July 27, 2023, 05:50:11 AM »
sorry to hear that and hope things improve.  And for that reason I am going to withdraw my earlier offer to allow you  access to 14.x private update of  parole as I do not want to explain things that might cause you stress now that I know your condition.



Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: VLC on piCore.
« Reply #11 on: July 28, 2023, 10:53:46 AM »
Hi aus9!

Thanks for understanding my situation! Some of the medical problems I suffer from are very sensitive to stress. I got ffmpeg to work though but it was lagging a lot even if I tried to play a very low definition video. And it seems to get just as hot as when I'm looking at a video in Kali Linux. So it would not be an option to vlc in Kali Linux on the Raspberry Pi. I was very surprised that a 720p video played very smooth in vlc on Kali Linux. Thanks for effort to help me out.

Kind regards,
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 706
Re: VLC on piCore.
« Reply #12 on: July 28, 2023, 02:09:07 PM »
I think to get the best performance you have to ask if some body here can continue to make omxplayer to work, that utilize the raspberry pi's gpu better.

Maybe that can be done also with ffmpeg or even vlc, i don't know.
Even don't know if ffmpeg is compiled so it can use the raspberrypi's gpu.
I think just now only cpu rendering to some type of framebuffer.

Here's an old thread talking about how to compile omxplayer for picore.
http://forum.tinycorelinux.net/index.php/topic,16944.msg101552.html#msg101552


aus9

  • Guest
Re: VLC on piCore.
« Reply #13 on: July 28, 2023, 10:46:46 PM »
hi meo

Firstly there is no need for you to reply if these questions cause stress, but it might help as we may be able to offer some heat or lagging solutions.

1) what is your exact model RPi please? And what desktop are you running? And what graphics are you running?
Is your storage correctly setup?

these questions are easily resolved, if you care to answer, by showing me the result after downloading and loading from Apps the program called "inxi" and run
Code: [Select]
inxi -b
and here is my result so you can decide whether it helps or not
Code: [Select]
inxi -b
System:
  Host: box Kernel: 6.1.25-piCore-v7l arch: armv7l bits: 32 Desktop: JWM
    v: 2.4.3 Distro: piCore 14.0
Machine:
  Type: ARM System: Raspberry Pi 4 Model B Rev 1.1 details: BCM2711
    rev: c03111 serial: 10000000b0c9e281
CPU:
  Info: quad core ARMv7 v7l [MCP] speed (MHz): avg: 600 min/max: 600/1500
Graphics:
  Device-1: bcm2711-vc5 driver: vc4_drm v: N/A
  Device-2: bcm2711-hdmi0 driver: N/A
  Device-3: bcm2711-hdmi1 driver: N/A
  Display: server: X.org driver: X: loaded: modesetting dri: vc4
    gpu: vc4-drm,vc4_crtc,vc4_dpi,vc4_dsi,vc4_firmware_kms,vc4_hdmi,vc4_hvs,vc4_txp,vc4_v3d,vc4_vec
    resolution: 1: 1024x768 2: 1024x768~60Hz
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
    missing.
Network:
  Device-1: bcm2835-mmc driver: mmc_bcm2835
  Device-2: bcm2711-genet-v5 driver: bcmgenet
Drives:
  Local Storage: total: 37.19 GiB used: 5.94 GiB (16.0%)
Info:
  Processes: 126 Uptime: 14m Memory: total: N/A available: 3.75 GiB
  used: 755.8 MiB (19.7%) Shell: ash (busybox) inxi: 3.3.28

this reveals my model, my desktop, my graphics (Xorg) setup,
Secondly it reveals if I am setup my storage correctly.
If your storage is small and you are having to swap out to a swap file or swap partition....that could be cause of lag

####################################

Then a link to your passive cooling please.

I will show mine, no fan. Room temp is about 19 C degrees and my meat thermometer says passive case just for web browsing with an uptime (time of use) around 14 minutes is about 33 degrees C

https://imgur.com/pxPhA8g

Obviously my room temp is distorting the real temp of my passive case ...but it gives you an idea that I am no where near your high temps......and high temperatures can also cause lag

Good luck

trivia. I am aware some people install Operating systems on SSDs and usbs. I have not. I am using a SDCARD and the image shows an usb stick which has my build scripts on it, my video audio and image files that I need to test things.

« Last Edit: July 28, 2023, 10:49:14 PM by aus9 »

aus9

  • Guest
Re: VLC on piCore.
« Reply #14 on: July 28, 2023, 11:07:02 PM »
In addition, I would not recommend Kali for someone in your position.

I would recommend with the limited knowledge of what software you actually using, but penetration testing is the main reason for Kali and I am assuming you are not doing that....so most people are better off for normal web browsing, media playing and full range of Office software if needed ....Raspberry Pi OS

Rasperry Pi OS has some kind of tool to automate the resizing of your SDCARD and thats a good thing to reduce stress.

However, if your passive cooling was setup by someone who did a scam on you...or did not use a thermal pad to give good heat tranfer from your Soldered on Chip components to your passive case....you will always will struggle until that is fixed.

my post may cause you stress....but I am not a mind reader. I need to tell you....and then you decide if its relevant to your hardware setup.

Seek independent advice....there should be a Linux User group near you who would have someone with RPi experience.
see https://www.linuxlinks.com/linux-sweden/
« Last Edit: July 28, 2023, 11:14:09 PM by aus9 »