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
50
votes
6 answers

Base64 encoder and decoder

Is there a base-64 decoder and encoder for a String in Android?
xydev
  • 3,409
  • 5
  • 34
  • 54
22
votes
3 answers

No encoder has been configured for account with fosUserBundle symfony2.1

I have this error when I submit the connexion form (I use FOSUserBundle latest version) : No encoder has been configured for account "MyApp\UtilisateurBundle\Entity\Utilisateur here is my entity :
user201892
  • 277
  • 2
  • 4
  • 11
16
votes
6 answers

How to write a video encoder with ffmpeg that explicitly controls the position of keyframes?

I want to write an encoder with ffmpeg which can put iFrames (keyframes) at positions I want. Where can I found tutorials or reference material for it? P.S Is it possible to do this with mencoder or any opensource encoder. I want to encode H263…
SunnyShah
  • 28,934
  • 30
  • 90
  • 137
16
votes
1 answer

How to pass Camera preview to the Surface created by MediaCodec.createInputSurface()?

Ideally I'd like to accomplish two goals: Pass the Camera preview data to a MediaCodec encoder via a Surface. I can create the Surface using MediaCodec.createInputSurface() but the Camera.setPreviewDisplay() takes a SurfaceHolder, not a Surface. …
Andrew Cottrell
  • 3,312
  • 3
  • 26
  • 41
15
votes
1 answer

WebSocket: OnClose() is never called

I'm implementing an application with a WebSocket endpoint. Here is some code: @ApplicationScoped @ServerEndpoint(value="/socket", encoders = {MessageEncoder.class, CommandEncoder.class}) public class SocketEndpoint { /** Default-Logger */ …
Second2None
  • 462
  • 2
  • 8
  • 22
14
votes
1 answer

Create MP4 video in JavaScript

Is it possible to create an MP4 video on a browser through JavaScript? (I know it is now possible in Flash with FlashyWrappers) Ideally, I will be feeding it with image frames (raw, PNG or anything) and it will be combining them into an MP4…
Bill Kotsias
  • 3,258
  • 6
  • 33
  • 60
14
votes
2 answers

MediaCodec H264 Encoder not working on Snapdragon 800 devices

I have written a H264 Stream Encoder using the MediaCodec API of Android. I tested it on about ten different devices with different processors and it worked on all of them, except on Snapdragon 800 powered ones (Google Nexus 5 and Sony Xperia Z1).…
lowtraxx
  • 321
  • 3
  • 8
14
votes
1 answer

How to use ByteBuffer in the MediaCodec context in android

So far I am able to setup a MediaCodec to encode a video stream. The aim is to save my user generated artwork into a video file. I use android Bitmap objects of the user artwork to push frames into the stream. See the code snippet I use at the…
Nar Gar
  • 2,591
  • 2
  • 25
  • 28
13
votes
1 answer

ffmpeg commands to concatenate different type and resolution videos into 1 video and can be played in android

I want to concatinate 4 different videos of 4 different resolution and type into 1 video which can be played in android. I am using ffmpeg ported on android using https://github.com/guardianproject/android-ffmpeg So I have these 4 different types of…
Aalap
  • 2,847
  • 2
  • 26
  • 24
13
votes
1 answer

Hierarchical JPEG Encoder/Decoder

Does anyone knows of any implementation of the hierarchical JPEG mode (ITU T.81) ? I am not talking about progressive mode (or sequential), I really mean the hierarchical mode.
malat
  • 12,152
  • 13
  • 89
  • 158
12
votes
1 answer

Swift 4: With Codable `Generic parameter 'T' could not be inferred`

I am getting the following error: Generic parameter 'T' could not be inferred on line: let data = try encoder.encode(obj) Here is the code import Foundation struct User: Codable { var firstName: String var lastName: String } let u1 =…
user1107173
  • 10,334
  • 16
  • 72
  • 117
12
votes
4 answers

Encode Base64 cannot find symbol error

It gives me a error when I try to compile it in terminal. It prints out this error: -bash-4.1$ javac CPS3498/HW_Ch2/encrypt.java CPS3498/HW_Ch2/encrypt.java:9: cannot find symbol symbol : class Base64 location: package java.util import…
Shiv Patel
  • 131
  • 1
  • 2
  • 11
11
votes
4 answers

Javascript , encodeURI failed to encode round bracket "("

I have cookie value which contains round bracket " e.g: demo (1)" When I try to encode with encodeURI , the round bracket ( is not encoded to %28 , what is the alternative to encode the special characters like round brackets
Stin
  • 141
  • 1
  • 2
  • 12
10
votes
1 answer

Why is my custom JSONEncoder.default() ignoring booleans?

I want to convert a dictionary to a JSON string with boolean True values translated to the number 1 and boolean False values translated to the number 0. I'm using a JSONEncoder subclass, but it seems to ignore booleans ... import json class…
HippoMan
  • 2,119
  • 2
  • 25
  • 48
8
votes
1 answer

C# What is the difference between Text.Encoder and Text.Encoding

I am currently using Unicode in bytes and using Encoding class to get bytes and get strings. However, I saw there is an encoder class and it seems like doing the same thing as the encoding class. Does anyone know what is the difference between them…
Eds
  • 380
  • 1
  • 13
1
2 3
40 41