Back Forum Reply New

GPAC 0.1.4 is out

jeanlf has released a new version of his great opensource (gpl) GPAC MPEG-4 framework, which includes
- Osmo4, the MPEG-4 audio/video and systems decoder/player
- MP4Box, a very powerful MP4 tool, offering mpeg-4 systems encoding and now also the correct handling of AVI hacks when importing to the MP4 container (yeah 3ivx is not alone anymore  )

find out more about the GPAC project here and here
thanks to rjamorim you can now find uptodate binaries on rarewares

changes since 0.1.2:

Osmo4:
- lots of updates and fixes of the systems decoder, GPAC Osmo4 should now be one of the most complete MPEG-4 systems 2D players available
- updated plugins based on xvid 1.0 and ffmpeg
- streaming fixes
- lots of other fixes and addons a dumb ass like me doesnt understand

MP4Box:
- heavily enhanced AVI import! MP4Box now handles MPEG-4 in AVI importing correctly including removing all sorts of AVI-hacks and other problems like
- unpacking packed bitstreams
- removing the VOL placed on every I-frame in AVI
- removing delay frames caused by VFW
- removing of the packed bitstream flag from xvid streams causing problems with the xvid decoder
- detection and correct handling of non-packed bitstream N-VOPS (offering VFR or CFR output now as the 3ivx muxer)
- creation of anamorphic MP4 files during import when a PAR is set in the video stream
- added stream analysis (counting the number of I/P/B-VOPS in a stream, number of max cons. b-frames...)
- readout and correct setting of the profile/levels set by the encoders
- support for XviD, DivX4/5, 3ivx, ffvfw and NeroDigital import
- ISMA compliance
- fixed hardcoded output size

- supports raw (mp4v, mp3, aac, jpg, png) and avi export
- supports merging of two mp4 files

check out the full changelog here guide on how to use MP4Box:
MP4box is a commandline tool, therefore you have to feed it with commandlines  the most important ones can be found below (a more complete list can be found here)
place the mp4box.exe and your media files in the same folder, create a .txt file and place the commandline you need in it, rename the .txt to .bat and execute it

1) Importing from AVI to MP4

Code:
MP4Box -inter 1000 -import myavi.avi mymp4.mp4
2) Importing from AVI to VFR MP4 (dropping N-VOPS if set by XviD, 3ivx and NeroDigital)

Code:
MP4Box -inter 1000 -import myavi.avi mymp4.mp4
3) Importing from AVI to CFR MP4 (not dropping N-VOPS)

Code:
MP4Box -inter 1000 -import myavi.avi -nodrop mymp4.mp4
4) Merging an audio-only MP4 with a video-only MP4

Code:
MP4Box -inter 1000 -merge input1.mp4 input2.mp4 output.mp4
5) MPEG-4 Systems encoding
Code:
MP4Box -mp4 script.bt
6) Extracting the video stream from MP4 to AVI

Code:
MP4Box -avi TrackID mymp4.mp4
7) Extracting the raw MP4V/AAC/MP3/JPG/PNG from MP4

Code:
MP4Box -raw TrackID mymp4.mp4I was just about to report a problem with osmo 4 player quot;not finding video codecquot; and not displaying the advanced features in the starwars sample, but this one fixed it for me (win XP and win2K3). btw, Gpac 0.1.2 worked fine on a comp at work with win98.
maybe some missing or not up to date dll in the last installer and I haven't installed the Gpac extra libs or lib4isomedia.
I can now start to work on some cool menus

Finally I can hear the audio of my files with this version... The subtitles muxed with mp4box also work.

BUT... I'm having trouble playing files muxed with 3ivx. Let's see if this is just some fluke from my system...

I can now start to work on some cool menus
Finally I can hear the audio of my files with this version... The subtitles muxed with mp4box also work.

great

BUT... I'm having trouble playing files muxed with 3ivx. Let's see if this is just some fluke from my system...

