Questions tagged [video-encoding]

This tag should be used for questions related with programmatically handling of video encoding in any format. For questions related to trimming and modifying videos use [video-editing], and [video-processing] for questions related to processing videos with filtering video frames.

Video encoding (and video compression) reduces redundancy in video data with algorithms and codecs. Most of the techniques are to combine spatial image compression and temporal motion compensation.

See also:

Read more:

950 questions
6
votes
1 answer

block motion compensated encoder - how to deal with block-noise in reference frame?

I am not proficient in any way with video compression, but currently work on a project where i compress residual images using H.264 My question is more of general nature regarding video encoders. As I understand it (as Wikipedia explains it), a…
Mat
  • 4,281
  • 9
  • 44
  • 66
5
votes
4 answers

Java - h.264 video encoding

I'm trying to make a program that can encode and decode h.264 video so I can edit this video. Can anyone tell me how I do this if I want to make this program in java?
Mahfud Harun
  • 915
  • 1
  • 13
  • 19
5
votes
2 answers

Render video content from a Grails controller

No doubt another silly newb question! I have a byte array in a Grails controller that contains the contents of a video file (an *.mp4 file to be exact). I am familiar with how to render JSON, XML and other basic types from a grails controller but I…
Rich Sadowsky
  • 966
  • 1
  • 12
  • 22
5
votes
1 answer

Good library for encoding videos in a dynamic language?

I'm looking for an effective library for encoding videos. I would prefer something in one of the Ruby/Python ilk type languages, but I'd use libraries in C or PHP that were good. Essentially, I'm looking for something that wraps ffmpeg, and would…
rybosome
  • 5,046
  • 7
  • 44
  • 64
5
votes
2 answers

What is the decoded output of a video codec?

Folks, I am wondering if someone can explain to me what exactly is the output of video decoding. Let's say it is a H.264 stream in an MP4 container. From displaying something on the screen, I guess decoder can provider two different types of…
Peter
  • 11,260
  • 14
  • 78
  • 155
5
votes
1 answer

Manually feeding x264 with my own motion data?

I am trying to encode a stream using x264 (by feeding individual images), but what's unusual is that I already have some motion information for my frames. I know exactly which areas have been modified in each frame, and I know where motion has…
ldoogy
  • 2,819
  • 1
  • 24
  • 38
5
votes
1 answer

MediaFoundation: Registering custom ClassFactory doesn't work

Background: I'm encoding NV12 buffers into h264 video stream wrapped in MPEG4 container using SinkWriter. Everything works fine but one problem though, as the SinkWriter abstracts the low-level encoder configurations I'm unable to control the…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
5
votes
1 answer

Overlaying video with ffmpeg

I'm attempting to write a script that will merge 2 separate video files into 1 wider one, in which both videos play back simultaneously. I have it mostly figured out, but when I view the final output, the video that I'm overlaying is extremely…
elee
  • 53
  • 1
  • 1
  • 4
5
votes
0 answers

JCodec simple H264 encode/decode

Ok, so trying to get my head around jcodec. Basically, I want to record what's on the screen as BufferedImages, encode the buffered images as H264 frames and then decode them and convert them back to buffered image. This is the code I have, the…
pranahata
  • 530
  • 4
  • 18
5
votes
2 answers

How to specify an offset and a seek position for a video stream of a mp4 container?

It seems like I can have one or the other (-ss or -itsoffset), but never both at the same time, or they kind of cancel each other. I create output.mp4 with this command: ffmpeg -i input.mp3 -itsoffset 4 -t 4 -ss 3 -i input.mp4 -c:v copy…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
5
votes
1 answer

ffmpeg returns 'frame_pts' as unrecognized option

Earlier today I posted a question about frame extration with keyframes per encoding order (here) and I tried to run the command provided in one of the answers but ffmpeg returns: Unrecognized option 'frame_pts'. Error splitting the argument list:…
tavalendo
  • 857
  • 2
  • 11
  • 30
5
votes
1 answer

Rendering webpage as H.264

I'm trying to render HTML as a H.264 stream, and then streaming it to another PC on my network. I've got the last part, streaming to to another PC on my network down. Now my only problem is rendering the webpage. I can't render it once, because it…
5
votes
2 answers

very low latency streaminig with ffmpeg using a webcam

I'm trying to configure ffmpeg to do a real-time video streaming using a webcam. The ffmpeg encoder command I use is as follows. ffmpeg -f v4l2 -input_format yuyv422 -s 640x480 -i /dev/video0 -c:v libx264 -profile:v baseline -trellis 0 -subq 1…
5
votes
1 answer

libavcodec, how to transcode video with different frame rates?

I'm grabbing video frames from the camera via v4l, and i need to transcode them in mpeg4 format to successively stream them via RTP. Everything actually "works" but there's something I don't while re-encoding: the input stream produces 15fps, while…
ubik
  • 595
  • 5
  • 16
5
votes
0 answers

How do you encode with AVVideoCodecH264 codec using AVAssetExportSession?

I currently have the code below to compress a video after selection func compressVideo(inputURL: NSURL, outputURL: NSURL, handler:(session: AVAssetExportSession)-> Void) { var urlAsset = AVURLAsset(URL: inputURL, options: nil) var…
russell
  • 176
  • 1
  • 12