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

Encode, decode and display a Transport Stream drops buffers #10

Open
GFallasRR opened this issue Oct 21, 2020 · 0 comments
Open

Encode, decode and display a Transport Stream drops buffers #10

GFallasRR opened this issue Oct 21, 2020 · 0 comments

Comments

@GFallasRR
Copy link

Hi Crypto team,

This issue may not be related to GstCryto directly but it is important to keep track of it, there are not similar pipelines on the examples.

This case works, output video works as expected.

Pipeline used as reference:

gst-launch-1.0 videotestsrc is-live=true pattern=ball ! x264enc ! h264parse ! mpegtsmux ! tsparse ! queue ! rndbuffersize min=4096 max=4096 ! crypto mode=enc ! identity silent=false ! crypto mode=dec ! tsparse ! filesink location=udpdec.ts

Now, trying to display the video instead of saving it:

gst-launch-1.0 videotestsrc is-live=true pattern=ball ! x264enc ! h264parse ! mpegtsmux ! tsparse ! queue ! rndbuffersize min=4096 max=4096 ! crypto mode=enc ! identity silent=false ! crypto mode=dec ! tsparse ! tsdemux ! queue ! h264parse ! avdec_h264 ! queue ! xvimagesink sync=false

The pipeline runs but tsdemux drops the buffer due to issues on timestamps, output from GST_DEBUG=3:

...
0:00:04.571309862 10527 0x1e23a80 WARN mpegtspacketizer mpegtspacketizer.c:2299:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
0:00:04.571328588 10527 0x1e23a80 WARN mpegtspacketizer mpegtspacketizer.c:2299:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
0:00:04.571349435 10527 0x1e23a80 WARN mpegtspacketizer mpegtspacketizer.c:2299:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
0:00:04.571366727 10527 0x1e23a80 WARN mpegtspacketizer mpegtspacketizer.c:2299:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
0:00:04.571383263 10527 0x1e23a80 WARN mpegtspacketizer mpegtspacketizer.c:2299:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
...

This issue is specific to Transport Stream when it is encoded and decoded in the same pipeline.
Decoding and displaying a TS file works.

Best Regards.

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

1 participant