-
Notifications
You must be signed in to change notification settings - Fork 113
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
Broken header for mp4 outputs causes playback issues #660
Comments
… boxdumper)、"Visual Track layout"(mp4box -info)のwidthが0になってしまう問題を回避。 ( #660 )
I've checked through the source code of libavformat mp4 muxer, and found out that it seems like the mp4 muxer calculates width for tkhd (Track Header Box) as 0 when SAR (sample aspect ratio) is "undefined" (unset). Although I do think "undefined" SAR itself should have no problem, I made a change to set SAR = "1:1" for muxer when SAR is "undefined", in order to avoid this problem. Below is the test build, would you please have a test if it can avoid the problem? |
I have tried the linked version, but the result is still
.... But when I extend the command line by
|
Nevertheless a bit strange, that even without setting SAR to |
Sorry, I've made a wrong fix in the previous version. Would you mind trying the following build? It should act as the same as --sar 1:1. |
No problem. Sure ... and yeah, works great. 😅👍
|
Thanks for the fix. 🙂 |
Hello rigaya,
when using the
mp4
output file extension, the header is broken.Here are two metadata readouts made by MP4Box, one from an encode made with AV1 codec, the other with H265. Please check the line in the middle starting with
Visual Track layout:
where metadata states a dimension ofwidth=0 height=1080
as well asIndicated track size 0 x 1080
for H265 codec.This causes playback issues with Browsers, TVs, etc.
Side note:
NVEncC v7.77
was also affected.--avhw
leads to the same issue.AV1
Command Line:
[..]\NVEncC64.exe --avsdll [..]\AviSynth.dll --qvbr 28 --codec av1 --output-depth 10 --colormatrix bt709 --colorprim bt709 --transfer bt709 -i XXX_Test.avs -o XXX_Test.mp4
H265
Command Line:
[..]\NVEncC64.exe --avsdll [..]\AviSynth.dll --qvbr 28 --codec h265 --colormatrix bt709 --colorprim bt709 --transfer bt709 -i XXX_Test.avs -o XXX_Test.mp4
The text was updated successfully, but these errors were encountered: