Skip navigation.

temon's WORLD

hope this can share my experience...

WEIRD TRAFFIC..??!! OR STUPID ADMIN..??!!

Hahahahaha...:lol: :lol: :lol:

*starring :


and


is the administrator sleep tight in this last two months..??!! :zzz: just go and fuck with your girlfriend dude...

sometimes I think Roy Suryo will get much compatriots in here..

ASU TENAN BANGSANE ROY SURYO IKI..!!! monkey <-- banana

Basic Video Streaming

VIDEO STREAMING

-- Short Overview --

Many question I've heard, "what is video streaming? then what is the advantages of video streaming?" Hummm..hope this article can help any others to understand what video streaming is.

Basicly, it's very simple to learn and understand about this method. Now, lets step forward =)

Video streaming is a method to stream video (and also audio) file from server to client so client can play that file without save it first in client's hard drive. Now it is clearly enough about the purpose of this method (streaming-red) right? So, here, the server save video file in its hard drive and the client just need to ask any request to server what video that client wants to play. Ok, lets see the picture below.



In that video streaming server, there is 4 video that ready to accessed by client. In a conventional method, if the client want to watch miyabi1.avi, that client have to download the file first until all file has transfered and saved well in client's hard drive before it able to play. For most of people, it is wasting their time. For another people that have no space in their computer that problems may make them confused because they can't enjoy the film (very interesting one :D) except they agree to delete any file in addition to make some space in their hard drive to save that video file.

In streaming methods, the client no need to wait or make some space in their hard drive anymore. They just need to "click" what video they want and in several seconds (no more minutes), they will see the video played well in their player. How it works? Now, lets see the technical part after this =).

-- Concepts --

For example, miyabi1.avi has 600MB in file size. And then when client request to access that file, this file will be transferred part by part, packet by packet, while the client's player will directly play the part that has been received. Is it clear? I hope so..Ok, stop there..next, in video streaming, we usually hear about bitrate, framerate, codecs, file format, and so on. Lets talk about :

1. codecs

Codecs (coder-decoder) is an algorithm in building and rebuilding a digital video or audio. There's so many codecs that we usually hear like mpeg, mpeg1, mpeg2, mpeg4, h263, h264, YUV, RAW, etc for video and mp2, mp3, aac, ogg, wav, etc for audio. Each codec has different secification because it build from different algorithm. But nowadays, in streaming, the the top three video codecs for streaming is mpeg4, h264, and h264 and for the audio, both of them is almost same.

2. formats


We usually find this format for video file : .avi, .mpg, .mpa, .mov, .rm, .rmvb, etc. Most of people have some problem in uderstanding this, usually they think formats is same with codecs. I'll show you that this is totally different. In a movie, video and audio file should be played together. This means the audio and video file needs another file to mix both of them. This called muxer or container. So here, the video and audio file will be muxed into one file. Just like this, for example file miyabi1.avi is build from video that using mpeg4 codecs and mp3 for the audio. If that video and audio didn't muxed before played, we need two player there, one for playing the video file and the second one is to play the audio. Its horrible right? With muxing it into just a file, we only need one player to play that movie =). So, the conclusion is in miyabi1.avi video format it contains mpeg4 video and mp3 audio. Each format above has unique specification that one format can only contain x codec and can't contain another codec depend on the algorithm.


-- Measurement Parameters --

In research, we need to measure all of parameters that indicates the quality and many important things to get the most optimal configuration. Here is the example of parameters that usually used in streaming :

1. bitrate

Usually shown in kbps (kilo bit per second) this mean that in one second there is x bit of video file that transferred from server to client. The bigger bitrate will produce higher quality, but there's the trade off for the network. For example, miyabi1.avi using mpeg4 codec with 700kbps for its bitrate. This mean, in one second there is 700 kilobit video file transferred to the client continuously. So, if the movie duration is 2 hours this mean that along that time tha server will continuously sent 700 kilobit packets to the client. What is the problem could occured here? Yes, the network will be used to transfer this packets for 2 hours continuously. There will be no problem if there just one client, but what happened if there is 100 client in that network that usually 'only' have 100Mbps for the bandwidth? It will be 700kbpsx100 = 70000kbps = 70Mbps that means the bandwidth is almost full while in that network there many application used there (chatting, browsing, download, etc). In the other word, this packets will flood the network and it could disturb any activity there. Nice problem right? So here, we need to think that trade off in addition to produce optimum configuration (low bitrate but the video is still acceptable).

2. delay

Delay, here in streaming contains of two kinds, first is the encoding delay and the second one is transmition delay. There is one more delay, propagation delay, but this delay can be ignored because of its value is almost in zero result. Encoding delay is the time that worthed for building a video file. This delay usually appears when we use a live streaming (I’ll write about this topic later). The second one, transmition delay, is the delay from server to client. In a local area network, this delay may not be a problem, but in internet network, this delay will be a big problem in streaming. To reduce the delay we can reduce tha amount of bitrate of the video file but this cause a lack video for the trade off.

