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

NALU length exceeds stream size #1386

Closed
avivais opened this issue Apr 17, 2024 · 2 comments
Closed

NALU length exceeds stream size #1386

avivais opened this issue Apr 17, 2024 · 2 comments

Comments

@avivais
Copy link

avivais commented Apr 17, 2024

System info

Operating System: Alpine Linux v3.19
Shaka Packager Version: v2.6.1-634af65-release

Issue and steps to reproduce the problem

Packager Command:

'/usr/local/bin/packager' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb6579caecad242095970.mp4,stream=audio,segment_template=$Number$.aac,playlist_name=main_audio.m3u8' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b725/video.mp4,stream=video,segment_template=661fb678c5fee7e4ea05b725_$Number$.ts,playlist_name=661fb678c5fee7e4ea05b725.m3u8' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b726/video.mp4,stream=video,segment_template=661fb678c5fee7e4ea05b726_$Number$.ts,playlist_name=661fb678c5fee7e4ea05b726.m3u8' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b727/video.mp4,stream=video,segment_template=661fb678c5fee7e4ea05b727_$Number$.ts,playlist_name=661fb678c5fee7e4ea05b727.m3u8' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b728/video.mp4,stream=video,segment_template=661fb678c5fee7e4ea05b728_$Number$.ts,playlist_name=661fb678c5fee7e4ea05b728.m3u8' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2623/video.mp4,stream=video,segment_template=661fb68b2af00407360c2623_$Number$.ts,playlist_name=661fb68b2af00407360c2623.m3u8' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2624/video.mp4,stream=video,segment_template=661fb68b2af00407360c2624_$Number$.ts,playlist_name=661fb68b2af00407360c2624.m3u8' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2625/video.mp4,stream=video,segment_template=661fb68b2af00407360c2625_$Number$.ts,playlist_name=661fb68b2af00407360c2625.m3u8' 'in=/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2626/video.mp4,stream=video,segment_template=661fb68b2af00407360c2626_$Number$.ts,playlist_name=661fb68b2af00407360c2626.m3u8' '--segment_duration=3' '--hls_master_playlist_output=video.m3u8'

Process exits with exit code 2 after the following errors:

[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb6579caecad242095970.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb6579caecad242095970.mp4'.
[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b725/video.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b725/video.mp4'.
[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b726/video.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b726/video.mp4'.
[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b727/video.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b727/video.mp4'.
[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b728/video.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b728/video.mp4'.
[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2623/video.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2623/video.mp4'.
[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2624/video.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2624/video.mp4'.
[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2625/video.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2625/video.mp4'.
[0417/114802:INFO:demuxer.cc(89)] Demuxer::Run() on file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2626/video.mp4'.
[0417/114802:INFO:demuxer.cc(155)] Initialize Demuxer for file '/shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb68b2af00407360c2626/video.mp4'.
[0417/114802:ERROR:nalu_reader.cc(271)] NALU length exceeds stream size: 3732 < 3942
[0417/114802:ERROR:nal_unit_to_byte_stream_converter.cc(392)] Stopped reading before end of stream.
[0417/114802:ERROR:pes_packet_generator.cc(112)] Failed to convert sample to byte stream.
[0417/114802:ERROR:demuxer.cc(356)] Failed to process sample 256 11 (MUXER_FAILURE): Failed to add sample to PesPacketGenerator.
[0417/114802:ERROR:mp4_media_parser.cc(889)] Failed to process the sample.
[0417/114805:ERROR:packager_main.cc(554)] Packaging Error: 8 (PARSER_FAILURE): Cannot parse media file /shared_videos/6580085582bfa7d6a90287b4/videos/661fb6579caecad242095970/661fb678c5fee7e4ea05b728/video.mp4
@joeyparrish
Copy link
Member

Since it's failing to parse the inputs, can you share those inputs?

@cosmin cosmin added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Apr 25, 2024
Copy link

github-actions bot commented May 2, 2024

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.

@github-actions github-actions bot closed this as completed May 2, 2024
@github-actions github-actions bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label May 2, 2024
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

3 participants