Questions tagged [mjpeg]

30 questions
117
votes
9 answers

Meaningful thumbnails for a Video using FFmpeg

FFmpeg can capture images from videos that can be used as thumbnails to represent the video. Most common ways of doing that are captured in the FFmpeg Wiki. But, I don't want to pick random frames at some intervals. I found some options using…
d33pika
  • 1,981
23
votes
2 answers

ffmpeg open webcam using YUYV but i want MJPEG

I need ffmpeg to open webcam (Logitech C910) in MJPEG mode, because the webcam can give ~24 fps using the MJPEG "protocol" and only ~10 fps using the YUYV. Can I choose between them using the ffmpeg command line? xx@(none) ~ $ v4l2-ctl…
10
votes
1 answer

What is the best way to losslessly compress MJPEG to MP4?

I have a few digital camera movies recorded in MJPEG that are taking a few GB of storage space. I would like to better compress them, but losing as little detail as possible, or none. Since MJPEG doesn't compress across frames, I think that any…
lpacheco
  • 687
6
votes
2 answers

Mjpeg recording with FFMPEG preserving time information

I am recording the MJPEG video from an IP camera and saving it to a file but the problem is that file's duration is way smaller than the actual recording time. Its around 9 seconds video for 2 minutes recording. I tried following commands in…
2
votes
1 answer

How to make avi (MJPEG codec) by avconv for iphone?

I try to make video from pack of jpg by avconv and open it on iphone. I make avi file using MJPEG by command: avconv -r 10 -i %06d.jpg -r 10 -vcodec mjpeg -qscale 1 out.avi Eveything is ok on my PC, but when I open this video on iphone I see only…
wattson
  • 23
2
votes
2 answers

Why does encoding a video using the MJPEG codec take longer than MPEG-4?

I am testing the encoding performance (MPEG-4 and MJPEG) of a smart camera. I have written an application in OpenCV/FFMPEG for performing encoding, where the application captures images from the camera and encodes them to a desired encoding format.…
umair
  • 41
2
votes
1 answer

ffmpeg mjpeg pixel_format does not work with avfoundation

I'm capturing a video using a webcam that supports streaming its output as mjpeg. So far I've been doing it successfully on linux as follows: ffmpeg -pixel_format mjpeg -i /dev/video4 ... However, I'm deploying my application on Mac and don't seem…
2
votes
1 answer

Is it possible to rescale and/or adjust the colorspace of an IP cam stream to improve MJPEG picture quality?

Using an IP cam, grabbing the h264 stream the picture looks fine. Want to use the MJPEG stream, but the image is washed out, lack of contrast, blacks show as dark gray and whites show as light gray. Chroma looks ok (bright blue is dull blue,…
MAXdB
  • 41
2
votes
0 answers

Can't we do MJPEG decoding on a NVIDIA GPU with FFMPEG?

I was inspired by this post to experiment with MJPEG decoding on a Tesla K20c. I typed the following command on the command prompt: ffmpeg -hwaccel -r 10 -i 14_258.mjpeg -vcodec opencl helicopter.avi and it produced the following output: ffmpeg…
a_sid
  • 199
2
votes
0 answers

ffmpeg: convert mjpeg fifo into mp4 stream - on the fly- to render in chromium

I have a mjpeg stream in a fifo (comes from gphoto2 --capture-movie) and I want to play that stream in chromium. To capture the mjpeg stream I use: gphoto2 --capture-movie --stdout> fifo.mjpg Now I'm having hard times to figure out how to convert…
2
votes
1 answer

ffserver ffmpeg stream mjpeg from webcam Logitech C930e to mjpeg format without re transcoding

I have premium webcam from Logitech (C930e) and this camera support mjpeg built in processing directly in the camera it self. My purpose is to get that stream with ffmpeg and pipe it to ffserver so its can be streamed to web browser in mjpeg format.…
1
vote
0 answers

FFMPEG capture snapshot image from RTSP IPCamera

Hi I am able to stream video successfully from my IP Camera with VLC using the URL: rtsp://192.168.0.6:554/cam/realmonitor When attempting to use FFMPEG it is failing with the following errors: I have attached successful VLC comms and also the…
1
vote
1 answer

Fixing an unmuxed image/jpeg stream from webcam using gstreamer

I made a broken footage using the following pipeline: gst-launch-1.0 v4l2src ! filesink location=encode.mjpeg Somehow gstreamer can still play it back: gst-launch-1.0 filesrc location=encode.mjpeg ! jpegdec ! videoconvert ! xvimagesink However as…
1
vote
1 answer

Extracting jpeg images from mjpeg stream on terminal

I'm trying to extract jpeg images from an mjpeg stream. I've done a search and found a few sources, but those were extracting jpeg images from a mjpeg file, such as this one here. In my case, I don't have a file, but a live video stream. How can I…
Andrew
  • 545
1
vote
1 answer

Having trouble reading a YUV video with mplayer/mencoder

I'm making some experiences with the YUV raw video format. This YUV video I created (with ppmtoy4m from mjpegtools, from a series of screenshots taken at 24 fps) plays OK with Totem, correct rate, correct colors, everything. Plus, ffmpeg can convert…
JCCyC
  • 2,883
1
2