Questions tagged [encoder]

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.

612 questions
4
votes
1 answer

Spark dataset encoders: kryo() vs bean()

While working with datasets in Spark, we need to specify Encoders for serializing and de-serializing objects. We have option of using Encoders.bean(Class) or Encoders.kryo(Class). How are these different and what are the performance…
Abhay Dubey
  • 549
  • 2
  • 7
  • 18
4
votes
3 answers

Python 2D Numpy Array to 1D (sort of..)

Simple question, I want to get a 1D numpy array. Given a 2D array where each row contains a single '1' value, how can it be converted to a 1D array, consisting of the column index of the '1' in the 2D array [[ 0. 0. 1.] [ 0. 0. 1.] [ 0. 0. …
5Volts
  • 179
  • 3
  • 13
4
votes
1 answer

how to reduce MediaCodec H264 encoder latency

I'm trying to encode h264 into stream in real-time low latency with Android6.0's MediaCodec. There are about 6 frames latency from encoder which I wanna know how to reduce Codes are from screenrecord.cpp part codes are: while (true) { …
jorp
  • 41
  • 6
4
votes
0 answers

Change SequenceEncoder FPS

I have a set of images and I would like to generate a MP4 video from it. I am using jcodec - SequenceEncoder, but the photos go too fast, there is any way to change the FPS? My code: public void generateVideo(ArrayList Uris) { try { …
Nirel
  • 1,855
  • 1
  • 15
  • 26
4
votes
1 answer

How to implement bidirectional encoder in tensorflow?

In Tensorflow, all the encoder-decoder functions (https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/seq2seq.py) use a unidirectional implementation of RNN unit. How can we implement the bidirectional encoder…
user3480922
  • 564
  • 1
  • 10
  • 22
4
votes
1 answer

Max output size in Azure Media Encoder

Is there a built in way to prevent AME from encoding an output size from the config file if the source video is smaller than the target, or is it necessary to have a bunch of presets with each one having the maximum res then I query the media file…
Stephen York
  • 1,247
  • 1
  • 13
  • 42
4
votes
4 answers

ScreenVideo encoder in Java

Anyone know of a Java video encoder for ScreenVideo (v1 or v2) which is free? I know ffmpeg has a C++ version and Lee Felarca wrote one in AS3; but I really would like to have one in Java. AS3:…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
4
votes
1 answer

IOError: encoder jpeg not available on OS X 10.10

I have trying to install Python Image Library, and have got message that told me install success -------------------------------------------------------------------- PIL 1.1.7 SETUP SUMMARY …
4
votes
3 answers

Stream image format conversions and resizing in Java

So, lets say I want to recode some PNG to JPEG in Java. The image has extreme resolution, lets say for example 10 000 x 10 000px. Using "standard" Java image API Writers and Reader, you need at some point to have entire image decoded in RAM, which…
B.Gen.Jack.O.Neill
  • 8,169
  • 12
  • 51
  • 79
4
votes
0 answers

Recording Audio and Video with mediaMuxer examples?

I am trying to record audio and video with mediaMuxer. I followed the example for video recording from https://github.com/google/grafika but when I tie in an audiostream it results in a broken video over half the time. Does anyone know of any…
QuinnBaetz
  • 559
  • 9
  • 23
4
votes
1 answer

Encoding custom objects with decorators - Python

I am looking for a way to encode custom objects to dict in Python using a class decorator to provide the name of the variables that should be included in the resulting dict as arguments. With the dict, I would be able to use…
4
votes
3 answers

100% Java encoder for AVI animation

I am looking for a 100% Java solution for encoding software generated images into an AVI stream together with an uncompressed audio track. At the moment I am using JMF, but its size and installation problems make it a bad solution for my purpose.
Timo
  • 902
  • 1
  • 10
  • 21
3
votes
1 answer

Symfony2 Security Encoders not recognising UserInterface instance

I have recently started setting up the security for my Symfony2 project. I opted to encode with sha256 using a salt. When I tried to login with a sample account in the database (with self-calculated sha256 salt/hash), it kept failing without giving…
Rex
  • 610
  • 9
  • 19
3
votes
1 answer

ValueError: The following `model_kwargs` are not used by the model: ['encoder_outputs'] (note: typos in the generate arguments will also show up

When I try to run my code for Donut for DocVQA model, I got the following error """Test""" from donut import DonutModel from PIL import Image import torch model = DonutModel.from_pretrained( "naver-clova-ix/donut-base-finetuned-cord-v2") if…
3
votes
0 answers

C# Theora encoder?

I want to live stream images I receive from a third party service to a HTML5 video. Looks like the best option is to encode the images in the theora format. Anyone knows a good theora encoder for c#
Anders
  • 17,306
  • 10
  • 76
  • 144