Log in

View Full Version : changing Aspect Ratio of ASP streams in .mp4?


tedgo
22nd March 2005, 23:30
Sorry for bringing up this old topic, but i'm searching for a tool to change the PAR in ASP.mp4, not AVC.mp4.
The ARChanger doesn't work with ASP.mp4 (got the same EOF message like bond).
Is there any tool to change the PAR in ASP.mp4?

bond
23rd March 2005, 00:04
as the title says archanger works only on avc streams

as written in my mp4 faq you can change the aspect ratio on existing mpeg-4 asp video streams with mpeg4modifier, which will only work tough if the stream is placed in .avi

tedgo
23rd March 2005, 01:02
Its not a good idea, cos when remuxing the AR-corrected avi-file with the other streams, the embedded vobsubs are gone...
So there's no way to correct the PAR directly in mp4?
Or how to remux the corrected avi-stream with the other streams and keep the vobsubs? I tried with mp4boxgui (mp4ui doesn't create a valid file)

bond
23rd March 2005, 01:14
why do people always want to do such funky things :rolleyes: :p

1) demux the video from .mp4 to .avi (eg with mp4ui)
2) delete the video stream from the .mp4 in mp4ui
3) change the AR on the .avi with mpeg4modifier
4) add the video stream from the .avi back to .mp4 with mp4ui

note thats the easy way going via mp4ui, its not perfect, but i assume most players will handle the result anyways
so better backup your source .mp4 somewhere ;) (beaware mp4ui simply overwrites files)

splitted from avc thread as it doesnt belong there

tedgo
23rd March 2005, 01:35
That's exactly the way i did, but got followed error message and the file wasn't valid

bond
23rd March 2005, 01:39
ah yes, mp4ui automatically wants to optimize every file you open with it
i dont think thats a problem, i for myself have disabled the optimization function of mp4ui

does the result play fine?

tedgo
23rd March 2005, 01:41
No, it was not playable.
Before the above message i got these message:

bond
23rd March 2005, 01:44
hm you can also try to add the video.avi to the .mp4 (the one without the video stream) with mp4muxer

tedgo
23rd March 2005, 01:45
Yes but than the vobsubs are gone...

EDIT:
Oh sorry.
With MP4Muxer there is also no valid file created (and i have to add a audio file too).
The vobsubs are gone with MP4UI, but it gave me a valid file.

Oh, so many problems with mp4-container... :D
(my PAR-problem as reported on gleitz-board)

bond
23rd March 2005, 01:59
Originally posted by tedgo
Oh sorry.
With MP4Muxer there is also no valid file created (and i have to add a audio file too).
what do you mean with "no valid file"?

the mp4muxer devs claim that you can mux a video .avi to an existing .mp4 with chapters, vobsubs aso...
if thats not true you might want to contact them

if mp4muxer wants you to input an aac audio, simply demux the aac audio with mp4ui and feed mp4muxer with it

The vobsubs are gone with MP4UI, but it gave me a valid file.never seen that mp4ui deletes a track by itself
here it handles vobsubs fine

tedgo
23rd March 2005, 02:07
Ah sorry, i'm a bit tired ;)
I opined: MP4BoxGUI "deletes" the vobsubs but the created file is playable.
MP4Muxer causes the same problem as MP4UI: No playable file (but only when trying to mux a nero created mp4 with the ar-corrected video).

Btw.
if mp4muxer wants you to input an aac audio, simply demux the aac audio with mp4ui and feed mp4muxer with it

Then there are shown three audiotracks in neroshowtime, although there are just even two in the file...

bond
23rd March 2005, 02:07
Originally posted by bond
1) demux the video from .mp4 to .avi (eg with mp4ui)
2) delete the video stream from the .mp4 in mp4ui
3) change the AR on the .avi with mpeg4modifier
4) add the video stream from the .avi back to .mp4 with mp4uiok, i now tried this method myself on a .mp4 which includes a vobsub stream and it worked perfectly

dunno why it doesnt work for you :p

Originally posted by tedgo
MP4Muxer causes the same problem as MP4UI: No playable file (but only when trying to mux a nero created mp4 with the ar-corrected video).mp4muxer uses mp4creator to my knowledge, which is basically also what mp4ui is using

either you dont use the mp4creator/mp4ui versions i use (the latest) or your stream/file is somehow borked

my file was created by nero recode2

Then there are shown three audiotracks in neroshowtime, although there are just even two in the file...of course you have to delete the audio stream from the .mp4 before you later remux it. if you dont do this you will have it twice

tedgo
23rd March 2005, 02:11
I'll try with some more files and report.
But still tomorrow

Btw. i used the latest mp4creator offered on the mp4muxer-download-site

of course you have to delete the audio stream from the .mp4 before you later remux it. if you dont do this you will have it twice
Off course, i did, its not really present, but shown as present.

