VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Hi,

    I have a problem multiplexing some files.
    This is my command line :
    Code:
    mkvmerge -v -o test.mkv --default-language jpn --aac-is-sbr 0 -S -D audio.aac --default-language fre -D -A -s sub.ass --default-language jpn -S -A -d video.h264
    I have alo tried :
    Code:
    mkvmerge -v -o test.mkv --language 0:jpn --aac-is-sbr 0 -S -D audio.aac --language 0:fre -D -A -s sub.ass --language 0:jpn -S -A -d video.h264
    When I'm running this command, I obtain the following error message :
    Code:
    mkvmerge v8.8.0 ('Wind at my back') 64bit
    Error: Invalid track ID or language code in '-s sub.ass'.
    If I put the video input before the audio input in the command line, I obtain the following error :
    Code:
    mkvmerge v8.8.0 ('Wind at my back') 64bit
    Error: Invalid track ID or language code in '-d video.h264'.
    However, I have set the language for all the files in the command line I want in the mkv (or at least I think it is) and concerning the track ID, here is the result of "mkvmerge -i" for each file :

    audio.acc :
    Code:
    File 'audio.aac': container: AAC
    Track ID 0: audio (AAC)
    video.h264 :
    Code:
    File 'video.h264': container: AVC/h.264
    Track ID 0: video (MPEG-4p10/AVC/h.264)
    sub.ass :
    Code:
    File 'sub.ass': container: SSA/ASS subtitles
    Track ID 0: subtitles (SubStationAlpha)

    Also if I'm using the following command line :
    Code:
    mkvmerge -v -o test.mkv --aac-is-sbr 0 audio.aac sub.ass video.h264
    Here is the output :
    Code:
    mkvmerge v8.8.0 ('Wind at my back') 64bit
    mpeg4::p10: SPS ID 0002 changed; checksum old 819021f new e54031e
    'audio.aac': Using the demultiplexer for the format 'AAC'.
    'sub.ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
    mpeg4::p10: SPS ID 0002 changed; checksum old 819021f new e54031e
    'video.h264': Using the demultiplexer for the format 'AVC/h.264'.
    'audio.aac' track 0: Using the output module for the format 'AAC'.
    'sub.ass' track 0: Using the output module for the format 'text subtitles'.
    'video.h264' track 0: Using the output module for the format 'AVC/h.264 (unframed)'.
    The file 'test.mkv' has been opened for writing.
    mpeg4::p10: SPS ID 0002 changed; checksum old 819021f new e54031e
    mpeg4::p10: PPS ID 0001 changed; checksum old 7c6bf32d new b125d121
    mpeg4::p10: PPS ID 0001 changed; checksum old b125d121 new 2ac1eb9c
    mpeg4::p10: PPS ID 0001 changed; checksum old 2ac1eb9c new c1310d3a
    mpeg4::p10: PPS ID 0001 changed; checksum old c1310d3a new 67725e6b
    mpeg4::p10: PPS ID 0001 changed; checksum old 67725e6b new 7fcabf95
    mpeg4::p10: PPS ID 0001 changed; checksum old 7fcabf95 new 26d6e67a
    mpeg4::p10: PPS ID 0001 changed; checksum old 26d6e67a new 443bed6e
    mpeg4::p10: PPS ID 0001 changed; checksum old 443bed6e new 9c72473b
    mpeg4::p10: PPS ID 0001 changed; checksum old 9c72473b new a79b687d
    mpeg4::p10: PPS ID 0001 changed; checksum old a79b687d new 5aecc7eb
    mpeg4::p10: PPS ID 0001 changed; checksum old 5aecc7eb new c9a47fa7
    mpeg4::p10: PPS ID 0001 changed; checksum old c9a47fa7 new 4e4f7e59
    mpeg4::p10: PPS ID 0001 changed; checksum old 4e4f7e59 new e7f58c42
    mpeg4::p10: PPS ID 0001 changed; checksum old e7f58c42 new 685196df
    mpeg4::p10: SPS ID 0002 changed; checksum old e54031e new 919025f
    mpeg4::p10: PPS ID 0001 changed; checksum old 685196df new 7a7ec845
    mpeg4::p10: SPS ID 0004 changed; checksum old fad03b3 new 90cb0bcf
    mpeg4::p10: PPS ID 0001 changed; checksum old 7a7ec845 new 2e599f11
    mpeg4::p10: SPS ID 0001 changed; checksum old 81901ff new 155d03de
    mpeg4::p10: SPS ID 0001 changed; checksum old 155d03de new c880272
    mpeg4::p10: PPS ID 0001 changed; checksum old 2e599f11 new 826301
    mpeg4::p10: SPS ID 0002 changed; checksum old 919025f new b99029f
    mpeg4::p10: PPS ID 0001 changed; checksum old 826301 new fdb97cfc
    mpeg4::p10: SPS ID 0003 changed; checksum old a8c0266 new bce59d01
    mpeg4::p10: SPS ID 0003 changed; checksum old bce59d01 new 67101a7
    mpeg4::p10: SPS ID 0001 changed; checksum old c880272 new 79901df
    mpeg4::p10: SPS ID 0000 changed; checksum old 8b530aa2 new 1ef805be
    mpeg4::p10: PPS ID 0001 changed; checksum old fdb97cfc new 2f4f8e63
    mpeg4::p10: PPS ID 0001 changed; checksum old 2f4f8e63 new 9deed882
    mpeg4::p10: PPS ID 0001 changed; checksum old 9deed882 new 892fc86
    mpeg4::p10: SPS ID 0002 changed; checksum old b99029f new c1902bf
    mpeg4::p10: SPS ID 0002 changed; checksum old c1902bf new bb902bf
    mpeg4::p10: SPS ID 0004 changed; checksum old 90cb0bcf new 117403ff
    Progress: 100%
    The cue entries (the index) are being written...
    Muxing took 4 seconds.
    But here is the info from mediainfo :
    Code:
    General
    Count                                    : 314
    Count of stream of this kind             : 1
    Kind of stream                           : General
    Kind of stream                           : General
    Stream identifier                        : 0
    Unique ID                                : 80763409173721138722217731374343659269
    Unique ID                                : 80763409173721138722217731374343659269 (0x3CC277811CBD775B379276599B7E1F05)
    Count of video streams                   : 1
    Count of audio streams                   : 1
    Count of text streams                    : 1
    Video_Format_List                        : AVC
    Video_Format_WithHint_List               : AVC
    Codecs Video                             : AVC
    Video_Language_List                      : English
    Audio_Format_List                        : AAC
    Audio_Format_WithHint_List               : AAC
    Audio codecs                             : AAC LC-SBR
    Audio_Language_List                      : English
    Text_Format_List                         : ASS
    Text_Format_WithHint_List                : ASS
    Text codecs                              : ASS
    Text_Language_List                       : English
    Complete name                            : test.mkv
    File name                                : test
    File extension                           : mkv
    Format                                   : Matroska
    Format                                   : Matroska
    Format/Url                               : http://packs.matroska.org/
    Format/Extensions usually used           : mkv mk3d mka mks
    Commercial name                          : Matroska
    Format version                           : Version 4 / Version 2
    Codec                                    : Matroska
    Codec                                    : Matroska
    Codec/Url                                : http://packs.matroska.org/
    Codec/Extensions usually used            : mkv mk3d mka mks
    File size                                : 3644068
    File size                                : 3.48 MiB
    File size                                : 3 MiB
    File size                                : 3.5 MiB
    File size                                : 3.48 MiB
    File size                                : 3.475 MiB
    Duration                                 : 304000
    Duration                                 : 5mn 4s
    Duration                                 : 5mn 4s 0ms
    Duration                                 : 5mn 4s
    Duration                                 : 00:05:04.000
    Duration                                 : 00:05:04.000
    Overall bit rate                         : 95897
    Overall bit rate                         : 95.9 Kbps
    Encoded date                             : UTC 2016-01-27 08:15:20
    File last modification date              : UTC 2016-01-27 08:15:24
    File last modification date (local)      : 2016-01-27 09:15:24
    Writing application                      : mkvmerge v8.8.0 ('Wind at my back') 64bit
    Writing application                      : mkvmerge v8.8.0 ('Wind at my back') 64bit
    Writing library                          : libebml v1.3.3 + libmatroska v1.4.4
    Writing library                          : libebml v1.3.3 + libmatroska v1.4.4
    DURATION                                 : 00:00:00.000000000
    NUMBER_OF_FRAMES                         : 0
    NUMBER_OF_BYTES                          : 0
    _STATISTICS_WRITING_APP                  : mkvmerge v8.8.0 ('Wind at my back') 64bit
    _STATISTICS_WRITING_DATE_UTC             : 2016-01-27 08:15:20
    _STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    
    Video
    Count                                    : 311
    Count of stream of this kind             : 1
    Kind of stream                           : Video
    Kind of stream                           : Video
    Stream identifier                        : 0
    StreamOrder                              : 2
    ID                                       : 3
    ID                                       : 3
    Unique ID                                : 1075422325734880261
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format/Url                               : http://developers.videolan.org/x264.html
    Commercial name                          : AVC
    Internet media type                      : video/H264
    Codec ID                                 : V_MPEG4/ISO/AVC
    Codec ID/Url                             : http://ffdshow-tryout.sourceforge.net/
    Codec                                    : V_MPEG4/ISO/AVC
    Codec                                    : AVC
    Codec/Family                             : AVC
    Codec/Info                               : Advanced Video Codec
    Codec/Url                                : http://ffdshow-tryout.sourceforge.net/
    Width                                    : 16
    Width                                    : 16 pixels
    Height                                   : 16
    Height                                   : 16 pixels
    Pixel aspect ratio                       : 1.000
    Display aspect ratio                     : 1.000
    Display aspect ratio                     : 1.000
    Frame rate mode                          : CFR
    Frame rate mode                          : Constant
    Default                                  : Yes
    Default                                  : Yes
    Forced                                   : No
    Forced                                   : No
    
    Audio
    Count                                    : 254
    Count of stream of this kind             : 1
    Kind of stream                           : Audio
    Kind of stream                           : Audio
    Stream identifier                        : 0
    StreamOrder                              : 0
    ID                                       : 1
    ID                                       : 1
    Unique ID                                : 8418048425911250521
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Commercial name                          : AAC
    Format profile                           : HE-AAC / LC
    Format settings, SBR                     : Yes (Implicit)
    Format settings, SBR                     : Yes (Implicit)
    Codec ID                                 : A_AAC
    Codec                                    : AAC LC-SBR
    Codec                                    : AAC LC-SBR
    Codec/Family                             : AAC
    Duration                                 : 304000
    Duration                                 : 5mn 4s
    Duration                                 : 5mn 4s 0ms
    Duration                                 : 5mn 4s
    Duration                                 : 00:05:04.000
    Duration                                 : 00:05:04.000
    Channel(s)                               : 2
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Channel positions                        : 2/0/0
    ChannelLayout                            : L R
    Sampling rate                            : 96000 / 48000
    Sampling rate                            : 96.0 KHz / 48.0 KHz
    Samples count                            : 29184000
    Compression mode                         : Lossy
    Compression mode                         : Lossy
    Delay                                    : 0
    Delay                                    : 00:00:00.000
    Delay, origin                            : Container
    Delay, origin                            : Container
    Default                                  : Yes
    Default                                  : Yes
    Forced                                   : No
    Forced                                   : No
    
    Text
    Count                                    : 218
    Count of stream of this kind             : 1
    Kind of stream                           : Text
    Kind of stream                           : Text
    Stream identifier                        : 0
    StreamOrder                              : 1
    ID                                       : 2
    ID                                       : 2
    Unique ID                                : 12022601475271509631
    Format                                   : ASS
    Format/Url                               : http://ffdshow.sourceforge.net/tikiwiki/tiki-index.php?page=Getting+ffdshow
    Commercial name                          : ASS
    Codec ID                                 : S_TEXT/ASS
    Codec ID/Info                            : Advanced Sub Station Alpha
    Codec                                    : S_TEXT/ASS
    Codec                                    : ASS
    Codec/Info                               : Advanced Sub Station Alpha
    Compression mode                         : Lossless
    Compression mode                         : Lossless
    Default                                  : Yes
    Default                                  : Yes
    Forced                                   : No
    Forced                                   : No

    And when I try to read the file, I only have the audio with a black screen, no subtitles.

    Any help is welcomed
    Last edited by Pietre; 27th Jan 2016 at 06:54.
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    How do you test play the play?

    And just try use the mkvmergegui and add all streams just to see if it makes a different mux than your command line.
    Quote Quote  
  3. I'm trying the multiplexing on a ubuntu server and playing the video on windows, VLC : only the audio is working and MPC-HC (CCCP build) : nothing is working but it says that the file is 5:04 long.

    Using mkvmergegui is giving me the same output than the last command line :
    Code:
    mkvmerge -v -o test.mkv --aac-is-sbr 0 audio.aac sub.ass video.h264
    which is a file with only some audio.
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    If you just multiplex the video and audio does it work any better then?
    Quote Quote  
  5. This command line :
    HTML Code:
    mkvmerge -v -o test.mkv --language 0:jpn --aac-is-sbr 0 -S -D audio.aac --language 0:jpn -S -A -d video.h264
    is giving me the same error :
    Code:
    Error: Invalid track ID or language code in '-d video.h264'.
    and
    Code:
    mkvmerge -v -o test.mkv --aac-is-sbr 0 audio.aac video.h264
    Is also giving me a file without any video.

    I've tried to multiplex only the video :
    Code:
    mkvmerge -v -o test.mkv video.h264
    the output is only 5.8kB so no video in the file.
    Quote Quote  
  6. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    How did you make the h264 video? Corrupt? Playable?
    Quote Quote  
  7. That's it, it's not playable :/ I didn't check this, assuming my extraction was good ^^"

    The video is extracted from a flv recorded stream, which is playable, using the following command :
    Code:
    ffmpeg -i "./video.flv" -vcodec copy -an "./video.h264"
    The info of the flv video are as follows :
    Code:
    mkvmerge -i video.flv 
    File 'video.flv': container: Flash Video
    Track ID 0: video (AVC/h.264)
    Track ID 1: audio (AAC)
    That's why I assumed I should use the extension h264. However, I've just used FLVExtractCL :
    Code:
    FLVExtractCL -v -a -t -o video.flv
    and the output was a "video.264" file for the video.

    Nevertheless, using the following comand is not working :
    Code:
    mkvmerge -v -o test.mkv --aac-is-sbr 0 -S -D video.aac -D -A -s test.ass -S -A -d video.264
    I have to do :
    Code:
    mkvmerge -v -o test.mkv --aac-is-sbr 0 video.aac test.ass video.264
    I will say that default settings are better than my parameters ^^

    I will change the topic as solved. Thanks for your help !
    Quote Quote  
  8. I know it's [solved] now but in the feature you should read the error messages and documentation.
    The parameters "-s" and "-d" expect track IDs but you didn't supply any.
    Quote Quote  
  9. Hi sneaker,

    I have read the error messages and the documentation.
    But I did not understand it well, now I have figure it out with your comment.
    Even google did not help me when I searched for "specify track ID mkvmerge"...
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!