2004 to 2020 Mazda 3 Forum and Mazdaspeed 3 Forums banner
2,821 - 2,840 of 6,600 Posts
@skalsiu88: Really, really great work. I am a little bit jealous of your skills....maybe a little bit more. 0:)

I'm courious how do you stream the content to the screen without modifying the system. As I understand you need a program or app on the system to play the movie, like gst-launch.
If you found a way to stream it from the mobile phone, than it should be possible to stream/mirror the screen to, or shouldn't it?
All he is doing is connecting the cmu to the phone's wifi, then he is sending commands via SSH to the cmu. There is no streaming or mirroring. The files need to be locally present on usb drive.

It would be possible to have the files on the phone and they would have to be copied via ssh to the cmu before playback or buffered.

That's how it works.
 
Yes, also got the same thing
basically everything is in except the "nc" is not.

-- to check if "nc" is linked to new busybox properly or not --

1. go to /usr/bin
2. type "ls -l nc" and press enter and you should see line similar as follow (nc must not be in red);

nc -> ../../bin/busybox-armv7l


-- to check if the new "nc" workable or not --

1. in command prompt, type "nc -l -p 12345" and press enter, and you should see nothing happen. if there are any message return, means you still haven't got the new nc to work


this is what it is about.
the "nc" come along with the system lack of the option we need.
and "nc" is one of the internal command of busybox.

the busybox-armv7l has the "nc" with the option we need , so what you have been trying to get it to work is to replace the current "nc" link, instead linking to the system busybox, we make it link to the new busybox-armv7l.

hope it is clear to you now. and if, still don't work after everything in place, that may probably be the version different.

to find out what version to use, type and run this "uname -a"
look for "arm" in the return message, that should show the version.

then go to Index of /downloads/binaries/latest to download the version you need, but very likely you don't need to do this.

p/s: the auto start "nc" command is in stage_wifi.sh file , so make sure your file has this line "watch -n 1 /jci/gui/mySpeedometer/playback-action.sh"
 
Ugh. You guys are developing too quickly now! :smile2:

I'm amazed at everything that's happened lately. I'll be updating the Index with all the new info over the next couple days. I think I'll start labeling tweaks as "COMPLETE" and "IN DEVELOPMENT", seeing as these video player scripts function but aren't finalized yet. If you have any suggestions for the Index, please PM me and I'll include them in my next update.
 
Ugh. You guys are developing too quickly now!
Image


I'm amazed at everything that's happened lately. I'll be updating the Index with all the new info over the next couple days. I think I'll start labeling tweaks as "COMPLETE" and "IN DEVELOPMENT", seeing as these video player scripts function but aren't finalized yet. If you have any suggestions for the Index, please PM me and I'll include them in my next update.
  • Add a header/preface to the tweaks list with recommended/required OS version (minimum 51, recommended 55) OR just add a line to each tweak saying "designed for OS vXX.XXX and newer". Lots of folks are bricking their systems trying to install newer tweaks on older OS'es.
  • Consolidate/highlight boot-loop solutions. This gets asked basically once per page since #100 or so.
 
Thanks waisky, I got it working :)

ok. basically the installation is like this.

1. upzip the file and copy over all to your MZD with exact the same directory structure (yeah ALL files).

2. go to your MZD /usr/bin

3. run this to remove current nc command link # rm -f nc

4. add the nc command link to new busybox-armv7l # ln -s ../../bin/busybox-armv7l nc

5. reboot

and it should work. good luck :)

p/s: those who wants the nice font appear in speedometer as done by @serezhka earlier, change the line at #456 in mySpeedometer.js

var speedometerFont = false; <= change to true
 
here's the video to show how to change the nc part, before and after.

hope that would help ease your installation.

btw, make sure you do that when you are in /usr/bin :)

https://youtu.be/vFIQGnTUmbA
this helped me alot..

but i still have one problem

i do all the stuff in your video but at the end i got an error

permission denied in line 27...

it was because the busybox-armv7l need chmod 755
and now??

woohoo @waisky2... you are great it works i see the files on my usb... but i think the movies are too big... when i click them. nothing happend...

i try it again with a smaller one...

edit... also the reboot button now works... that is a really good invention
 

Attachments

After

chmod 755 /jci/gui/mySpeedometer/playback-action.sh

