Menu

#611 muxing to mp4 with mp3 audio may have bad audio type

General
pending
nobody
None
5
2017-03-25
2016-02-21
gits
No

Hi,

muxing to mp4 with mp3 audio may have bad audio type, .mp3 instead of mp4a.6b, this may broke video playing on some tv (LG at least).

megui tasks :

"C:\Program Files\megui\tools\mkvmerge\mkvmerge.exe" -o "S:\Temp\ykon3diw.gkr\2x01. Série Noire.mkv" "D:\Temp\2x01. Série Noire.avi" "--compression" "0:none" --ui-language en
"C:\Program Files\megui\tools\mkvmerge\mkvextract.exe" tracks "S:\Temp\ykon3diw.gkr\2x01. Série Noire.mkv" --ui-language en 1:"S:\Temp\ykon3diw.gkr\2x01. Série Noire - [0] French.mp3"
megui stuffs (index, avs)
"C:\Program Files\megui\tools\x264\x264.exe" --level 4.1 --keyint 240 --bframes 6 --b-adapt 2 --vbv-bufsize 78125 --vbv-maxrate 62500 --me umh --direct auto --output "S:\Temp\ykon3diw.gkr\2x01.264" "S:\Temp\ykon3diw.gkr\2x01. Série Noire.mkv.avs"
"C:\Program Files\megui\tools\mp4box\mp4box.exe" -add "S:\Temp\ykon3diw.gkr\2x01.264#trackID=1:fps=23.976:name=" -add "S:\Temp\ykon3diw.gkr\2x01. Série Noire - [0] French.mp3#trackID=1:lang=fra:name=" -tmp "S:\Temp" -new "S:\Temp\2x01. Série Noire.mp4"

$ mp4box -info '2x01. Série Noire.mp4'
* Movie Info *
Timescale 600 - Duration 00:43:35.666
2 track(s)
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 1
Created: GMT Sun Feb 21 14:37:36 2016
Modified: GMT Sun Feb 21 14:37:36 2016

File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: ISO Reserved Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD

Track # 1 Info - TrackID 1 - TimeScale 24000 - Media Duration 00:43:35.487
Track has 1 edit lists: track duration is 00:43:35.486
Media Info: Language "und (und)" - Type "vide:avc1" - 62709 samples
Visual Track layout: x=0 y=0 width=720 height=400
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 720 x 400
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4.1
NAL Unit length bits: 32
Chroma format 1 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: FE625B2D7FA7CC98F104C964FE28CBE5CA9BEB7E
PPS#1 hash: 6648DAA985D842149E548D6CDE2C2151B02BF03F
Self-synchronized
RFC6381 Codec Parameters: avc1.640029
Average GOP length: 119 samples

Track # 2 Info - TrackID 2 - TimeScale 44100 - Media Duration 00:43:35.666
Media Info: Language "fra (fra)" - Type "soun:.mp3" - 100131 samples
MPEG 1/2 Audio stream - Sample Rate 44100 - 2 channel(s) 16 bps
RFC6381 Codec Parameters: .mp3
All samples are sync

adding -mpeg4 to mp4box solve this :

"C:\Program Files\megui\tools\mp4box\mp4box.exe" -mpeg4 -add "S:\Temp\ykon3diw.gkr\2x01.264#trackID=1:fps=23.976:name=" -add "S:\Temp\ykon3diw.gkr\2x01. Série Noire - [0] French.mp3#trackID=1:lang=fra:name=" -tmp "S:\Temp" -new "S:\Temp\2x01. Série Noire_.mp4"

mp4box -info '2x01. Série Noire_.mp4'
* Movie Info *
Timescale 600 - Duration 00:43:35.666
2 track(s)
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 1
Created: GMT Sun Feb 21 17:05:35 2016
Modified: GMT Sun Feb 21 17:05:35 2016

File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x7f)
Audio PL: No audio capability required (0xff)
No streams included in root OD

Track # 1 Info - TrackID 1 - TimeScale 24000 - Media Duration 00:43:35.487
Track has 1 edit lists: track duration is 00:43:35.486
Media Info: Language "und (und)" - Type "vide:avc1" - 62709 samples
Visual Track layout: x=0 y=0 width=720 height=400
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 720 x 400
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4.1
NAL Unit length bits: 32
Chroma format 1 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: FE625B2D7FA7CC98F104C964FE28CBE5CA9BEB7E
PPS#1 hash: 6648DAA985D842149E548D6CDE2C2151B02BF03F
Self-synchronized
RFC6381 Codec Parameters: avc1.640029
Average GOP length: 119 samples

Track # 2 Info - TrackID 2 - TimeScale 44100 - Media Duration 00:43:35.666
Media Info: Language "fra (fra)" - Type "soun:mp4a" - 100131 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x6b
MPEG-1 Audio - 2 Channel(s) - SampleRate 44100 - Layer 3
Synchronized on stream 1
RFC6381 Codec Parameters: mp4a.6b
All samples are sync

Discussion

  • Zathor

    Zathor - 2016-09-04
    • status: open --> pending
     
  • Zathor

    Zathor - 2016-09-04

    Thank you very much for the ticket. However I am not sure if changing that will break anything as other devices may need the mp3 codec tag. Any thoughts on that?

     
  • Zathor

    Zathor - 2017-03-25

    Ticket moved from /p/megui/bugs/828/

     

Log in to post a comment.