Loomes
29th March 2016, 15:35
What I have:
Several MKV with HEVC video stream and AC3. MKVInfo shows the following info "Codec ID: V_MPEGH/ISO/HEVC" on the video track.
What I want:
1.) Stripping HEVC video and audio stream from source MKV to convert audio from 6 channel 640 CBR AC3 to 2 channel VBR AAC.
2.) Building MP4 container from same HEVC video and converted audio to have better performance in my streaming environment, mostly on tablets.
What the problem is:
I usually demux with eac3to command line eac3to.exe input.mkv -demuxIt's simple, generic and avoids dealing with track numbers. Moreover, I do not have to know anything about the streams as eac3to finds out and gives file extensions to the output files automatically. Demuxing one of these MKV gives a video stream like "input - 1 - MPEGHISOHEVC, 1080p.mpeghisohevc" which seems to be a HEVC file following the ISO standard. Now I try to build an MP4 container, doing MP4Box.exe -add input.mpeghisohevc -add input.m4a -new output.mp4 which results in MP4Box giving me the error "BitStream Not Compliant", ending the building process. As a workaround, I did the stripping using MKVExtract by mkvextract tracks input.mkv 0:input.h265getting "input.h265".
MP4Box.exe -add input.h265 -add input.m4a -new output.mp4is now processed correctly, resulting in an MP4 container, MediaInfo giving correct info about the video stream (HEVC, 25.000 fps,...).
This process results in 2 things I do not like at all:
1.) By using MKVExtract for h265 demuxing, I have to know that it's a h265 stream and what track number it is. I want to use the same batch for h264 files and moreover I do not want to determine the track number of the video stream in each file.
2.) VLC player seems to have massive problems with the resulting MP4 container. It starts and plays the file but once I click to a different chapter (or any other position), VLC crashes or freezes. I tried this with several files, on 2 different computers. It never happened in 1000 MP4 files with h264 streams.
Now my questions are:
1.) Is there a way to make eac3to demux HEVC files in a way so that they can be processed by MP4Box? Can *.mpeghisohevc be converted somehow to *.h265 by command line tools? I really don't want to give up on "eac3to.exe input.mkv -demux".
2.) Are the problems with VLC, MP4Box, HEVC files known issues or do I make anything wrong here? As far as I know, VLC and MP4Box claim to deal correctly with HEVC files. So what's the big deal here?
Thanks in advance!
Several MKV with HEVC video stream and AC3. MKVInfo shows the following info "Codec ID: V_MPEGH/ISO/HEVC" on the video track.
What I want:
1.) Stripping HEVC video and audio stream from source MKV to convert audio from 6 channel 640 CBR AC3 to 2 channel VBR AAC.
2.) Building MP4 container from same HEVC video and converted audio to have better performance in my streaming environment, mostly on tablets.
What the problem is:
I usually demux with eac3to command line eac3to.exe input.mkv -demuxIt's simple, generic and avoids dealing with track numbers. Moreover, I do not have to know anything about the streams as eac3to finds out and gives file extensions to the output files automatically. Demuxing one of these MKV gives a video stream like "input - 1 - MPEGHISOHEVC, 1080p.mpeghisohevc" which seems to be a HEVC file following the ISO standard. Now I try to build an MP4 container, doing MP4Box.exe -add input.mpeghisohevc -add input.m4a -new output.mp4 which results in MP4Box giving me the error "BitStream Not Compliant", ending the building process. As a workaround, I did the stripping using MKVExtract by mkvextract tracks input.mkv 0:input.h265getting "input.h265".
MP4Box.exe -add input.h265 -add input.m4a -new output.mp4is now processed correctly, resulting in an MP4 container, MediaInfo giving correct info about the video stream (HEVC, 25.000 fps,...).
This process results in 2 things I do not like at all:
1.) By using MKVExtract for h265 demuxing, I have to know that it's a h265 stream and what track number it is. I want to use the same batch for h264 files and moreover I do not want to determine the track number of the video stream in each file.
2.) VLC player seems to have massive problems with the resulting MP4 container. It starts and plays the file but once I click to a different chapter (or any other position), VLC crashes or freezes. I tried this with several files, on 2 different computers. It never happened in 1000 MP4 files with h264 streams.
Now my questions are:
1.) Is there a way to make eac3to demux HEVC files in a way so that they can be processed by MP4Box? Can *.mpeghisohevc be converted somehow to *.h265 by command line tools? I really don't want to give up on "eac3to.exe input.mkv -demux".
2.) Are the problems with VLC, MP4Box, HEVC files known issues or do I make anything wrong here? As far as I know, VLC and MP4Box claim to deal correctly with HEVC files. So what's the big deal here?
Thanks in advance!