Questions tagged [bitstream]

A Python library to manage binary data as bitstreams. Available from https://pypi.org

Bitstream three main features:

  • It is easy to use since the bitstream abstraction is simple.
  • It works seamlessly at the bit and byte level.
  • It supports Python, NumPy and user-defined types.
94 questions
1
vote
0 answers

h264 bitstream analyzer (Motion Vector)

From a bitstream analyzer i was able to retrieve this informations which is basically 3 frames first is the I frame and then the P frame and then the B frame I could not figure out how to get the Motion vector (macroblock prediction) from the…
helloj
  • 33
  • 3
1
vote
1 answer

Bit Bang with SPI (fwirte, write performance)

I have a bit bang code that allows me to send like 4 megs of data through SPI lines. Its embedded code for custom Hardware using a Linux Kernel. The problem is that takes a VERY long time to do it (4 hours) this is most likely becase the kernel is…
1
vote
1 answer

How do I generate trace file of an AVC bitstream in JSVM?

I have got stuck in this question for about a month. I want to generate trace file of an AVC bitstream in JSVM. It always shows: " No scalability SEI message found! Extractor exit. " Please kindly help me. Elvin
Elvin
  • 363
  • 1
  • 2
  • 8
1
vote
2 answers

Save a bitstream to a file using python

I need to output an h.265 (or hevc, is the same) bit-stream onto an str file in python. I have a bitstream file and i select some data from this file to save it to a new one. I use bitstring module to process the bitstream file. Edit: My question…
zinon
  • 4,427
  • 14
  • 70
  • 112
1
vote
1 answer

error encoding file with missing audio aac bitstream error

I have a video received from a client that when uploaded into our video processing server(Elemental Server) it hangs and never finishes. The error displayed is: Can't decompress audio. Ignoring packet. osl: [aac @ 0x7f90940031c0]Input buffer…
kandan
  • 715
  • 2
  • 12
  • 39
1
vote
2 answers

How to properly cast arrays in SystemVerilog?

The bit-stream casting in SystemVerilog for arrays and structs does not seem very safe. For example, the following casting issue will only be caught at runtime (which could be hours into the simulation): bit [31:0] bit_queue[$]; logic [31:0]…
Victor Lyuboslavsky
  • 9,882
  • 25
  • 87
  • 134
1
vote
2 answers

Efficient C BitStream Implementation

I am currently researching the various possible strategies for implementing an efficient BitStream in pure C. I need this to implement various bit-based compression algorithms. However, I cannot find much literature on the topic and there doesn't…
awakecoding
  • 428
  • 5
  • 15
0
votes
1 answer

VHDL - FPGA implementation - Pulse trigger generated only once on mutiple button pushes

Hello everyone I wrote some VHDL code that implement a UART-TX from my FPGA to my desktop. To trigger data sending I use the signal(debounced ofc) coming from the on-board switch. As long as the button is pressed data is being sent. Inevitably, for…
acefrrag
  • 41
  • 6
0
votes
1 answer

Is there any way to use FFMPEG expressions in bitstream filters options?

FFMPEG allows to set User Data Unregistered in SEI block with h264_metadata bitstream filter: ffmpeg -i input/test.mp4 \ -bsf:v \ "h264_metadata=sei_user_data=c5bfd5ee-b030-11ec-b909-0242ac120002+waagh" \ -f h264 …
antonm76
  • 11
  • 1
0
votes
1 answer

TypeError: 'BitStream' object cannot be interpreted as an integer

I am a newbie in the python world and I am getting an typing error that I am unsure of: ...File "/home/simon/python/piptroubleshoot/Main.py", line 15, in main …
SomethingsGottaGive
  • 1,646
  • 6
  • 26
  • 49
0
votes
1 answer

ZLIB inflate stream header format

after downloading ZLIB ver. 1.2.11 and looking through RFC1951 I'm trying to use ZLIB.inflate function like this: #include "zlib.h" int iRslt; unsigned char buffIn[4]={0x4b,4,0,0}; unsigned char buffOut[16]; z_stream zStrm; memset(&zStrm, 0,…
Boba
  • 11
  • 2
0
votes
1 answer

Output values from VVC VTM reference software to a text file

Edited code from CABACWriter.cpp This is the code I used to get the no.of bits in a macroblock and output them to a text file: int before; int after; int diff; ofstream outfile; outfile.open("Macroblock.txt"); if…
YS2021
  • 13
  • 4
0
votes
2 answers

Extracting number of bits in a macroblock from VVC VTM reference software

Final:Result after calculating and displaying the differenceI am new to VVC and I am going through the reference software's code trying to understand it. I have encoded and decoded videos using the reference software. I want to extract the bitstream…
YS2021
  • 13
  • 4
0
votes
1 answer

how to land up on the bitstream url from the href link of an html

I am using rvest R package to scrape a PDF file from this webpage but the final link is exposed (as a bitstream url - whatever it is) after I click on the exposed url by name AC1-96-21-01-2011.pdf. The final pdf file is tucked in here hidden from…
Lazarus Thurston
  • 1,197
  • 15
  • 33
0
votes
1 answer

Ffmpeg - Codec 'mp2' (86016) is not supported by the bitstream filter 'aac_adtstoasc'

I'm trying to dump a video streaming on local file using this syntax: ffmpeg -i "http://test.com/videoxxx" -c copy -bsf:v aac_adtstoasc -t 10 c:\\temp\\out.mp4 -loglevel debug It works pretty fine but recently I've encounter specific error: [mpegts…
user3925023
  • 667
  • 6
  • 25