Questions tagged [decoder]

A device or a software which purpose is to decode an encoded signal or stream.

A device or a software which purpose is to decode an encoded signal or stream.

538 questions
8
votes
2 answers

Swift Decodable: how to transform one of values during decoding?

Be default, Decodable protocol makes translation of JSON values to object values with no change. But sometimes you need to transform value during json decoding, for example, in JSON you get {id = "id10"} but in your class instance you need to put…
surfrider
  • 1,376
  • 14
  • 29
7
votes
1 answer

Custom Dictionary Encoder & Decoder for the Codable protocol in Swift 4

If I have a struct that conforms to the Codable protocol like so: enum AnimalType: String, Codable { case dog case cat case bird case hamster } struct Pet: Codable { var name: String var animalType: AnimalType var age:…
Toni Sučić
  • 1,329
  • 1
  • 13
  • 20
7
votes
2 answers

How to decode tagged union types in Elm?

If I have a certain tagged union type, like Shape here, how would I construct a JSON decoder for it in Elm? type alias Rectangle = { width : Int, height : Int } type alias Circle = { radius: Int } type Shape = ShapeRectangle Rectangle |…
Marcelo Lazaroni
  • 9,819
  • 3
  • 35
  • 41
7
votes
1 answer

Android encoding using MediaCodec and a Surface

I've been rendering video through the MediaCodec directly to a Surface that was taken from a SurfaceView in my UI. This works great. I am now attempting to use MediaCodec as an encoder. As a test, I want to render to the Surface (as in above) and…
7
votes
2 answers

Exoplayer throws Decoder initialisation exception for large mp4 files in android

Iam using Exoplayer to play videos as a playlist continuously in android . When I play low quality mp4 videos it works fine but when i try to play higher quality mp4 videos after playing one or two videos in the playlist the screen doesnot display…
user2949215
  • 663
  • 1
  • 7
  • 11
7
votes
2 answers

Record and playback with Opus Codec in Android

I'm working on a project that need to record and playback with Opus Codec, I search a lot but I can't find any demo/example using that solution. I find a demo having encoder but can't find the decoder. I only find the source code of this codec using…
Phu Tang
  • 415
  • 6
  • 16
6
votes
1 answer

Modifying motion vectors in ffmpeg H.264 decoder

For research purposes, I am trying to modify H.264 motion vectors (MVs) for each P- and B-frame prior to motion compensation during the decoding process. I am using FFmpeg for this purpose. An example of a modification is replacing each MV with its…
qontranami
  • 103
  • 1
  • 9
6
votes
1 answer

Potential Bug with JSON Decoder Swift

I believe I have found a bug in the JSONDecoder. If one tries to decode a JSON object with more than 8 properties, I get an unrecognizable error: error: Execution was interrupted, reason: EXCBADACCESS (code=1, address=0xe8). The process has been…
6
votes
1 answer

How to get the timestamp of each video frame in iOS while decoding a video.mp4

Scenario: I am writing an iOS app to try decode a videoFile.mp4. I am using AVAssetReaderTrackOutput with AVAssetReader to decode frames from the video file. This works very well. I get each & every frame from videoFile.mp4 basically using the…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
6
votes
2 answers

Decoding a url-encoded windows-1251 (cp1251) string with JavaScript

I have faced a problem, unfortunately, I have not found a correct solution: I need to decode url-slice that is encoded with windows-1251 (cp1251). I know there are theese methods - decodeURI() and decodeURIComponent(), but they work for UTF-8 only…
Romanzhivo
  • 161
  • 1
  • 3
  • 11
6
votes
3 answers

pdf417 Javascript Reading / Decoding

I have been tasked with adding in pdf417 (Driving License) decoding / reading for a web based application. Input: Image of driving licenses. (400-600 dpi) Processing: Detecting/Parsing of pdf417 data. Output: Parse pdf417 data. Limitations: Its a…
Mitchell Quinn
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Fastest way to draw a MediaCodec-decoded video frame to screen?

I'm looking for the fastest way to take an image frame received from the MediaCodec decoder and draw it to the Android device screen. The important constraints and explanations are: Cannot use MediaPlayer. No intermediate app allowed. Must draw…
Andrew Cottrell
  • 3,312
  • 3
  • 26
  • 41
6
votes
2 answers

How to save SurfaceTexture as bitmap

When I decode a video to a surface I want to save the frames i want as bitmap/jpeg files. I don't want to draw on the screen and just want to save the content of the SurfaceTexture as an image file.
feisal
  • 585
  • 1
  • 8
  • 20
6
votes
1 answer

MP4/h264 decoding library for Windows Phone 8

I am looking for a mp4/h264 decoder for Windows Phone 8 which allows me to access the decoded video frame data (after I/P/B frame processing). Afaik Windows Phone 8 itself does not provide means to access the decoded h264 data for further…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
6
votes
1 answer

Hardware Accelerated h264 decoding using ffmpeg, OpenCV

I am working on a Video analytics application where I have to decode an RTSP stream to give IplImage frames which are then fed into my analytics pipeline. Now, the OpenCV VideoCapture structure allows me to extract frames from an RTSP stream(i think…
Richard Macwan
  • 422
  • 1
  • 5
  • 19
1
2
3
35 36