-
Notifications
You must be signed in to change notification settings - Fork 491
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
Video tracks are not aligned (different frame rates) #263
Comments
@sasquatch74 I'm facing the same issue. Did you find a solution/workaround? |
To be honest, this isn't a scenario I have tested (different frame rates). So it may very well be an issue with the Bento4 packager. I will try this use case and followup. |
@barbibulle thanks :) Up until now, we had all our videos up to 1080p, all being 30fps and a fixed 60 frames keyframe interval, but now we're trying to add 1080p@60 and 1440p@60 with a 120 frame keyframe interval to the mix, but with them added, mp4dash complains about the alignment. I tried forcing mp4fragment to a 2s segment size for both, but with the same result. As far as I understand, both align at 2s, despite the different framerate. |
@maetthu We couldn't make Bento4 packager work when source mp4 files had different frame rates. We used a different packager (the one from Unified Streaming - this is not free) to get it to work. |
@barbibulle Did you have a chance to look into this? No worries if not, it's just that we will start with our encoding project soon and it would be nice to know if multiple framerates is something you'd consider worth supporting in the Bento4 packager. |
@maetthu Sorry for not having looked at this earlier. Would it be possible for send me a link to some sample files that I could use to easily replicate the issue on my side? This would save me some time. Thanks. |
@barbibulle sure! thanks for looking at it 🙂 These are streaming versions I transcoded from 1080p@60fps version of the Big Buck Bunny video:
Steps to reproduce:
|
@barbibulle did you have a chance looking into it? |
I have fixed this on master (still haven't pushed a new set of pre-compiled binaries). |
@barbibulle Thanks for the fix on this. I'm however facing this issue when running |
Same issue here |
Same problem here, the last Linux release returns the same error. |
Facing the same issue. can someone help me? not sure how and what to fix ffmpeg -loglevel error -i source.mp4 ffmpeg -loglevel error -i source.mp4 ERROR: video tracks are not aligned ("File 2#1" differs from File 1#1) debug output of mp4dash:
|
Hi @baloda. I solved the problem with a fixed fps (24FPS) and segments of two seconds (gop = 2 * 24 = 48). My FFMPEG parameters are:
In mp4fragment, I also used the parameter |
Issue should be due to GOP Misalignment What these do? |
Any solve ? |
I am facing the following issue:
mp4fragment.exe --fragment-duration 10000 inputfile.mp4 outputfile.mp4
WARNING: video sample count mismatch between "File 5#1" and "File 4#1"
ERROR: video tracks are not aligned ("File 5#1" differs from File 1#1)
I understand that mp4dash requires the key-frames to align, but when you have files with different frame rates, the key frames do not align by frame count but they do align if you consider the time in seconds or milliseconds.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: