Questions tagged [decoding]

Decoding is the reverse of encoding.

Decoding is the reverse of , which is the process of transforming information from one format into another understandable by a receiver. In communication theory and coding theory, decoding is the process of translating received messages into codewords of a given code. Like encoding, decoding applies to information of various forms:

1741 questions
0
votes
1 answer

PHP Decoding attached text document

I was previously using file_get_contents to retrieve a JSON document like this: $json = file_get_contents('php://input'); But when trying to add special characters such as ÷ to the json... file_get_contents is apparently decoding it as ASCII…
CarCar
  • 680
  • 4
  • 13
0
votes
2 answers

ASN.1 BER Handling Tag Number 31 or Higher

I'm working on decoding ASN.1 BER encoded data, and I'm wondering what the correct handling of Tag 31 (specifically) and greater should be. I feel the X.690 spec is a little ambiguous and I don't have an example of any data which does have a tag of…
0
votes
1 answer

Decode a h265/HVEC bitstream to rawvideo(Y4M)

I encoded a raw video in Y4M format with the following command on Matlab system(['ffmpeg -i ' videoNameIn, videoTypeIn, ' -s ' num2str(width),'x',num2str(height), ' -r ', num2str(frameRate), ' -c:v libx265 -preset ultrafast', videoNameOut,…
asendjasni
  • 963
  • 1
  • 16
  • 36
0
votes
1 answer

What codec/format to use for fastest possible decoding?

I'm using an ffmpeg script (in Windows) that extracts all the keyframes from a video and pastes them into a folder. I've made sure that my drive speed, CPU, and RAM are not causing a bottleneck. The quality of the video is actually not important at…
jj1999
  • 11
  • 4
0
votes
1 answer

Reverse engineering Obb image files - unkown .pak.img;notc?

I'm attempting to reverse engineer the data element of an android app - simply because i want a couple of the images, but I've come across a stumbling block. The files are in a .pak extensions i don't recognize and can't seem to do anything with.…
user2747536
0
votes
2 answers

php paragraph decoding to original text

I am trying to decode a paragraph using the PHP code…
0
votes
2 answers

UnicodeDecodeError: 'utf-8' codec can't decode byte (python)

I'm playing around, trying to pull a bitcoin block template using the getblocktemplate method. I got a response but when I try to decode it from bytes I'm getting an error. Check it out: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) HOST…
Engine
  • 141
  • 3
  • 16
0
votes
1 answer

No json file could be decoded but if i open a specific file name it works

I have been trying to open multiple json files at once then write them back in python with this code but its giving me error: ValueError: No JSON object could be decoded the code: def get_children(node): for child in node['children']: yield…
Zyzz Shembesh
  • 220
  • 3
  • 19
0
votes
1 answer

Decode UTF-8 bytes as Latin-1 characters

I have a string that I receive from a third party app and I would like to display it correctly in any language using C# on my Windows Surface. Due to incorrect encoding, a piece of my string looks like this in Farsi (Persian-Arabic):…
0
votes
1 answer

DBF Import Charmap Error Python

I have another question going regarding an import but I ran into a different issue. I'm trying to import data from a DBF file, and while most DBF files work, I ran into a one that's giving me the following error, "C:\Program…
HMan06
  • 755
  • 2
  • 9
  • 23
0
votes
1 answer

Decoding audio from non-file source with Microsoft Media Foundation

My question is basically that I am new to this framework and I am looking at pointers to how to work with non-file sources in media foundation since the documentation in this front seems lacking in my mind. Below is some info on what I am doing and…
Alex Telon
  • 1,107
  • 1
  • 14
  • 30
0
votes
1 answer

Media codec capabilities Android

We are developing an application which involves audio,video decoding and encoding. In some cases we need multiple decoders to be open at same time. Problem : Some devices doesnt support multiple(2 or more) decoders to be open at same time. This…
Preethi Rao
  • 5,117
  • 1
  • 16
  • 29
0
votes
1 answer

zlib error -3 while reading content from server response

I'm getting a response from a server with the gzip encoding, but I can't figure how to decode it. I tried using the zlib module but i get the error: zlib.error: Error -3 while decompressing data: incorrect header check This is my request: r =…
Mumfordwiz
  • 1,483
  • 4
  • 19
  • 31
0
votes
1 answer

Chinese texts in HTML all become funny letters such as '针'

I am a complete idiot in HTML but somehow I need to make some simple edits to a HMTL page. What puzzles me is, when I open up the source code editor, all the Chinese texts on this HTML file have become something like…
ZXY
  • 41
  • 1
  • 1
  • 4
0
votes
2 answers

Efficient algorithm(s) to compress strings containing windows file paths

I need to devise an efficient way to encode/decode multiple strings containing windows file paths e.g. C:\Users\Public\Documents\CompanyName\ApplicationName\VersionNumber\Filename.ext on an embedded system with limited long-term storage. Currently,…
markf78
  • 597
  • 2
  • 7
  • 25