Welcome to janforman.com you can find here infos about downtime of my servers and other stuff.

GPS tag from JPEG @ img.janforman.com

GPS tag @ img.janforman.com and videos from janforman.com in the map.
EXIF header is parsed while uploading and when geo tag is found then application sends it to REST-API with DB backend.

geographic data exported to map:
a) images from img.janforman.com – based on JPEG / EXIF GPS tag.
b) video – based on DB value.

* update – fixed North/South/West/East EXIF tag (added minus sign to result wich is sended to REST service each time while frontend detect GPS tag)

Better video-bandwith control

Changelog:

Video streaming bandwith control (fast start and then limit bitrate)
RSS Feed for video channel fixed
Added monoscope to live broadcast (uplink not running)
Facebook login / work in progress
Flash video player remake (35KB size)

H264 Video Streaming to mobile phone

This sample is tested on Real Player from Real Networks that can be found on latest mobile phones.
(Stream is compatible with Symbian OS, IPhone, Windows Mobile)
VLC configuration sample:

:sout=#transcode{soverlay,ab=32,samplerate=22050,
channels=1,acodec=mp4a,vcodec=h264,
width=320,height=240,fps=15,vb=192,
venc=x264{vbv-bufsize=500,me=umh,
partitions=all,level=12,subme=7,threads=4,
no-cabac,ref=2,mixed-refs=1,bframes=0,
min-keyint=1,keyint=30,trellis=2,direct=auto,
qcomp=0.1,qpmax=51}}:
gather:rtp{mp4a-latm,sdp=rtsp://{IP}:554/tv.mp4}
(RTSP streaming compatible with Real Player)


- or change last line to
gather:standard{access=http,mux=mp4,dst={IP}:80/tv.mp4}
(HTTP is not compatible with Real Player)
- or to
gather:standard{access=mmsh,mux=mp4,dst={IP}:80/tv.mp4}
(MMS over HTTP is not compatible with Real Player)

Remember!: Not all sizes and framerates are supported,
place your IP to {IP}.
For example: Nokia 5800 accept only 320x240x15fps up to 256kbit/s
Wikipedia about Real Time Streaming Protocol
Used ports are
RTSP (TCP: 554 + UDP)
HTTP (TCP: 80)
MMSH (TCP: 80, true 1755 MMS not supported)

Howto encode video for Nokia 5800 XpressMusic

DOWNLOAD SAMPLE FILE NOW!

Nokia 5800 XpressMusic can accept only MPEG4 legacy format for smooth playback in 640×360 resolution.
You must have ffmpeg installed (i’am using one from SUPER encoder).
As you can see this is very easy and output video have excellent quality due to 2-pass encoding.
Picture is better than standard definition TV and is 16:9…
Deinterlace and subtitles can be included – watch remarks.
mkv x264 / ac-3 rips working just fine, enjoy ;-)

please download encode.bat here

@echo off
set ffpath=C:\Program Files\eRightSoft\SUPER
set opt=vbitrate=1687500:vrc_maxrate=1835008:
vrc_buf_size=917:mbd=2:vstrict=1:keyint=500:
cbp:mv0:vme=4:trell:v4mv:vqmin=3:lumi_mask=0.03:
dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:
naq:vhq=4:precmp=6:cmp=6:subcmp=6:
vb_qoffset=0.6:threads=2:level=31
rem set sub=-sub “file.srt” -subcp cp1250 -subfont-text-scale 3.2 -font c:\WINDOWS\FONTS\ARIALNB.TTF
rem set deinterlace=:phase=b
“%ffpath%\mencoder\mencoder” -sws 9 -nosound -vf scale=640:360,eq2=1.3:1.1:-0.06:1.3%deinterlace% -ovc lavc -lavcopts vcodec=mpeg4:%opt%:vpass=1 -ffourcc mp4v %sub% -o nul: “%*”
“%ffpath%\mencoder\mencoder” -sws 9 -oac copy -vf scale=640:360,eq2=1.3:1.1:-0.06:1.3%deinterlace% -ovc lavc -lavcopts vcodec=mpeg4:%opt%:vpass=2 -ffourcc mp4v %sub% -o c:\input.avi “%*”
“%ffpath%\ffmpeg” -i “c:\input.avi” -vcodec copy -acodec aac -ab 96 -ac 2 -ar 44100 c:\final.mp4
del c:\input.avi
del divx2pass.log
pause

please download encode.bat here

Place this code to file (example C:\WINDOWS\encode.bat) and easily type in prompt “encode.bat video.avi”… then wait and c:\final.mp4 file may appear.
Yes you can easily change this script for LINUX ;-)

H.264 video encoding finetune

x264 Features:
* CAVLC/CABAC * Multi-references * Intra: all macroblock types * Inter P: all partitions * Inter B: partitions from 16×16 down to 8×8 * Ratecontrol: constant quantizer, single or multipass ABR, optional VBV * Scene cut detection * Adaptive B-frame placement * B-frames as references / arbitrary frame order * 8×8 and 4×4 adaptive spatial transform * Lossless mode * Custom quantization matrices * Parallel encoding on multiple CPUs * Interlacing

Here is my recommended values for x264 (H.264 – MPEG4 AVC) encoder


-vcodec libx264 -b 700k -flags +loop -cmp +chroma -flags2 +bpyramid+wpred+mixed_refs+8x8dct+brdo -me umh -subq 7 -trellis 2 -bidir_refine 1 -bf 3 -b_strategy 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4


btw 2 pass encoding is used

For better visual quality and improved compression ratio I’m using
MSU Graphics & Media Lab Denoiser

MainConcept MJPEG (Motion JPEG) have great quality on 90%
(600MHz CPU is enough for 720×576, also this is good for HD)

HuffYUV for lossless compression :-) ehmm yes this produce big file.

MSU H264 codec comparison 2007