[FFmpeg-user] how to remove useless nalu from video stream

Moritz Barsnick barsnick at gmx.net
Wed Sep 26 18:29:45 EEST 2018


On Wed, Sep 26, 2018 at 22:09:08 +0800, qw wrote:
> If there is one nalu with zero size, and ffmpeg converts ts into mp4
> with the option of -codec copy, then vlc can't play video stream
> correctly. Is there any way to remove useless nalu, i.e. its size is
> 0?

I don't know my way around NALs, but there is a bitstream filter named
"h264_metadata" which has an option "delete_filler". I can only guess
that the "filler NAL units" named in the documentation correspond to
your zero-size NALs, but I may be wrong.

Moritz


More information about the ffmpeg-user mailing list