I get the movie list now displayed too.
(I did chmod 755 of busybox-armv7l, get-vehicle-speed and stage_wifi before, but forgot playback-action.sh)


I have many testmovies (all *.mp4, SD Quality) in root of my USB-Stick.

But no movie starts (I have waited a long time).

Any idea?

Two more questions:

Can actually HD movies are also be played, or must it be SD?

I habe now red text with yellow background in right corner with FPS counter.
Am I the only one?
 
After

Two more questions:

Can actually HD movies are also be played, or must it be SD?

I habe now red text with yellow background in right corner with FPS counter.
Am I the only one?

1)i think it's not recommend to use hd movies, because your display only 800/480... dvd-quality so its just a waste of cpu und space on your usb

2) the fps counter is a script in the /userjs folder... just delete
 
Got it working !
Type "nc -l -p 12345" but got permission denied

/usr/bin # ls -l nc
lrwxrwxrwx 1 root root 24 Jan 1 00:37 nc -> ../../bin/busybox-armv7l
/usr/bin #
/usr/bin # nc -l -p 12345
-sh: nc: Permission denied
So I decide to chmod the symlink
(was already on stage_wifi.sh, get-vehicle-speed.sh, busybox-armv7l)

/usr/bin # chmod 777 /usr/bin/nc
/usr/bin #
/usr/bin #
/usr/bin # nc -l -p 12345
^C
/usr/bin #
After that I click the "Search Videos" again and it's working, movie list come up and able to play !
Thank you @waisky2
 
1. rename the /jci/opera/opera_dir/userjs/fps.js => fps.js.bak

2. it is using gst-launch playbin2, you can find the command in /jci/gui/mySpeedometer/playback-action.sh

to check if the your mp4 file is playable by the command, try this at the command prompt;

let say your mp4 is here /tmp/mnt/sdb1/abc.mp4

# /usr/bin/gst-launch --gst-fatal-warnings playbin2 uri=file:///tmp/mnt/sdb1/abc.mp4 video-sink="mfw_v4lsink disp-height=416" audio-sink="alsasink" buffer-size="0" buffer-duration="0"

if the video don't play, very likely it can't be decode and encode with the playbin2 plugin. you may then need to try other option then playbin2, if you are familiar with gst-launch.

if the video play and show on the screen, it should play when you tap it on the video list. but please be patient, it would take up to 2 sec only start playing after you tap. if not playing still persist, reboot and try again.


After

chmod 755 /jci/gui/mySpeedometer/playback-action.sh

I get the movie list now displayed too.
(I did chmod 755 of busybox-armv7l, get-vehicle-speed and stage_wifi before, but forgot playback-action.sh)


I have many testmovies (all *.mp4, SD Quality) in root of my USB-Stick.

But no movie starts (I have waited a long time).

Any idea?

Two more questions:

Can actually HD movies are also be played, or must it be SD?

I habe now red text with yellow background in right corner with FPS counter.
Am I the only one?
 
All he is doing is connecting the cmu to the phone's wifi, then he is sending commands via SSH to the cmu. There is no streaming or mirroring. The files need to be locally present on usb drive.

It would be possible to have the files on the phone and they would have to be copied via ssh to the cmu before playback or buffered.

That's how it works.
I'm not sure if this is how it works. Because he can forward and pause the video as you can see in the video. I thought it is not possible with gst-stream!? Maybe I lost only the overview of these things. :surprise:

We will see if this App becomes available in the store.
 
Most excellent,
Do you have to setup a ad hoc network on android device to connect to the CMU?
And will the videos continue to run when the device screen is off?
Yes, you have to setup WiFi connection with car, so the best way i just setup adhoc network on Android device.

Yes you can turn screen off or use your mobile phone as usually do it - tomorrow I'll try to prepare new video with my app and show such details :)
 
2. it is using gst-launch playbin2, you can find the command in /jci/gui/mySpeedometer/playback-action.sh

to check if the your mp4 file is playable by the command, try this at the command prompt;

let say your mp4 is here /tmp/mnt/sdb1/abc.mp4

# /usr/bin/gst-launch --gst-fatal-warnings playbin2 uri=file:///tmp/mnt/sdb1/abc.mp4 video-sink="mfw_v4lsink disp-height=416" audio-sink="alsasink" buffer-size="0" buffer-duration="0"

