Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp4dash cannot generate mpeg-dash output if i use more than 1 H.265 (hevc) files. #988

Open
munkhbayar opened this issue Dec 16, 2024 · 0 comments

Comments

@munkhbayar
Copy link

munkhbayar commented Dec 16, 2024

I have H.264 2 videos (720p-264.mp4, 480p-264.mp4) and H.265 2 videos (720p-265.mp4, 480p-265.mp4).
mp4dash cannot generate mpeg-dash output if i use more than 1 H.265 (hevc) files.

Following commands are working fine.
mp4dash 720p-264.mp4 480p-264.mp4 720p-265.mp4
mp4dash 720p-264.mp4 480p-264.mp4 480p-265.mp4

But following command won't work and it shows "ERROR: video tracks are not aligned" message.
mp4dash 720p-265.mp4 480p-265.mp4

I printed keyframes and timestamps using following command and results are the same.
ffprobe -select_streams v -show_frames -show_entries frame=best_effort_timestamp_time,key_frame -of csv 720p-265.mp4 | grep "frame,1" > 720.txt
ffprobe -select_streams v -show_frames -show_entries frame=best_effort_timestamp_time,key_frame -of csv 480p-265.mp4 | grep "frame,1" > 480.txt

frame,1,0.200000
frame,1,6.066667
frame,1,12.066667
frame,1,18.066667
frame,1,24.066667
frame,1,30.066667
frame,1,36.066667
frame,1,42.066667
frame,1,48.066667
frame,1,54.066667
frame,1,60.066667
frame,1,66.066667
frame,1,72.066667
frame,1,78.066667
frame,1,84.066667
frame,1,90.066667
frame,1,96.066667
frame,1,102.066667
frame,1,108.066667
frame,1,114.066667
frame,1,120.066667
frame,1,126.066667
frame,1,132.066667
frame,1,138.066667
frame,1,144.066667
frame,1,150.066667
frame,1,156.066667
frame,1,162.066667
frame,1,168.066667
frame,1,174.066667
frame,1,180.066667
frame,1,186.066667
frame,1,192.066667
frame,1,198.066667

How to reproduce

  1. Convert any very short video to h265 files with different resolution (fixed gop).
  2. Then create fragmented mp4 using mp4frament
  3. Try to generate mpeg-dash files using mp4dash

Bento4 version: 1.6.0-641
mp4dash version: Version 2.0.0 r641

I installed Bento4 using brew on Mac Mini M4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant