Encoder is a software program, device or algorithm that converts information from one format or code to another, for the purposes of standardization, speed, secrecy, security or compressions.
Questions tagged [encoder]
612 questions
3
votes
1 answer
Write RTP payload data to an audio file using FFmpeg API
My task is to write the payload data of an RTP packet to an audio file. To do this, in the example below, I implemented an audio encoder that takes a small amount of audio data (such as pcm_alaw, pcm_mulaw, pcm_s16le, pcm_s16be, and so on) and saves…

bbdd
- 37
- 1
- 11
3
votes
1 answer
Does libx264 encoder support 12 bit pixel format such as yuv444p12le?
Libx264 show support for following input pixel formats:
yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21 yuv420p10le yuv422p10le yuv444p10le nv20le gray gray10le
For libx264 can support be added for 12 bit format like…

bazz01
- 33
- 2
3
votes
2 answers
Serialize multiple classes to JSON
I have a class A where it stores a collection of variables of type B, how can I serialize class A to JSON properly?
example:
class A:
def __init__(self):
self.b_collection = []
#...
class B:
def __init__(self):
# ...
…

Tomergt45
- 579
- 1
- 7
- 19
3
votes
0 answers
How do PNG encoders pick which filter to use?
The PNG specification states that there are five possible filters, which can be chosen individually for each row of the image. It gives some general suggestion first:
Indexed color and < 8-bit color images should use no filter
Truecolor and…

JeffThompson
- 1,538
- 3
- 24
- 47
3
votes
0 answers
Which is the best way to decode URL in java?
I use URLDecode/URLEncoder class like this:
String decodeStr = URLDecoder.decode(str, "UTF-8");
but my security tools says Avoid dangerous J2EE API, and use
Encoder.encodeForURL()/decodeForURL()
instead of
URLDecoder.decode()
So please anyone can…

Hitesh
- 271
- 2
- 5
- 18
3
votes
1 answer
Generate Access token with username and password
I am trying a post-call to generate an access token using the client username and password. I would like to know how we can achieve this through Java code.
Basically, I have username and password. I would need to get the access token to pass in…

TTT
- 113
- 2
- 3
- 11
3
votes
2 answers
LZW (Limpel-Ziv-Welch) Dictionary coding delimiter issue
This question may not be strictly limited to the LZW algorithm, and may cover other implementations of LZ77 and LZ78:
I've been trying to write a compression/decompression utility involving the LZW dictionary coding scheme.
The problem is that I've…

Rob
- 107
- 1
- 7
3
votes
1 answer
STM32 HAL Nucleo F446RE Quadrature Encoder
I have a problem with the quadrature encoder mode on timer TIM3 of my
STM32F446RE /
NUCLEO-F446RE:
TIM3 counts on every rising edge on the first signal.
The CNT register counts up and I read the value with 1 Hz and then
I set the register to…

Max3579
- 41
- 4
3
votes
1 answer
install all encoders of FFMPEG for ubuntu 16.04?
I am converting video to mp4 format using FFMPEG.
First, it was giving me an error for Unknown encoder 'libfdk_aac'. After installing libfdk_aac now it is giving me Unknown encoder 'libx264'.
Is there a way we can install all encoders of FFMPEG for…

Bunty
- 1,549
- 13
- 18
3
votes
1 answer
Autoencoder: Is the decoder the mirrored version of the encoder?
I am new with deep learning and I would like to implement autoencoders for anomaly detection.
I have two questions:
Are the decoder layers always the mirrored version of the encoder layers?
Since the weights of hidden layer Code (h) represent the…

Emanuela Liaci
- 165
- 1
- 12
3
votes
1 answer
Keras Seq2Seq Introduction
A Keras introduction to Seq2Seq model have been published a few weeks ago that can be found here. I do not really understand one part of this code:
decoder_lstm = LSTM(latent_dim, return_sequences=True, return_state=True)
decoder_outputs, _, _=…

BenDes
- 917
- 8
- 14
3
votes
1 answer
How to encode password in Silex?
I am writting a login app with Silex, but I have a problem with Silex password encoder. I read this in the silex document and got some code like this:
// find the encoder for a UserInterface instance
$encoder =…

HuynhAT
- 175
- 1
- 8
3
votes
4 answers
How do I change the schema on a Spark Dataset
When I retrieve a dataset in Spark 2, using a select statement the underlying columns inherit the data types of the queried columns.
val ds1 = spark.sql("select 1 as a, 2 as b, 'abd' as c")
ds1.printSchema()
root
|-- a: integer (nullable = false)
…

Euan
- 559
- 4
- 10
3
votes
1 answer
How does MPlayer recognize an MJPEG stream?
Since MJPEG over http consists basically on the transmission of a series of JPEG images seperated by a defined seperator, how does MPlayer recognize that it is an MJPEG stream?
Thank you

Emy
- 45
- 7
3
votes
1 answer
WPF - Black Background surrounding saved canvas as jpeg
I'm having difficulty with JpegBitmapEncoder since it is creating an image that is placed in black rectangle. and I don't have the solution for fix.
private void SaveImage(Canvas canvas, string fileName)
{
SaveFileDialog s = new…

MicroDev92
- 169
- 1
- 15