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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th November 2011, 00:26   #1  |  Link
schaggo
Registered User
 
schaggo's Avatar
 
Join Date: Jan 2011
Posts: 4
MP4: Reorder audio tracks

Hi community

I really seem to fail here. I don't seem to be able to find the right tools or interpret tutorials and/or how-to's on their validity concerning my case. Everything seems to be understandably AVI-centric and somehow doesn't apply to MP4.

Ok, I got myself a nice Nero Recode-encoded MP4 collection. I'm not too good on those things but I believe they are AVC and I believe AAC, the Nero default in any case. All safely tugged in in my NAS. To complement my setup I recently got myself a nice network ready Philips-TV. It does read MP4, it only decodes the first audio track though. Unfortunately all my files are encoded the wrong way round. I'd like to switch the order of the audio tracks without having to recode everything.

Is this possible? MP4Box seems not to be able to do it on the go... Any help is highly appreciated here!

Oh, PS: Windows 7, 64bit...
__________________
I'm new to this. Pet me please.
schaggo is offline   Reply With Quote
Old 15th November 2011, 01:45   #2  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Try the following command:
mp4box -add "source.mp4#1" -add "source.mp4#3" -add "source.mp4#2" "output.mp4"
sneaker_ger is offline   Reply With Quote
Old 19th November 2011, 20:13   #3  |  Link
schaggo
Registered User
 
schaggo's Avatar
 
Join Date: Jan 2011
Posts: 4
Hmm... I recognise this command, I did use it. But somehow it didn't lead to the desired results. I will try again and report back, maybe I did something wrong back then.

Thanks for your answer! Highly appreciated.
__________________
I'm new to this. Pet me please.
schaggo is offline   Reply With Quote
Old 19th November 2011, 20:31   #4  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
please do:

Code:
mp4box -info yourfile.mp4
and post the result...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 20th November 2011, 21:10   #5  |  Link
schaggo
Registered User
 
schaggo's Avatar
 
Join Date: Jan 2011
Posts: 4
My input is somehow borked, although the -info output doesn't mention anything while the -add operation fails immediately after execution. Here we go:
Code:
mp4box -info source.mp4
Truncated file - missing 8 bytes
* Movie Info *
        Timescale 90000 - Duration 02:02:00.320
        Fragmented File no - 4 track(s)
        File Brand mp42 - version 0
        Created: GMT Sun Oct 12 17:18:47 2008

File has no MPEG4 IOD/OD

Chapters:
        Chapter #1 - 00:00:00.000 - "Kapitel 1"
        Chapter #2 - 00:02:04.680 - "Kapitel 2"
        Chapter #3 - 00:06:05.240 - "Kapitel 3"
        Chapter #4 - 00:16:25.640 - "Kapitel 4"
        Chapter #5 - 00:21:47.240 - "Kapitel 5"
        Chapter #6 - 00:28:40.040 - "Kapitel 6"
        Chapter #7 - 00:36:12.440 - "Kapitel 7"
        Chapter #8 - 00:48:01.640 - "Kapitel 8"
        Chapter #9 - 00:54:32.240 - "Kapitel 9"
        Chapter #10 - 00:58:14.800 - "Kapitel 10"
        Chapter #11 - 01:05:00.400 - "Kapitel 11"
        Chapter #12 - 01:14:11.200 - "Kapitel 12"
        Chapter #13 - 01:20:22.600 - "Kapitel 13"
        Chapter #14 - 01:25:17.800 - "Kapitel 14"
        Chapter #15 - 01:32:39.960 - "Kapitel 15"
        Chapter #16 - 01:37:18.960 - "Kapitel 16"
        Chapter #17 - 01:46:47.160 - "Kapitel 17"
        Chapter #18 - 01:47:42.960 - "Kapitel 18"

Track # 1 Info - TrackID 1 - TimeScale 25000 - Duration 01:55:03.040
Media Info: Language "Undetermined" - Type "vide:avc1" - 172576 samples
Visual Track layout: x=0 y=0 width=720 height=576
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 720 x 576
        AVC Info: 1 SPS - 1 PPS - Profile Main @ Level 3
        NAL Unit length bits: 32
        Pixel Aspect Ratio 16:11 - Indicated track size 720 x 576
Self-synchronized

Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 01:55:02.997
Media Info: Language "Unknown" - Type "soun:mp4a" - 323578 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Self-synchronized

Track # 3 Info - TrackID 3 - TimeScale 48000 - Duration 01:55:02.997
Media Info: Language "English" - Type "soun:mp4a" - 323578 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Self-synchronized

Track # 4 Info - TrackID 4 - TimeScale 90000 - Duration 02:02:00.320
Media Info: Language "Unknown" - Type "subp:mp4s" - 906 samples
MPEG-4 Config: NeroDigital Subpicture Stream - ObjectTypeIndication 0xe0
Self-synchronized
And here is the command line for recomposing the file:
Code:
mp4box -add source.mp4#1 -add source.mp4#3 -add source.mp4#2 -add source.mp4#4 output.mp4
Unknown input file type
Error importing source.mp4#1: Corrupted Data in file/stream
__________________
I'm new to this. Pet me please.
schaggo is offline   Reply With Quote
Reply

Tags
audio, mp4, reorder, switch, track


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 21:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.