hm yes, strange i only get a black picture when playing in osmo4

hi

i cant use the merge option with aac files (in mp4)... i dont see mp4box supports it (aac)

Originally posted by iradic
i cant use the merge option with aac files (in mp4)... i dont see mp4box supports it (aac)

works here
i forgot to add quot;output.mp4quot; to the commandline above  

try this
Code:
MP4Box -merge input1.mp4 input2.mp4 output.mp4
make sure that the input files always only carry 1 stream! it doesnt work atm if one input file contains audio + video or so...

yes, quot;output.mp4quot; ... works now

thanks...

Much better. It also plays mp3 tracks from mp4 files.

BUT... MP4Box cannot (at least here) import VBR mp3 tracks from avi files. If I remux it to mp4 it works fine, but not from AVI.

Now one of us has to bug stux (and gabest) to have some DirectShow filter that supports the subtitles

I was trying to play different mp4 files that I made with quot;MP4Box -importquot; from avis.
All of them was hanging player with every video plugin, until I played Bond's Star Wars.
After playing this file and before closing player all of my files are playable and look good.
But if I start without this sample, player becoming unusable.
I don't mind watching Star Wars, but what is wrong?
Should I do something after importing?
OpenDivX Decoder is not working.
5.1 AAC still not working right.

Originally posted by gotaserena
Much better. It also plays mp3 tracks from mp4 files.

of course, mp4 doesnt mean that you are forced to use aac for audio encoding

BUT... MP4Box cannot (at least here) import VBR mp3 tracks from avi files. If I remux it to mp4 it works fine, but not from AVI.

yeah reproduced :/
importing cbrmp3-in-avi and .mp3 vbr streams works correctly tough
seems jean forgot to quot;unfuckquot; one of the dozens avi hacks available - basically vbrmp3-in-avi is (yes, what else) a hack: avi cant handle vbr audio streams on its own

so atm if you want to important from an avi file including vbrmp3 you will have to use the following commandline, to avoid muxing the mp3 stream too:

Code:
MP4Box -import myavi.avi#video mymp4.mp4
its always the same: someone introduces ugly hackery to be able to keep the outdated, crappy avi container alive and than all the other devs get troubles because the people think that their tools are buggy cause they dont support all this hackery (how should they, these hacks are nowhere specified nor standardized...)  

Now one of us has to bug stux (and gabest) to have some DirectShow filter that supports the subtitles

no need to wait, the enviviotv directshow filter already supports playing them!

Originally posted by pogo stick
All of them was hanging player with every video plugin, until I played Bond's Star Wars.
I don't mind watching Star Wars, but what is wrong?
Should I do something after importing?
OpenDivX Decoder is not working.
5.1 AAC still not working right.

jean himself already listed something similar under quot;known issuesquot;
this shouldnt have something to do with the importing

also dont forget that .mp4 is an open standard, you are not forced to use 1 specific player to play .mp4 files
so for example until osmo4 supports multichannel aac decoding, you can also play such streams via a dshow player...

no need to wait, the enviviotv directshow filter already supports playing them!

I'll be satisfied when I can do this using graphedit, with a splitter that supports the subtitles stream separately

Originally posted by bond
also dont forget that .mp4 is an open standard, you are not forced to use 1 specific player to play .mp4 files
so for example until osmo4 supports multichannel aac decoding, you can also play such streams via a dshow player...

