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
2
votes
2 answers

WPF and MJPEG Decoder Help

This might be a little of a long shot, but here goes: I have a WPF project and need to stream MJPEG video. The library at http://mjpeg.codeplex.com/ seems to be one of the few PnP options. It works great for viewing a single stream. But, when you…
Unknown Coder
  • 6,625
  • 20
  • 79
  • 129
2
votes
1 answer

Can ffmpeg parse/decode packets in AVCC format?

According to Need to convert h264 stream from annex-b format to AVCC format: AnnexB format: ([start code] NALU) | ( [start code] NALU) | AVCC format: ([extradata]) | ([length] NALU) | ([length] NALU) | Currently you can parse a bitstream (AnnexB…
Guerlando OCs
  • 1,886
  • 9
  • 61
  • 150
2
votes
1 answer

Detection I Frame in h264 stream (fragmented mp4)

I need to check the first frame in H264 stream is I-Frame. On the input I have fragmented mp4 file. I tried to find type of frame in the moof->traf->trun "Sample depends on" flag. But seems, not every container has this flag filled in. So I want to…
2
votes
0 answers

iOS - fails to decode HEVC (H.265) stream if resolution is over 1080p

I am using VideoToolbox API from Apple to decode the HEVC stream. I am using AVSampleBufferDisplayLayer layer for rendering decoded frames. I am successfully able to decode frames if the source resolution is 1080p (1920 X 1080) or less. If the…
2
votes
1 answer

How do I know file type encrypted in base64 string

I have a task of base64 decoder. As you know base64 does not contain any inforamation about source file name, but first 5 symbols do contain information about file type. I already have a function that returns type from base64 string. Here it is. …
2
votes
1 answer

How to get a list of frequencies in a wav file

I'm trying to decode some audio which is basically two frequencies (200hz for a 0 and 800hz for 1) that directly translates directly to binary. A sample of the audio This sample translates to "1001011". There is a third frequency that is 1600hz as a…
2
votes
1 answer

DecoderInitializationException occurs while implementing Drm Dash media source

While implementing Drm Dash media source following exception occurs. MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.Exynos.avc.dec.secure Error report is listed below ExoPlayerImplInternal: Renderer error: index=0,…
2
votes
0 answers

Predict output sample size from MediaCodec for audio in Android NDK

Is there any way to get or set output sample size using MediaCodec in NDK? I am using AMediaCodec_createDecoderByType to decode different codec. For some of the codecs its fixed like for mp3 it gives 1152, for aac 1024, so on but in case of .wav i…
2
votes
0 answers

Custom decoder for images

I would like to create a Decoder that can deserialize some types from the data. I would like it to be able to automatically deserialize all the types, that have init?(data: Data) initializer using this init method. protocol DataInitializable:…
Damian Dudycz
  • 2,622
  • 19
  • 38
2
votes
1 answer

AMediaCodec_dequeueOutputBuffer is slow and returns -10000 on one device

I am currently writing a decoder for H264 video stream. Target platform is Android, so I am using MediaCodec API (Android OS >= 6.0). I've tested my code on 4 devices (same one on all 4): It works nicely on Xiaomi Redmi 5 Plus (it's actually quite…
2
votes
2 answers

How to a decode Json.Decode.Value into tagged union type in elm 0.19?

I see How to decode tagged union types in Elm? Elm JSON decoder for Union type with data I don't believe the first is relevant for elm 0.19. I could not find a decode function in NoRedInk/elm-json-decode-pipeline and I do not believe the := infix…
Nick
  • 1,834
  • 20
  • 32
2
votes
1 answer

Swift json decode with dynamic keys

i'm trying to decode a nested json with dynamic keys, but can't find a solution. here's my json: { "available_channels": { "1000": { "creation_date": "1111222", "category_id": "9" }, "1001": { …
Red Mak
  • 1,176
  • 2
  • 25
  • 56
2
votes
1 answer

Inputs to Encoder-Decoder LSTMCell/RNN Network

I'm creating an LSTM Encoder-Decoder Network, using Keras, following the code provided here: https://github.com/LukeTonin/keras-seq-2-seq-signal-prediction. The only change I made is to replace the GRUCell with an LSTMCell. Basically both the…
2
votes
0 answers

what are the conditions and results of (non)completion of Decoder.Convert

the .net Standard library contains a class Decoder with a method Convert. This method decodes the binary data in the input array to character data in the output array. It has an output parameter completed to indicate if all bytes passed in were…
Martijn
  • 11,964
  • 12
  • 50
  • 96
2
votes
0 answers

Swift unit-testing: simple object conforming to Decoder protocol

I'm writing unit test for something that has a required initializer that takes a Decoder as parameter, the decoder isn't used in my test and the object is also only a dummy placeholder for something else, however I need to provide some instance that…
Heuristic
  • 5,087
  • 9
  • 54
  • 94