Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Closed Thread
 
Thread Tools Display Modes
Old 4th June 2006, 04:07   #1  |  Link
Zep
Registered User
 
Join Date: Jul 2002
Posts: 527
Can we put ac3 in mp4 without the use of a private stream?

When i demux a .ts i get ac3 and i do not want to convert to aac. i want to use the ac3 as is in my mp4 but it appears the only way STILL is via private stream/media object. I'm ok with that except most players/decoders do not look at the private streams when they find no audio in the standard location and standard audio tags.

Has anyone been able to get this to work in such a way as to not be such a hack? (well a hack for now anyway. I hope that changes in the near future)

Thoughts?

yes i could use .mkv but that has pros and cons also

thanks
Zep is offline  
Old 4th June 2006, 08:52   #2  |  Link
GodofaGap
Registered User
 
Join Date: Feb 2006
Posts: 623
AC3 storage is not standardized for MP4 and it won't be, so what you want is not possible.

This question is asked at least 1 time per month...
GodofaGap is offline  
Old 4th June 2006, 12:58   #3  |  Link
Zep
Registered User
 
Join Date: Jul 2002
Posts: 527
Quote:
Originally Posted by GodofaGap
AC3 storage is not standardized for MP4 and it won't be, so what you want is not possible.

This question is asked at least 1 time per month...
yes i read a few of the older threads but most were off base since i put ac3 in mp4 all the time in OSX via private stream and it works fine with players and decoders that are smart enough to look at the private stream and read the header info and see that it is an audio file etc... mp4 was designed to support media objects of all types and not just the standard out of the box basic ones.

Anyway, I wanted to know if the windows side has caught up and it appears it has not

However i see on sourceforge a few of the projects they added ac3 private stream support so things are looking up in the windows camp.
A hack yup but so is most of the video/audio stuff being used like h264 in avi and VBR mp3 in avi and on and on...

thanks for you input!
Zep is offline  
Old 4th June 2006, 13:26   #4  |  Link
derek ss7
Registered User
 
Join Date: May 2004
Posts: 2
can any one tell me why recorded tv programs to disk on my sony RDR HX900 dvd recorder will not play on my pc or any other dvd player they never reconise the disk, i know the disks are ok. is there any software out there that can help. thanks
derek ss7 is offline  
Old 4th June 2006, 13:41   #5  |  Link
SeeMoreDigital
Life looks better in HDTV
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 10,026
Quote:
Originally Posted by Zep
yes i read a few of the older threads but most were off base since i put ac3 in mp4 all the time in OSX via private stream and it works fine with players and decoders that are smart enough to look at the private stream and read the header info and see that it is an audio file etc...
Interesting

Could you provide me with a sample please (with MPEG-4 SP video)?


Cheers
__________________
Still confused about anamorphic images? Then look here! | Main Encoding Interests: Hardware device playback | My Gear |
SeeMoreDigital is offline  
Old 4th June 2006, 13:58   #6  |  Link
bond
Moderator
 
Join Date: Nov 2001
Posts: 9,780
Zep, i guess what you have is a mov file with the wrong extension, and not mp4...

again, it makes no sense to place ac3 in mp4. if you think that the technology used in mp4 is so great (eg better than mkv or mpg) use mov for storing ac3...
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline  
Old 4th June 2006, 14:18   #7  |  Link
GodofaGap
Registered User
 
