rpicamsrc: Buffer has no PTS

Jan Schmidt jan at widgetgrove.com.au
Wed Jan 11 08:07:05 UTC 2023


Hi,

On 11/1/23 18:47, Abu Abdullah wrote:
> On Wed, Jan 11, 2023 at 10:59 AM Jan Schmidt <jan at widgetgrove.com.au> wrote:
>> Hi,
>>
>> Remove the 'do-timestamp=true' and 'inline-headers=true' from rpicamsrc
>>
>>    It will apply timestamps automatically, so doesn't need
>> `do-timestamp=true`
>>
>> Sending `inline-headers=true` adds the packets with no timestamps, and
>> h264parse isn't removing them - but you don't need inline-headers when
>> muxing to mp4.
>>
>> This works fine:
>>
>> gst-launch-1.0 -e rpicamsrc preview=false keyframe-interval=30 !
>> video/x-h264,width=640,height=480,framerate=30/1,profile=high !
>> h264parse ! mp4mux ! filesink location=/tmp/tmp.mp4
>>
>> Cheers,
>>
>> Jan.
> inline-headers is needed for the hls ts segments not for the mp4mux .
> for some reason, hls is not working without it and the browser console
> is displaying errors everywhere. not sure if something can be done
> from the other side (hls.js module)

In that case, use `h264parse config-interval=-1` to re-send the SPS/PPS 
with keyframes

Cheers,

Jan.



More information about the gstreamer-devel mailing list