3. jitter

Jitter is a variable time for the incoming packets. We know that the packets sent in a different route that may cause different time for its departure to the client. This jitter problem can be solved using a “buffer” in client’s player. So here, the client will buffer the packet for a while before play the video in so the video that played is still smooth without jerky motion there.

4. loss

Packet loss is a standard fenomena in data communication. For some streaming method, the packets transmitted using TCP. As we know, TCP is a protocol that gives warranty for the packets so there will no packets loss in transmition. But now, the standard protocol that used in streming is UDP that allow loss packets. In UDP, the most important thing is the packets sent faster than else. So in this case, we have to count the packets loss to calculate how effective our streaming method.

5. PSNR (Peak Signal to Noise Ratio)

PSNR is an objective value used to rate the video quality after it transmitted over the network. We know that in the network (RF mode) there’s so much noise that always disturb the signal. To measure the PSNR, we can use a software that compare a video from a server and the video that played in client. It’s so simple in practical, we only needs to capture a video in client’s player and compare it with the source (original) video in the server.

6. MOS (Mean Opinion Score)

Mean opinion score is a subjective value that can got from a survey. Here, we just need some user to give a mark for the video that they watch. The value usually is “bad” for the worst and “excellent” for the best. Enough here,.there no technical things that can be explained anymore =).

-- end section --

There's just the most important to understood in streaming, but there's much more important parameter that we should understand if we want to do a little deep research in streaming. I wont write it here, because I have no time to write it all =). I hope this article can help anyone to understand a basic streaming, all we need is just learn and learn more.

I Hate Myself...

Hey, it's been 2 weeks I still got no answers of my question..how slow I am..how stupid I am..I've tried any configuration but it still didn't work..what's the problem in here? I have changed the source code but it would became a new problem because I don't have any skills in programming yet.. :frown: hfffhh..maybe I just can try and try more until this problem solved..sniff..sniff.. "Be patient", my friends said..yes I have, but time is running..and I have run out of time..hmmm..maybe today I will make some complete documentation about this final assessment and tomorrow I will discuss it first with my lecture...

In last 3 day I have attracted to joining security research again..is it a bad idea? because in the other side my task isn't complete yet..I feel enjoy and relax when I did a networking and security research..heheheheh..last time, I got shell from my friends and I permitted do anything there, so I try to build a psybnc.. :smile: why I build this one? because I need this to be used in #cyberwarrior@dalnet as an SOP there.. :smile: ok, I'll tell you what happen before..last time I chat in dalnet, I was invited by someone (he used unregistered nick) to join #cyberwarrior..after I logged in, reno ask me like this.. "how are you temon..???" whooooaaaa..how could he know my ID in the other side I use sleepy_eye for my nck at the moment..and I found the answer, he know me from echo and kecoak forum :smile: his nick is CYBER_GHOST (thx reno.. :smile:) and he ask me if I may be an operator there..I said "yes..!!!" what I got..??? yes, SOP..!!! a Super Operator..sniff..snif..that means I have to come in that channel in every day..that's why I need a psybnc to used there :D (what's psybnc..??? I'll write down the article ASAP, I promise)

After a day hang on with CYBER_GHOST, user named Slacky slaps me..heuheuheuh..we want me to build a scramble game there..but I have no idea, anyone know about that one..??? how to build, where I can get a source? and the manual of that bot..??? hummm..I have no time to do that but I feel very happy to do a new research.. p: wait in a moment slack, I'll realize that..this man, slacky, is a nice person who tell me how to build a irc_bot..heheheh..thanks a lot dude..!!!

Hufffhhh..no..no..I have to reschedule my daily activities..so I can do all of this research without leave one of them..yes, I will... :smile: maybe I have to build a website for C4 community here too..ooooooooaaaaaggghhhh..how stupid I'm if I can't manage my time..there still much knowledge out of there and I can't get that because I can't manage my time...

Forgive me Ya Allah...

Dalam 7 Hari Yang Telah Lalu Dan Mungkin Akan Terulang

Hari ke-1, tahajudku tertinggal
Dan aku begitu sibuk akan duniaku
Hingga zuhurku, kuselesaikan saat ashar mulai memanggil
Dan sorenya kulewati saja masjid yang mengumandangkan azan magrib
Dengan niat kulakukan bersama isya itupun terlaksana setelah acara tv selesai

Hari ke-2, tahajudku tertinggal lagi
Dan hal yang sama aku lakukan sebagaimana hari pertama

Hari ke-3 aku lalai lagi akan tahujudku
Temanku memberi hadiah novel best seller yang lebih dr 200 hlmn
Dalam waktu tidak 1 hari aku telah selesai membacanya
Tapi… enggan sekali aku membaca Al-qur’an walau cuma 1 juzz
Al-qur’an yg 114 surat, hanya 1,2 surat yang kuhapal itupun dengan terbata-bata
Tapi… ketika temanku bertanya ttg novel tadi betapa mudah dan lancarnya aku menceritakan

