Answer the question
In order to leave comments, you need to log in
FFmpeg how to set PES packet length to zero?
There is a multicast stream inside mpegts h264, the task is to overtake it in hls without changes.
/usr/bin/ffmpeg -i udp://239.0.110.16:1234 -map 0:0 -map 0:1 -vcodec copy -acodec copy -copyts -async 100 -ignore_unknown -loglevel warning -f hls -hls_list_size 5 -hls_time 5 -hls_flags delete_segments /var/www/html/ffmpeg/stream.m3u8
[mpegts @ 0x56397b59a500] PES packet size mismatch
mpegtsAlwaysSendZeroPacketLen – If you don't want video frames to be wrapped in multiple TS packets for very high bitrate streams, set to true to set packetized elementary stream (PES) packet length to 0 (zero)
Answer the question
In order to leave comments, you need to log in
A fix was proposed in https://ffmpeg.org/pipermail/ffmpeg-devel/2014-Apr... in 2014.
Judging by https://github.com/FFmpeg/FFmpeg/blob/master/libav... - the fix is accepted, but in a modified form, another codec is checked + the omit_video_pes_length flag. https://ffmpeg.org/ffmpeg-formats.html says that the flag is enabled by default
.
Therefore, it makes sense to check:
1) the sources of the used version of ffmpeg - do they have this piece?
2) Does setting the flag explicitly help?
3) manually building the latest ffmpeg version
4) manually building with the patch from the first link
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question