Convert H264 to MPG
Turn H264 videos into MPG. MPEG-2 video in an MPEG program stream without sound, for DVD tools and old players.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop H264 files on the dialor turn it to pick what to do
MPEG-2 video for DVD tools.A raw H264 stream becomes an MPG file with MPEG-2 video and no sound.
What you get
One MPG file. It holds MPEG-2 video in an MPEG program stream, the kind of file DVD tools and old players expect.
The input is a bare H.264 stream with no container, as encoders and cameras write it. The output wraps the video in a program stream.
What it leaves behind
The file has no sound. The MPG output carries video only.
Shaping the video
Set Max width or Max height to shrink large video. The shape is kept, and video that is already smaller is not enlarged.
Set Start at to cut seconds from the beginning, and Stop at to end at a given second of the original. Stop at counts from the start of the original, so it must be later than Start at.
Set Frame rate to change the frames per second. Fewer frames make a smaller file and choppier motion. Set Speed to play faster or slower, where 2 is twice as fast and 0.5 is half as fast. Set Rotate to turn the result by 90, 180 or 270 degrees clockwise.
Failures
A stream that cannot be parsed stops with
input_corrupted.
H264 and MPG.What each format is, and the options this conversion takes.
- 01 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
16 to 20000 - 02 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
16 to 20000 - 03 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270 - 04 · speed
Speed
Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.
0.25 to 4 - 05 · trim_end
Stop at (s)
Stops at this second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.
0 to 86400 - 06 · trim_start
Start at (s)
Cuts this many seconds from the beginning. Decimals such as 1.5 work.
0 to 86400 - 07 · video.fps
Frame rate (fps)
Frames per second. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.
1 to 120
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
MPEG Video
MPEG-1 and MPEG-2 video, the formats of VCDs and DVDs.
- Extensions
- .mpg .mpeg .vob
- MIME type
- video
/mpeg - Kind
- Video
In your code.The same H264 to MPG conversion through the API, for your app or your agent.
$ cv convert clip.h264 clip.mpg$ cv convert clip.h264 clip.mpgQuestions.What people ask about H264 to MPG.
No. The output is MPEG-2 video without sound.
Yes. MPG to H264 converts in the other direction.
Yes. Set Start at and Stop at to pick the seconds you want. Stop at counts from the start of the original.
The file could not be parsed. The conversion stops with input_corrupted when that happens.