Convert H264 to JPG
Turn H264 videos into JPEG. The first frame, or the one frame_at seconds in, as one high quality JPEG at the stream's own size.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop H264 files on the dialor turn it to pick what to do
A still frame from a raw H.264 stream.One high quality JPG of the first frame, or of the second you choose.
What you get
A single JPG taken from the stream at the stream's own size. By default it is the first frame. Set Frame at (s) to take the picture from a later second instead, anywhere from 0 to 86400.
JPG is lossy, so the picture is a compressed copy of the decoded frame, not an exact one. Every device and browser opens it, and it has no transparency.
Reaching a late frame
A raw H.264 stream has no container and no index. To reach a frame late in the stream, everything before it must be decoded first. A high value in Frame at (s) therefore means more decoding than a low one.
Setting the size
By default the picture keeps the size of the stream. Set Width (px) or Height (px) for an exact size. If you give only one, the other follows the aspect ratio. If you give both, the picture can be stretched.
Set Max width (px) or Max height (px) to shrink a large frame while keeping its shape. Frames that are already smaller stay as they are, so nothing is enlarged.
When it stops
If the file cannot be parsed, the conversion stops with
input_corrupted. For a different result from the same stream, see trim H264 to cut it down first.
H264 and JPG.What each format is, and the options this conversion takes.
- 01 · frame_at
Frame at (s)
The second of the video the picture is taken from. The first frame is used when it is left out.
0 to 86400 - 02 · height
Height (px)
The exact height of the result in pixels. The width follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 20000 - 03 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 05 · width
Width (px)
The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 20000
The formats
Raw H.264 Stream
An H.264 elementary stream with no container, as encoders and cameras write it.
- Extensions
- .h264 .264
- MIME type
- video
/h264 - Kind
- Video
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
In your code.The same H264 to JPG conversion through the API, for your app or your agent.
$ cv convert clip.h264 clip.jpg$ cv convert clip.h264 clip.jpgQuestions.What people ask about H264 to JPG.
The first frame, unless you set Frame at (s). Then you get the frame at that second.
No. The output is one file with one frame in it.
Yes, by default. The picture has the stream's own width and height unless you set Width (px), Height (px), Max width (px) or Max height (px).
The file could not be parsed. The conversion stops there and no JPG is made.