Grabbing frame from video
This is in continuation of my earlier post where I wanted to pick a color from an Image. Only this time, I wanted to grab a frame from a mpeg2 video and save it as a file so I could submit it to a photo contest. I got a couple of software none of which worked. I then decided to take matters in my own hand and use the Screenshot program in java that I had to take a snapshot of the video while it was paused. There's usually a slight blurring and I was okay with that.
To my amazement, the results were astounding like straight out of a Stephen King novel. First I played my video using Windows media player. Then I paused it at the frame I wanted. Then I ran my Screenshot program to save the frame to a PNG file. So far so good. Now that I had saved the frame I wanted, I let the video play till the end. Then when I checked the saved image guess what I found. The image stored was the last frame from the video and not the frame I wanted to save. It was as if the image got updated by itself after the java program had saved it and exited. How could this possibly be.
I wasn't ready to give up just yet. The last frame got saved to the file since the video kept running till the end. What if I didn't run the video after the file was saved and left it in pause mode. So I tried this out and I got my frame in a image. The picture was still inside of the WMP in the image which I planned to correct using the 'crop' tool of my image editing tool. Again, when I loaded the image into the ImageEditor, the results were frustrating to say the least. The 'crop' function wouldn't work. It was as if the image had a mind of its own and wouldn't respond to my effort to scroll the image. The picture inside the WMP itself would remain stationary while the rest of the picture scrolled. In the end, I decided to make the best use of what I had and just cropped the portion of the image I wanted AND was visible, and saved as a new image. So I had the picture I wanted or so I thought. I closed my ImageEditor and also WMP which was still paused. I was ready to upload the image I had saved to my website. I wanted to check the image before I uploaded it and when I opened it, I was amazed at what I found.
"The image was pitch dark and there was nothing but a black rectangle where earlier there was the picture of a marble structure."
Is there a scientific explanation that has to do with codecs and proprietary video formats or should I treat this as something out of a Stephen King novel.
Tuesday, July 24, 2007
Subscribe to:
Post Comments (Atom)
8 comments:
I already saw WMP become a dark area when my teacher tried to output a video into a projector. My guess i DRM. Oh btw, did you thought to try nestedvm as in:
http://www.jroller.com/dk/entry/java_media_a_new_perspective
as a altenative for translating native codecs to java?
fat burning furnace -
fatloss4idiots -
fat loss 4 idiots -
final sync -
final uninstaller -
firewall gold -
fitness model program -
fit yummy yummy -
flatten your abs -
forex auto money -
forex auto pilot -
forex confidante -
game tester guide -
governmentregistry -
government registry -
healthy urban kitchen -
higher faster sports -
homebrew installer -
homemadeenergy -
home made energy -
i am big brother -
instant profit machine -
i want a teaching job -
joyful tomato -
lose man boobs -
lower body make over -
macro virus -
magic of making up -
make money taking surveys -
malware bot -
maternityacupressure -
maternity acupressure -
meet your sweet -
moles warts removal -
buy valium purchase valium online - generic roche valium
buy tramadol with paypal purchase tramadol - can you buy tramadol onlinelegally
Buy Tramadol Online tramadol online pharmacy - buy tramadol with paypal
2020.02.26因新冠肺炎疫情酒店經紀將宣布酒店工作:為在校酒店兼差的青年學子畢業後與八大行業就業酒店上班市場接軌,酒店經紀公司就業服務處辦理酒店打工職能訓練場-2020年度酒店兼差場實習酒店上班計畫,與酒店經紀公司與八大行業老闆、國際飯局伴遊小姐接S(性交易)企業及非營利組織合作,鼓勵在校酒店兼職或就讀於市內大學1年級以上之青年學生,利用暑假期間前往八大行業酒店工作職場實習,一方面結合飯局接S(性交易)課程與實務跟客人床上技能,另一方面協助青年學生從酒店工作中建立正確的陪睡(性交易) 、顏射(精子射在臉上) 、口交口爆(精子射在嘴裡) 、戴套肛交進行交易專業精緻化等行為工作習慣及價值觀,以為未來正式踏入酒店上班職場作充分的準備。
2020.06.03酒店小姐的基本介紹跟工作內容八大行業陸續解封,其中台中市已經有75家酒店在昨(1)我在酒店上班的日子日正式復工,不過業者不敢來酒店上班-酒店打工的原因還是得落實防疫規定,所有工作人員都必須戴口罩、保持社交距離,違反規定者最重可處歇業處分。鞭炮聲響起,台中市酒店上班-酒店兼職-兼差如何達成人生的第一桶金酒店在停業1個半月後重新開張,原本酒店兼差不是一個複雜的工作環境?用來宣傳店內的佳麗跑馬燈,改成為第一線醫護人員加油打氣,防疫依舊不能鬆懈。首日復工全面備戰,員警到場臨檢,職場須知 【酒店PT 】一個一個得接受體溫測量才能進到店內查核,確保場內所有人都有戴口罩、保持社交距離,落實實名登記制。但疫情過後,驚傳酒店女不回去了。前酒店小姐:「今天才第一天開業而已,然後大家都趕快叫小姐回去,有的人轉正業,可能沒辦法馬上離職,缺小姐一定有。」酒店公關黃先生:「如果沒有(小姐)的話我們可以再應徵啊,沒有其他薪水比酒店高的啦,所以她們也是不得不回來。」很多人想找酒店上班,卻沒有良好的管道,媽咪的部落格算是管道之一!但媽咪要請妳問一下自己確定要來酒店上班了嗎?在酒店上班,必須承受許多許多的不公平與,這表示我還不夠好,而且不誨言的,我也希望收入可以增加!) 雖說酒店上班一個星期的收入等於一個上班族一個月二至三萬的薪水,八大行業絕不是輕鬆的工作很多沒在酒店上班過的都認為酒店上班是個輕鬆的工作、薪水也很多,其實薪水是有比一般工作要來的多沒錯。這陣子酒店休業損失慘重,貼出營業公告中多了一行「應徵酒店女」。受疫情衝擊的還有計程車司機。計程車司機:「差很多啦,以前都有(一天)2、3千,現在1千不到,(這陣子都去做什麼工作?)做鐵工啊。」酒店首日復工,業者全力衝刺拚業績,疫情趨緩之際,酒店開業防疫還是得擺第一。Q:未成年為什麼不能到酒店打工? A:法務部有規定未成年不得進出酒家、特種咖啡茶室、電子遊戲場...等等違反的話最嚴重的罰責是"歇業"或"停業究竟要如何在第一天就上手酒店的工作呢?許多人都認為酒店是個複雜的環境,不過與現實社會的壓力相較,酒店上班家人、男友會知道嗎?酒店兼職懶人包,酒店應徵必須懂的事,閃酒秘訣大公開,面對奧客一次就上手,酒店工作前應該注意的幾件事,這裡沒有天花亂墜的酒店應徵,都會問說到酒店上班要不要簽約。 事實上一般都是不需要簽約。
2020.12.03酒店工作-台北酒店專業經紀人台北市1名25歲王姓男子,日前帶黃姓【酒店小姐】【酒店公關】女友到寧夏夜市逛街,孰料,2人一步出小北百貨時,王男突遭7名惡煞伏擊,雙腿均被瑞士刀砍傷,歹徒得手後迅速離去,女友嚇得趕緊報案,所幸王男經治療後已無大礙;警方深入調查後發現,這批惡煞具有幫派背景,還涉及另起砸車鬥毆案件,將進一步追緝7名惡煞到案說明。警方調查,本月20日凌晨3時許,王男與黃姓女友前往小北百貨購物,結束後2人一同步出店外,突遭7名惡煞攔住去路,並朝王男噴灑辣椒水,女友拿起手機打算報案,卻遭1名白衣壯男喝止,7名惡煞分持棍棒痛毆王男,還持瑞士刀猛砍3刀,導致王男雙腿均有開放性傷口,頭部也有撕裂傷,歹徒逞凶後隨即離去,過程不到2分鐘,王男則被送往馬偕醫院,經醫師救治後已無生命危險。王男應訊時供稱,他並不認識對方,亦未與人結怨;警方清查後卻發現,王男從事酒店經紀工作,當晚他與女友從公司離開時,隨即遭到歹徒開車尾隨,從中山區一路跟到寧夏夜市,再趁2人疏於防備時下手,7名惡煞僅瞄準王男雙腿砍殺,警告意味濃厚,不排除雙方存在經紀糾紛,警方將循線追緝7名惡煞到案說明。
Post a Comment