Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6325779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:57:32+00:00 2026-05-24T16:57:32+00:00

Having implemented a strange framework, I have to know how many bytes will be

  • 0

Having implemented a strange framework, I have to know how many bytes will be delivered at a specific tcpsink, before actually transmitting the data. (A rather large amount of data, actually. Some 100 megabytes.)

  • I have separated audio and video data files (say Vorbis, AAC, Theora and h.264) and my “daemon” acts as a webservice that muxes the data together as requested.

  • Unfortunately I need to deliver a correct Content-Length header and of cause there is no way of knowing the actual data amount that will be delivered unless you play the muxing process through at least once.

My question is: Can I e.g. put an fakesink at the end of the pipe at the first run and query it, how many bytes it received? How would I query that?

By now I use an fdsink and count the bytes I read, but I guess there is a better way. Is there a better way? 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:57:33+00:00Added an answer on May 24, 2026 at 4:57 pm

    You can do it in many ways. One way that springs to mind is using fakesink, and connecting a buffer probe to the src pad feeding fakesink. You will then get a callback for each buffer, and can simply count bytes.

    You could use appsink with a handoff callback for the same effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having implemented CLogClass to make decent logging I also defined macro, but it works
I was having a discussion with coworkers. We have to implement some security standards.
I have been noticing some very strange usage of O(1) in discussion of algorithms
I'm having this strange problem where my merge() or my persist() functions are not
I am having a really strange problem implementing Java REST service. I am trying
We are having a strange issue with the Visual Studio 2008 ReportViewer control. Specifically,
I'm having a strange JS issue. I've built a content management system. In the
First of all; I'm aware that this question is strange and I will probably
I am having a strange problem in an Android application that I am building,
I'm having a very strange problem where my execution jumps from semi-predictable locations to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.