if the video don't play, very likely it can't be decode and encode with the playbin2 plugin. you may then need to try other option then playbin2, if you are familiar with gst-launch.

if the video play and show on the screen, it should play when you tap it on the video list. but please be patient, it would take up to 2 sec only start playing after you tap. if not playing still persist, reboot and try again.
I tried this with several files, but always get "mem allocation failed!":

/tmp/root # /usr/bin/gst-launch --gst-fatal-warnings playbin2 uri=file:///tmp/mnt/sdb1/test.mp4
video-sink="mfw_v4lsink disp-height=416" audio-sink="alsasink" buffer-size="0" buffer-duration="0"
MFW_GST_V4LSINK_PLUGIN 3.0.5 build on Jun 10 2015 16:30:04.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Aiur: 3.0.5
Core: MPEG4PARSER_06.04.25 build on Dec 10 2012 16:29:48
mime: video/quicktime; audio/x-m4a; application/x-3gp
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so
Content Info:
URI:
file:///tmp/mnt/sdb1/test.mp4
Idx File:
/root/.aiur/.tmp.mnt.sdb1.test.mp4.aidx
Seekable : Yes
Size(byte): 452868979

Movie Info:
Seekable : Yes
Live : No
Duration : 1:10:02.240000000
ReadMode : File
Track : 2

Track 00 [video_000000] Enabled
Duration: 1:10:02.240000000
Language: und
Mime:
video/x-h264, parsed=(boolean)true, width=(int)640, height=(int)360, framerate=(
fraction)25/1, codec_data=(buffer)000000016764001facd940a02ff9610000030001000003
00320f1831960000000168ebe132c8b0
vpudec versions :)
plugin: 3.0.5
wrapper: 1.0.28(VPUWRAPPER_ARM_LINUX Build on Jun 10 2015 16:26:09)
vpulib: 5.4.10
firmware: 2.1.8.34588
[ERR] mem allocation failed!
Track 01 [audio_000000] Enabled
Duration: 1:10:02.281472000
Language: und
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)0
, framed=(boolean)true, stream-format=(string)raw, codec_data=(buffer)1190

Any ideas?

Or can someone post a link to a test video file that works for test?

Thankz.
 
I tried this with several files, but always get "mem allocation failed!":

/tmp/root # /usr/bin/gst-launch --gst-fatal-warnings playbin2 uri=file:///tmp/mnt/sdb1/test.mp4
video-sink="mfw_v4lsink disp-height=416" audio-sink="alsasink" buffer-size="0" buffer-duration="0"
MFW_GST_V4LSINK_PLUGIN 3.0.5 build on Jun 10 2015 16:30:04.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Aiur: 3.0.5
Core: MPEG4PARSER_06.04.25 build on Dec 10 2012 16:29:48
mime: video/quicktime; audio/x-m4a; application/x-3gp
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so
Content Info:
URI:
file:///tmp/mnt/sdb1/test.mp4
Idx File:
/root/.aiur/.tmp.mnt.sdb1.test.mp4.aidx
Seekable : Yes
Size(byte): 452868979

Movie Info:
Seekable : Yes
Live : No
Duration : 1:10:02.240000000
ReadMode : File
Track : 2

Track 00 [video_000000] Enabled
Duration: 1:10:02.240000000
Language: und
Mime:
video/x-h264, parsed=(boolean)true, width=(int)640, height=(int)360, framerate=(
fraction)25/1, codec_data=(buffer)000000016764001facd940a02ff9610000030001000003
00320f1831960000000168ebe132c8b0
vpudec versions :)
plugin: 3.0.5
wrapper: 1.0.28(VPUWRAPPER_ARM_LINUX Build on Jun 10 2015 16:26:09)
vpulib: 5.4.10
firmware: 2.1.8.34588
[ERR] mem allocation failed!
Track 01 [audio_000000] Enabled
Duration: 1:10:02.281472000
Language: und
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)0
, framed=(boolean)true, stream-format=(string)raw, codec_data=(buffer)1190

Any ideas?

Or can someone post a link to a test video file that works for test?

Thankz.
Try this to drop caches and inodes to free some additional memory:

echo 3 > /proc/sys/vm/drop_caches

and then once again gst-launch. I hope it helps :)

Thanks,
Lukasz Skalski
Lukasz Skalski | Homepage
lukasz.skalski@op.pl
 
2,821 - 2,840 of 6,600 Posts