Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to convert from mpg to mp4 container? (Read 6400 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to convert from mpg to mp4 container?

Hi
The famous Mainconcept h.264 encoder uses an mpg file format unlike NeroDigital or QuickTime7 which use a mp4 container. Is there any way to convert from mpg to mp4 without recompression?

Regards

Enrico


How to convert from mpg to mp4 container?

Reply #2
mp4box -add film.mpg film.mp4

may just work.

mp4box compiles & info:
http://forum.doom9.org/showthread.php?t=94874

------------

mp4box -h format
returns:

Suppported raw formats and file extensions:
NHNT                .media .nhnt .info
MPEG Audio          .mp3
ADTS-AAC            .aac
MPEG-4 Visual        .cmp .m4v
H263 Video          .263 .h263
AVC/H264 Video      .h264 .h26L .264 .26L
JPEG Images          .jpg .jpeg
PNG Images          .png
AMR(WB) Audio        .amr .awb
EVRC Audio          .evc
SMV Audio            .smv

Supported containers and file extensions:
AVI                  .avi
MPEG-PS              .mpg .mpeg .vob .vcd .svcd
QCP                  .qcp
OGG                  .ogg
ISO-Media files      no extension checking

Supported text formats:
SRT Subtitles        .srt
SUB Subtitles        .sub
GPAC Timed Text      .ttxt
QuickTime TeXML Text  .xml  (cf QT documentation)

Supported Scene formats:
MPEG-4 XMT-A        .xmt .xmta .xmt.gz .xmta.gz
MPEG-4 BT            .bt .bt.gz
VRML                .wrl .wrl.gz
X3D-XML              .x3d .x3d.gz
X3D-VRML            .x3dv .x3dv.gz
MacroMedia Flash    .swf (very limitted import support only)


edit: right, yamb will do it as well, since it is a mp4box gui...
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

How to convert from mpg to mp4 container?

Reply #3
Quote
anyway
http://forum.doom9.org/showthread.php?t=93927
(was i faster than kurt? hehe)
[a href="index.php?act=findpost&pid=340403"][{POST_SNAPBACK}][/a]

coz I'm not a mp4 fan...

In addition to the smok3 answer, if your mpg file has an ac3/dts stream, you must specify the flag for the video :

mp4box -add film.mpg#video film.mp4

How to convert from mpg to mp4 container?

Reply #4
Thank you very much for your valuable replies

I will try to do what you have suggested.

I want to get files in an mp4 container to play in hardware players that will use it like the new Ipod.

I was wondering what kind of container will be used in the new Hd dvd and blue ray will be adopted?

Regards
Enrico

How to convert from mpg to mp4 container?

Reply #5
Quote
I was wondering what kind of container will be used in the new Hd dvd and blue ray will be adopted?


they wil probably use some structure simillar to present-day dvd (vobs) with program streams (and other stuff) inside, ie you probably have better chances with mainconcept's .mpg streams than with .mp4 when it comes to compatibility with new disc formats.