Join Date: Feb 2006
Posts: 623
Quote:
Originally Posted by Zep
A hack yup but so is most of the video/audio stuff being used like h264 in avi and VBR mp3 in avi and on and on...
I don't care if it's a hack or not (and I don't think the other things you mentioned are necessarily hacks either), but you asked if there was a way without private streams I believe. Since the mp4 specs do not specify how to store AC3 specifically ( ), it is not possible. I didn't want to pass on a moral judgement if you should use AC3 in MP4 or not.

Can I ask you what tool you are using to make these files?
GodofaGap is offline  
Old 4th June 2006, 15:00   #8  |  Link
SeeMoreDigital
Life looks better in HDTV
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 10,026
Quote:
Originally Posted by bond
Zep, i guess what you have is a mov file with the wrong extension, and not mp4...

again, it makes no sense to place ac3 in mp4. if you think that the technology used in mp4 is so great (eg better than mkv or mpg) use mov for storing ac3...
I must admit I can't see how AC3 can be placed within MP4, hence my request for a sample...

That said, with regard to placing AC3 within MOV, I'm not sure whether this is possible, given that QuickTime player does not support AC3!


Cheers
__________________
Still confused about anamorphic images? Then look here! | Main Encoding Interests: Hardware device playback | My Gear |
SeeMoreDigital is offline  
Old 4th June 2006, 15:27   #9  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Marseille, France
Posts: 4,399
Quote:
Originally Posted by GodofaGap
Can I ask you what tool you are using to make these files?
Open a vob including ac3 streams into Avidemux, choose x264 for video compressor and Audio Copy in the drop list then save your file into mp4.

This kind of file is playable with MPC but like Bond and others said that makes no sense.
__________________
The problem, of course, is that there are many smart people in the world... Steve Jobs

[my random stuff] | [Please, no MeGUI support via PM]
Kurtnoise is offline  
Old 4th June 2006, 19:49   #10  |  Link
Drachir
Teetrinker
 
Drachir's Avatar
 
Join Date: Jan 2002
Posts: 257
The way avidemux place ac3 in MP4 is wrong, there is no mp4a box/atom. In MP4 files the elementary stream type is identified through the objectTypeIndication number. For unregistered elementary streams types you have to use a private objectTypeIndication number. Take a look here for registered numbers: http://www.mp4ra.org/object.html

If you want know how to place elementary streams into MP4 take a look at the nhml import/extract from MP4Box.
__________________
Play GO ( http://en.wikipedia.org/wiki/Go_(board_game))
Drachir is offline  
Old 5th June 2006, 00:36   #11  |  Link
popper
Registered User
 
Join Date: Mar 2006
Posts: 229
Quote:
Originally Posted by SeeMoreDigital
I must admit I can't see how AC3 can be placed within MP4, hence my request for a sample...

That said, with regard to placing AC3 within MOV, I'm not sure whether this is possible, given that QuickTime player does not support AC3!


Cheers
the BBC HD are using AVC and AC3 in their .ts ,does that count?, or am i missing somethng.

the BBC_HDTrial.ts file over on the DS thread for instance.
popper is offline  
Old 5th June 2006, 00:54   #12  |  Link
GodofaGap
Registered User
 
Join Date: Feb 2006
Posts: 623
what does ts have to do with MOV or MP4?
GodofaGap is offline  
Old 5th June 2006, 02:58   #13  |  Link
woah!
Registered User
 
Join Date: Oct 2003
Posts: 405
maybe because the .ts files have H264 (MP4) video and AC3 audio so i think its a valid question.
woah! is offline  
Old 5th June 2006, 04:22   #14  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Oceanborn
Posts: 7,607
No, .ts and .mp4 have nothing to do with each other, they're entirely different containers and can hold entirely different formats. H.264 is MPEG-4, not MP4, though it can be stored in MP4.

The entire reasoning behind MP4 is that it will only contain MPEG-4 streams, vastly simplifying implementation requirements, and that enough other formats exist to satisfy the need for non-MPEG-4 streams when it arises. (3gpp goes beyond this to specify a few other voice formats its own version can use.) Non-standard streams will most likely restrict playability on hardware devices. Please stop turning mp4 into the new avi.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt
foxyshadis is offline  
Old 5th June 2006, 19:56   #15  |  Link
bond
Moderator
 
Join Date: Nov 2001
Posts: 9,780
for how to mux ac3 into .mp4:

open quicktime and merge your ac3 stream into a .mov file. after that rename the .mov to .mp4 and you will get a spec compliant ac3-in-mp4 file as any other method outputting ac3-in-mp4 would give you too

/cynism


edit: imho the best container for merging ac3 and avc is .mpg program stream (not .ts), as
1) there are official/widely accepted specs for storing avc and ac3 in .mpg
2) hddvd uses exactly the same (ac3 + avc in .mpg), so ac3+avc in .mpg has a big chance of hardware compatibility (imho bigger than .mp4, not to speak of .mkv)
3) ac3 should not be placed in .mp4
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free

Last edited by bond; 5th June 2006 at 19:59.
bond is offline  
Old 5th June 2006, 20:26   #16  |  Link
SeeMoreDigital
Life looks better in HDTV
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 10,026
Quote:
Originally Posted by bond
for how to mux ac3 into .mp4:

open quicktime and merge your ac3 stream into a .mov file. after that rename the .mov to .mp4 and you will get a spec compliant ac3-in-mp4 file as any other method outputting ac3-in-mp4 would give you too

/cynism
Well I have QT7 Pro installed and as far as I can see it does not support AC3 at all. Whether it be muxed into VOB or MPG, or even as an elementary stream...

All you get is QT7 saying this: -




Cheers
__________________
Still confused about anamorphic images? Then look here! | Main Encoding Interests: Hardware device playback | My Gear |
SeeMoreDigital is offline  
Old 5th June 2006, 20:36   #17  |  Link
bond
Moderator
 
Join Date: Nov 2001
Posts: 9,780
well i wasnt really serious anyways
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline  
Old 5th June 2006, 20:40   #18  |  Link
SeeMoreDigital
Life looks better in HDTV
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 10,026
Quote:
Originally Posted by bond
well i wasnt really serious anyways
I guess what we could do with now are some muxing tools that will allow us to place MPEG-4 Part10 (and Part2 - for good measure) with AC3 audio into the .MPG container...

Any takers?
__________________
Still confused about anamorphic images? Then look here! | Main Encoding Interests: Hardware device playback | My Gear |
SeeMoreDigital is offline  
Old 5th June 2006, 20:41   #19  |  Link
bond
Moderator
 
Join Date: Nov 2001
Posts: 9,780
my best bet would be ffmpeg
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline  
Old 5th June 2006, 20:52   #20  |  Link
SeeMoreDigital
Life looks better in HDTV
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 10,026
I guess muxing with FFmpeg will be a "command-line" affair?

I just tried muxing MPEG-4 with AC3 into .MPG, .TS and .PS using AVIdeMux 2.2.0 Rev 1984.... It was a no go!


Bummer!
__________________
Still confused about anamorphic images? Then look here! | Main Encoding Interests: Hardware device playback | My Gear |
SeeMoreDigital is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:57.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.