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

Freezing Video when PES feed to Gstreamer #5

Open
artemies opened this issue Feb 5, 2021 · 2 comments
Open

Freezing Video when PES feed to Gstreamer #5

artemies opened this issue Feb 5, 2021 · 2 comments

Comments

@artemies
Copy link

artemies commented Feb 5, 2021

Hi,

We tried feeding the video FIFO of one of the subprogram and we observed that the video is freezing. Is this due to the fact that the all subprogram are being processed by demuxfs? is there a way that we can choose only a subprogram to process?

@lucasvr
Copy link
Owner

lucasvr commented Feb 5, 2021

I don't remember having seen this problem in the recent past. Which stream are you feeding to Gstreamer: ES or PES?

DemuxFS processes all input packets, indeed, and currently there's no way to configure it to filter only specific PIDs. You can try to make a one-liner modification to ts.c:325 and include the specific PID that you care about. Something along these lines:

    } else if (ts_is_pes_packet(header->pid, priv) && header->pid == 0x123) {

Another thing you can do is to attach a GDB process to DemuxFS to inspect what's going on by calling thread apply all bt. That should show which function is being called by each of its threads.

@artemies
Copy link
Author

artemies commented Feb 8, 2021

Hi Lucas,

We tried both ES and PES in Gstreamer and we got same results. Thanks for the insights on the PID filtering.

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

2 participants