Closed Eeel-12 closed 2 years ago
could you upload your test file somewhere ?
@jeanlf thank you, the test.mp4 created with Handbrake https://www.mediafire.com/file/03f7gktnu7pjy0d/test.tar.gz/file
note that Handbrake produce .m4v file, they said it can be simply renamed in .mp4, thats what i did.
I've also tested commands below with ffmpeg:
ffmpeg -y -i test.mp4 -c:v libx264 -x264opts 'keyint=48:min-keyint=48:no-scenecut' -r 24 -b:v 2500k -maxrate 2500k -bufsize 5000k -movflags faststart -profile:v main -preset slower -an "video.mp4"
ffmpeg -y -i test.mp4 -map 0:1 -vn -c:a copy audio1.m4a
ffmpeg -y -i test.mp4 -map 0:2 -vn -c:a copy audio2.m4a
MP4Box -srt 4 test.mp4
MP4Box -srt 5 test.mp4
But it produce the same error messages on the second subtitle track added with MP4Box.
@jeanlf updated file link.
Indeed there was a potential injection of empty text segments at the wrong place resulting in all these timing warnings.
Could you try with latest git?
Hello @jeanlf and thank you. It works fine with the git version.
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
I'm trying to convert a .mp4 file to play with dash.js with video, two audio track and two or more subtitle tracks. resulted files and mpd play fine with one subtitle only, as soon as i had a second subtitle track, it is unsynced.
OS is Linux Slackware 15.0
My MP4 source test.mp4. MP4Box - MP4Box -info test.mp4 :
Extracting subtitles in srt with MP4Box:
MP4Box -srt 4 test.mp4 MP4Box -srt 5 test.mp4
At this point if i add only one subtitle, the finale mpd file play fine and subtitle are in sync.
Adding WebVTT to test.mp4:
Create mpd and files:
MP4Box don't output the messages below with one subtitle track
Can't figure out what i'm doing wrong, is the source file not properly encoded or i'm missing some command argument ?