Yes, I understand that. But personally for me, the main advantage of mp4 container is menu support.
Oh, and I really loved black thing with white buttons and slider that appears after clicking in Star Wars sample!
But the only player that plays these things is Osmo4 (by the way, 'about' says it's version 0.1.5).
Nice, but because of sound and unstable work I can not use it.
So it's like an apple hanging above my head. And I can not jump high enough to grab it.
I wish I was bigger pogo stick!
And I think mp4 is really lack of editing programs support.
Something like VirtualDub would help a lot in mp4 popularization.
But it's just an opinion of common user.
I can not do anything right now. Maybe some day...

Originally posted by pogo stick
Oh, and I really loved black thing with white buttons and slider that appears after clicking in Star Wars sample!

thanks

But the only player that plays these things is Osmo4 (by the way, 'about' says it's version 0.1.5).

yeah, envivio doesnt handle the menus till now cause its a very limited systems decoder, maybe i will release a smaller mp4menu script, which is compatible with enviviotv, but it wouldnt allow a 1:1 backup of the dvd, inlcuding things like looping of the menus aso...

And I think mp4 is really lack of editing programs support.
Something like VirtualDub would help a lot in mp4 popularization.
But it's just an opinion of common user.

well you can already cut, join, append aso... .mp4 files in quicktime, but its limited to simple profile (no b-frames aso...)

Originally posted by gotaserena
I'll be satisfied when I can do this using graphedit, with a splitter that supports the subtitles stream separately

yeah something like an opensource dshow systems decoder would be great
jean will not release such a decoder as he aims at being platform independant and dshow is very windows-centric, but still this doesnt mean that someoneelse cant port the osmo4 bifs decoder code to dshow

i forgot to add that mp4box now, like 3ivx, also offers to create anamorphic MP4 files from avi sources with a pixel aspect ratio set (like it is offered by the 3ivx, xvid and ffvfw codec)

I'm trying to convert AVI (packed bitstream) -gt; MP4 -gt; avi (no packed bitstream) but while converting MP4 to AVI I'm getting msg:

Invalid MPEG-4 stream in track ID 0.

Any suggestions ?

you have to find out the trackid of the video stream in the .mp4...
that can be done with opening the .mp4 in mp4ui for example (dont demux to avi with mp4ui!)

lets say if the video trackid is quot;2quot; than run the following commandline quot;MP4Box -avi 2 mymp4.mp4quot;

but of course the question is: why do you want to go back to avi

Obviously someone felt the urgend need to split something and chose a thread instead of some hairs.

Osmo4 isn't able to play some files in : MPEG4/
with mpeg-4 video content(as MPEG4/down.../NetCODEC.mp4, MPEG4/down...on_stuart.mp4, ..)
Could please someone have a look at these files and explain if they are Osmo-compliant?(and the problem is here on my pc  )
Thanks in advance.
Springl

1) the stuart little sample perfectly plays here in osmo4
2) the netcodec sample seems to include a not mpeg-4 compliant video stream (or a f*ed up video stream)
next to osmo4 i also tried playing it in dshow with a bunch of mpeg-4 decoders, which all also couldnt handle it
i first assumed that it might be ms-mpeg4/divx3.11, which is not mpeg-4 compliant! but than the bitstream description would have said so (unless someone removed it)
the wierd thing also is that the video is marked having a 0x0 resolution
i also tried extracting the video stream (still couldnt be played) and importing again to .mp4, which mp4box refuses tough (quot;error importing avi framesquot;)

Here is the problem.
avi is XviD, 544x400, 1414 kbps, AS @ L5, 2 B-VOPS, Closed GOV, Packed bitstream

-------------------------------------
G:\mp4\MP4Box.exe -import v.avi v.mp4
AVI XVID video import - 544 x 400 @ 25.00 FPS
Indicated Profile: Advanced Simple Profile @ Level 5
import AVI video frame 25553 / 32363
-------------------------------------

Then when importing part is over is says:

-------------------------------------
Has B-Frames (2 max consecutive B-VOPs - packed bitstream) - Adjusting CTS...
-------------------------------------

And keep adjusting till I 'ctrl+break'.
quot;...Takes me one step closer to the edge
And I'm about to break...quot;
CPU usage is 100%.
I waited for about 40 minutes.
Video is 21 minutes long.
What is CTS?
And file called 't3vk' appears at the same drive where avi is.
File size is a little smaller then avi. But I can not copy it.
Everything is the same with -nodrop.
¥
Back Forum Reply New