473,513 Members | 2,429 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to capture images from video?

Hello all:

I'd like to grab images from video (wmv format, a physical file stored
in the host or even a streaming video, e.g. mms://abc.com/test.wma).

Is there any solution that after I put the timecode into the the
module, the PHP can return to the image corresponding to the timecode.

How can I do this? Thanks

Apr 12 '06 #1
5 9693
I have been searching this for years too
and this is the only solution I have found:
http://ffmpeg-php.sourceforge.net/
"Pete Chen" <pe********@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hello all:

I'd like to grab images from video (wmv format, a physical file stored
in the host or even a streaming video, e.g. mms://abc.com/test.wma).

Is there any solution that after I put the timecode into the the
module, the PHP can return to the image corresponding to the timecode.

How can I do this? Thanks

Apr 12 '06 #2
>From http://www.pantz.org/blog/blog-10-2005.shtml

mplayer /video/videoname.ext -vo jpeg:quality=90,optimize=100 -ss 6
-frames 90

The above command uses mplayer to play the video file and uses
mplayer's video output driver for JPEG. It starts on the 6th second of
the video and grabs 90 frames (3 seconds of video)

Apr 12 '06 #3
Thanks, Yannick Benoit.

I've tried ffmpeg-php before I left my question.

I don't know why my Apache server always crashes while I am trying to
execute my

code to produce an image from ffmpeg.

Any suggestion?

Apr 14 '06 #4
Thanks, fletch. I use your solution to successfully producing images
from video.

But I still have two questions.

1. mplayer always produces the 1st frame images of the 1st sec.
whatever I use -ss to start from xxx sec.

For example:

mplayer 20060406.wmv -vf scale=720:480 -vo jpeg:quality=90,optimize=100
-ss 300 -frames 1

The above command line always produces two images. The first one is the
1st frame images of the 1st sec. The second one is what I really want.

2.Mostly, mplayer cannot go to right timecode I want it to do.

For example:

I use -ss 300 to play the video staring the 300th sec. But it will play
starting the 285th sec.

Hope you can help me out, and thanks in advance.

Apr 14 '06 #5
Never really tried this just knew mplayer could do that sort of thing
and googled to that effect. Don't really know much more I'm afriad.
This conversation is probably best conducted on an mplayer specifc ng
or maillist now.

Apr 14 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2246
by: rangermccoy | last post by:
Hello there, What are the best php/c libraries for handling media including images, video, and music? I would like to manipulate media dfiles, including watermarking, thumbnailing,...
0
929
by: ratcharit | last post by:
Hi, I want to display real-time camera feed video on a GUI GUI. If so does anyone know of any webcam manufacturers who provides APIs to their camera product that would do this via USB for...
5
3421
by: Juliano.net | last post by:
How can I capture audio and video so I can send them through the internet? I want to create a web conference application.
3
2173
by: Jens Jensen | last post by:
Hello, I'm looking for ways to build a web chat application that can also send audio and video without using flash or any com component. I will use ajax though. But my concerns are, weather i...
3
6336
by: artlover70 | last post by:
Hi everyone ! I am just wondering if capturing an image remotely with php is doable ? I am working on a project for my department where I need to write php code to capture an remote image and...
0
2653
by: kolgreen | last post by:
Hello! I have problem with capture a pictures from camera. When program is in tray or minimalized I can't take a picture. I think, problem is with handle, but I have not idea how change it. I...
0
995
by: shabana | last post by:
hi, The objective of my program is to capture a streaming data (Compressed Image data) transmitted by a processor through the network and display it as image.Also the capacity of the stream that...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.