PDA

View Full Version : UI Screencast from ubnt-115


ubnt-115
09-07-2009, 06:47 AM
Hello,
UI Screencast from ubnt-115 on youtube (part1)
http://www.youtube.com/watch?v=DmrQgsj3jiA

Regards, Stanislav

riskable
09-07-2009, 10:54 AM
Wow, you wrote it in PHP! What are you using as the web server?

I also noticed the "Start L2 Telnet Server" button at the top of the System Settings section... Did you write something from scratch for that or were you able to find an existing implementation somewhere? I wrote my 'l2sh' server/client from scratch because I couldn't find anything even remotely resembling a "layer 2 telnet" client/server.

Oh, and I noticed that your video has some audio sync issues. I assume this is because you're using recordmydesktop (which has had unfixed audio sync issues for a long time now--not that there's anything better =)... I had the same problem with my first video which is why it didn't have sound. I fixed it by writing a little shell script that starts up recordmydesktop and arecord simultaneously. Here it is so you can use it for your next video:


#!/bin/bash
#
# Description: Runs recordmydesktop for video with a resolution of 1280x720 (top left corner of screen) while simultaneously running arecord to capture audio.

recordmydesktop -width 1280 -height 720 -x 5 -y 5 --no-sound -fps 15 --full-shots --on-the-fly-encoding -o /storage/Video/record_1280x720 &
RECORDMYDESKTOP_PID=$!
arecord -f cd --quiet /storage/Video/record_1280x720.wav &
ARECORD_PID=$!

echo "Press ENTER to finish."
read nothing

# Kills arecord and sends a Ctrl+C signal to recordmydesktop.
echo "Terminating processes $RECORDMYDESKTOP_PID and $ARECORD_PID..."
kill -15 $RECORDMYDESKTOP_PID $ARECORD_PID
sleep 5
echo "Merging audio and video files..."
mkvmerge -o /storage/Video/record_1024x768.mkv /storage/Video/record_1280x720.ogv /storage/Video/record_1280x720.wav
# This is for fixing sync issues later (if any)
#mkvmerge -o "/storage/Video/record_1024x768.mkv" -a 0 -D -S "/storage/Video/record_1280x720.wav" --sync 0:0,1.009/1 -d 0 -A -S /storage/Video/record_1280x720.ogv --track-order 0:0,1:0

Obviously you'll need to change the path names. Also, make sure to record a few seconds of silence at the end of your video because sometimes the audio or video is slightly longer than the other and the mkvmerge will cut the final video to whatever is shortest.

My uploaded videos are all 1024x768 but I recently changed the script to record in 1280x720 which is 720p widescreen. I learned that is the "format to use video online HD video" *after* I had already posted everything.

FYI: If you want to upload videos longer than 10 minutes you can use http://blip.tv (unlimited length).

Lastly, great job on your entry! When I saw your l7 dropdown menu I sighed because I was in the process of implementing that (as opposed to just typing the protocol name into a field) when I ran out of time. Do you enumerate the /etc/l7-protocols or did you just make a hard-coded list?

I almost used the Crystal icon set myself.

ubnt-115
09-08-2009, 12:45 AM
Wow, you wrote it in PHP! What are you using as the web server?


Yes. It was written in php. I kept in a mind pfsense when wrote UI. Usually it uses nano web-server (not in RouterStation UI. E.g. it works on a ASUS WL-500g router). But, i had some preformance issues on a RouterStation (may be because atheros cpu does not have fpu) and i used busybox built in httpd server. It works fine.
UI is UCI incompatible (It does not use any data in UCI form and UCI scripts). It uses single XML config and own initialization system.

About L2Telnet.... I found only one free realization, that possible to call 'l2telnet server' - ead (Emergency access device). It exists in an openwrt development trunk. May be i have a mistake....

About L7... I used 'dirty hack' - prepared set of l7 pattern files (moved to single folder). I hope that package maintainers in an openwrt team will be build package in a more usable form than now


Thank you for script and link.

Regards, Stanislav

riskable
09-08-2009, 05:48 AM
About L2Telnet.... I found only one free realization, that possible to call 'l2telnet server' - ead (Emergency access device). It exists in an openwrt development trunk. May be i have a mistake....

I've seen that but I've never found an ounce of documentation on how to use it. Did you ever get it working? I mean, how does one connect to the emergency access daemon?

About L7... I used 'dirty hack' - prepared set of l7 pattern files (moved to single folder). I hope that package maintainers in an openwrt team will be build package in a more usable form than now.

Yeah, I wondered about that myself. The l7-protocols package places the pattern files all over the place inside /etc/l7-protocols. It is a mess but at least the names all end in .pat. My plan was to just enumerate all *.pat files under /etc/l7-protocols and use that for the selection list. Since everything in PyCI is UCI-compliant (except cron--I just don't see the point) I'd only need the names (minus the ".pat").

ubnt-115
09-08-2009, 07:54 AM
Fulll screencast uploaded on http://staska.blip.tv

Regards, Stanislav

Smalgesem
01-25-2010, 05:29 AM
And now its gone Didnt change anything, just went away to do somw work stuff on my other computer got back and it works.

Sort of glad I made that screencast otherwise I might have thought I was dreaming. So I guess this isnt much of a problem anymore but if anyones got any ideas on what might have caused that Im all ears. Never seen anything like it.

Regards,
- Jonas

CzechEnglishFrenchGermanItalianPolishPortugueseRussianSpanish
Translations supported by vBET Translator 3.5.4