EDIT:
Now i tried it with three other asp-files created by NeroRecode 2.2.6.11.
One without subtitles, one with one subtitle and one with two subtitles, but all with two LC-AAC-audiostreams.

I tried this method:
1) demux the video from .mp4 to .avi with mp4ui 1.0rc2
2) delete the video stream from the .mp4 in mp4ui 1.0rc2
3) change the AR on the .avi with mpeg4modifier v1.3.2
4) add the video stream from the .avi back to .mp4 with mp4ui 1.0rc2

I got always the same error messages as posted above.
But it works with mp4s not created by NeroRecode...

Then i tried to mux with mp4muxer 0.5 build 32675:
I got no "CompleteVideo.mp4" (although its claimed in the log-window) with my nerodigital-files but only a not playable "tmpf4.mp4".
Muxing xvid.avi, chapter.mp4 and aac.mp4 still works, but if i want to add srt-subs, i even got only a (playable) tmpf4.mp4 (but without subs).

Next: MP4BoxGUI0.13 and the latest mp4box
All the videos are properly muxed, but without the vobsubs

bond
23rd March 2005, 10:04
Originally posted by tedgo
Now i tried it with three other asp-files created by NeroRecode 2.2.6.11.
One without subtitles, one with one subtitle and one with two subtitles, but all with two LC-AAC-audiostreams.

I tried this method:
1) demux the video from .mp4 to .avi with mp4ui 1.0rc2
2) delete the video stream from the .mp4 in mp4ui 1.0rc2
3) change the AR on the .avi with mpeg4modifier v1.3.2
4) add the video stream from the .avi back to .mp4 with mp4ui 1.0rc2

I got always the same error messages as posted above.
But it works with mp4s not created by NeroRecode...so you got the same error also with a .mp4 that doesnt include vobsubs, but only audio and video?

if yes, can you please upload such a sample somewhere so i can try to reproduce this?

are you sure your samples use ASP video and not AVC?

tedgo
23rd March 2005, 12:43
Sorry, but uploading is not possible (i have no webspace and only an analogue 56k modem) :( .
But it happens with all mp4s encoded with NeroRecode.
May i have a corrupt copy of it? (A friend with dsl downloads me the very latest updates every month)

And yes, i'm absolutely sure that the samples are ASP and not AVC.
I even tried the "Quicktime-compatible" setting in NeroRecode last night, but got the same errors.
And NeroRecode is foolproof, so i can't do anything wrong with it ;) I'll try it again with the next nerorecode version.

Btw. as i mentioned before, the described method works perfect with files not encoded by NeroRecode, but with them its normally not necessary to correct the PAR, cos XviD sets a correct 16:9 PAL PAR (and not as NeroRecode a Generic 16:9 PAR)

tedgo
25th March 2005, 14:26
Another question:
When encoding mp4s for playback on standalones is it generally necessary to follow the ITU-R BT.601-Standard?
If not, NeroRecode would give the exact AR on anamorphic encoding (and i don't have the need to correct it).
SeeMoreDigital answered me in another thread, that its not necessary, the mp4s would be displayed correctly on standalones, when not followed the ITU-standard. He said, following the ITU the encodings would displayed with an other AR than the original dvds.
I know that following the ITU the encodings are other than dvds displayed well on PC, but how about standalones?
And what about non-anamorphic encodings?

If SeeMoreDigital (and the developers from NeroRecode) is right - and i don't have a reason to doubt about it atm - , than i have to set a Custom PAR of 64/45 for 16:9 PAL and 16/15 for 4:3 PAL (or Picture Aspect Ratio of 16:9 or 4:3 without cropping) in XviD.

But i read some more threads about it and now i'm a bit confused, cos some say its necessary to follow ITU some say not.

Can someone solve my confusion?

Btw. I have no MP4-Standalone-Player, but i'm intended to buy one the next time. So i can't check it for myself atm.

EDIT:
Please forget it. :D
SeeMoreDigital must have been right from a logical point of view... :rolleyes:

SeeMoreDigital
25th March 2005, 21:25
Hey,

Like I've said many times... I have nothing against the ITU regulations and their relationship to how over-scan is calculated for displaying on analogue TV displays!

But we are moving into a totally digital age now. An age in which more and more of us will be buying and connecting devices via DVI and HDMI. An age in which over-scan will be gone!

Just like it is now on your VGA display!


Cheers

SeeMoreDigital
25th March 2005, 21:56
I've just tried MP4muxer myself (on a very short clip with 2No sets of subtitles and 2No sets of audio streams. And it worked for me too!

Mind you, you should be able to do the same with mp4UI as well.

What a shame MP4BoxGUI can't do the same... as it's a lovely little muxing tool.


Cheers