Hari ke-4 kembali aku lalai lagi akan tahajudku
Sorenya aku datang ke selatan Jakarta dengan niat mengaji
Tapi kubiarkan ustazdku yang sedang mengajarkan kebaikan
Kubiarkan ustadzku yang sedang mengajarkan lebih luas tentang agamaku
Aku lebih suka mencari bahan obrolan dengan teman yg ada disampig kiri & kananku
Padahal bada magrib tadi betapa sulitnya aku merangkai
Kata-kata untuk kupanjatkan saat berdoa

Hari ke-5 kembali aku lupa akan tahajudku
Kupilih shaf paling belakang dan aku mengeluh saat imam sholat jum’at kelamaan bacaannya
Padahal betapa dekat jaraknya aku dengan televisi dan betapa nikmat,
serunya saat perpanjangan waktu sepak bola favoritku tadi malam

Hari ke-6 aku semakin lupa akan tahajudku
Kuhabiskan waktu di mall & bioskop bersama teman2ku
Demi memuaskan nafsu mata & perutku sampai puluhan ribu tak terasa keluar
Aku lupa .. waktu diperempatan lampu merah tadi
Saat wanita tua mengetuk kaca mobilku
Hanya uang dua ratus rupiah kuberikan itupun tanpa menoleh

Hari ke-7 bukan hanya tahajudku tapi shubuhkupun tertinggal
Aku bermalas2an ditempat tidurku menghabiskan waktu
Selang beberapa saat dihari ke-7 itu juga
Aku tersentak kaget mendengar khabar temanku kini
Telah terbungkus kain kafan padahal baru tadi malam aku bersamanya
& ¾ malam tadi dia dengan misscallnya mengingat aku ttg tahajud

Kematian…………..
Kenapa aku baru gemetar mendengarnya?
Padahal dari dulu sayap2nya selalu mengelilingiku dan
Dia bisa hinggap kapanpun dia mau

¼ abad lebih aku lalai….
Dari hari ke hari, bulan dan tahun
Yang wajib jarang aku lakukan apalagi yang sunnah
Kurang mensyukuri walaupun KAU tak pernah meminta
Berkata kuno akan nasehat ke-2 orang tuaku
Padahal keringat & airmatanya telah terlanjur menetes demi aku

Tuhan…………
Andai ini merupakan satu titik hidayah
Walaupun imanku belum seujung kuku hitam
Aku hanya ingin detik ini hingga nafasku yang saat nanti tersisa
Tahajud dan sholatku meninggalkan bekas
Saat aku melipat sajadahku…..
Amin….

Bila di dunia ada syurga,
maka itulah kehidupan rumah tangga yang sakinah mawaddah wa rahmah.
Bila di dunia ada neraka,
maka itulah kehidupan rumah tangga yang tak selaras & jauh dari agama.

Bahagialah mereka yang diamnya berfikir,
Memandangnya mengambil pelajaran,
mendengarnya mengambil hikmah, dan
dalam tindakannya mengenal indahnya ajaran Islam.

wassalam



Taken from Hendito's posts @students.stttelkom.ac.id..thank's a lot Hen... :smile:

Get Stuck...

Whoe..don't know what happen with my head tonight. It feels like there some nail inside :frown:. In the other side, I have to finish my final project's report tonight, because tomorrow I want to meet my lecture to discuss this.

I got this result in my last experience :

1. bitrate = 200 kbps --> delay > 8s
2. bitrate = 300 kbps --> delay > 6s
3. bitrate = 400 kbps --> delay > 5s
4. bitrate = 500 kbps --> delay = 1s
5. bitrate = 600 kbps above --> delay < 1s
Both of them tested in the same condition with 320x240 videosize and 12 fps for the framerate.

do anyone have some comments about his result..??? Which one I have to choose..???

1. am I have to ignore the delay and video quality (200kbps bitrate) to get a low bitrate stream, or
2. I have to ignore the bitrate to get the best result for delay and video quality..???

It's so hard in knowing that 500 kbps is too huge for streaming..it will kill the network resources, but when I see the video I can't lie that the video qualty and its delay was unbelievable. The second thing that makes me prefer to choose the second option is the other research that enyong and awan did. They use windows platform with 700-1200 kbps and the delay is for about 15-30 second. Hope tomorrow's discussion with my lecture can solve this problem...

Next step is building a multicast router using OpenBSD. What is the reason in using OpenBSD..??? because many BSD users recommend me to use it for embadded device :smile: So, let's try to do a small research about OpenBSD..!!! But I haven't get a PC to build this router..hey, can anybody here lend me a PIII CPU..??? :D
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31