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
3
votes
0 answers

Why we get co located POCs unavailable while encoding a video using ffmpeg?

I am trying to encode a video to m3u8 file. I am inserting blackframes when the video has no source in between. I used the following command to encode the video. I found the options in ffmpeg website to insert the filters and blackframes. But I am…
geo-freak
  • 327
  • 3
  • 20
3
votes
2 answers

Set attributes via ICodecAPI for a H.264 IMFSinkWriter Encoder

I am trying to tweak the attributes of the H.264 encoder created via ActivateObject() by retrieving the ICodecAPI interface to it. Although I do not get errors, my settings are not taken into account. Code runs under Windows 10. I copy the code I…
JPh
  • 536
  • 3
  • 20
3
votes
3 answers

Converting video to flash and mp4 ruby on rails?

I'm currently the lead dev (read only dev!) on a website for our youth church called base.. http://mybase.co At the moment i'm working on a "2.0" style iteration of the site hoping to make it more content rich and more mobile friendly.. We have been…
Daniel Upton
  • 5,561
  • 8
  • 41
  • 64
3
votes
1 answer

YUV to h263/h264 compression on android to stream video

I am trying stream video from android to network an receiving it on a server that I had written in c#. I am capturing YUV data on onPreviewFrame method on Camera and sending it to the server where I convert this data to image and displaying…
Vinod Maurya
  • 4,167
  • 11
  • 50
  • 81
3
votes
1 answer

Encode Frames to Video with C Library

For the sake of continuity, let us assume "RGB values" are the following: typedef struct RGB { uint8_t r, g, b; } rgb; However, if you feel that a different color space is more appropriate for this question, please use that instead. How might I…
NetherGranite
  • 1,940
  • 1
  • 14
  • 42
3
votes
0 answers

HTML input > file "video/*" > iPhone X codec issue

I noticed that iPhone X give different "codeced" video files to a input like this depending if it directly captures the video from the cam => MPEG-H Part2/HEVC (H.265) or select a video from the phone => H265 -…
3
votes
1 answer

FFMpeg default bitrate value

What does FFMpeg do if I specify one codec to reencode and omit bitrate parameter? I tested with one video but I would like to understand Original: Duration: 00:00:10.48, start: 0.000000, bitrate: 17282 kb/s then I ran ffmpeg.exe -i a.mp4 -c:v…
Rafael Lima
  • 3,079
  • 3
  • 41
  • 105
3
votes
1 answer

Android camera capture produces green and blocky video

I'm trying to record video with camera in android, but any output format i put produces a green and blocky video (though with normal sound).. So here are the parameters i set (i tried h264 and mpeg_4_sp…
Alex K
  • 6,737
  • 9
  • 41
  • 63
3
votes
2 answers

ffmpeg error during encoding: EOF timestamp not reliable

I have noticed that some videos processed by the following command displays an error in the preliminary phase of the process: [Parsed_movie_0 @ 0x7fb06cf00d80] EOF timestamp not reliable All this happens while I'm testing the ffmpeg command line…
3
votes
1 answer

Planar and DC mode in reference software

I am walking through the intra prediction part of HEVC reference software. I can see inter prediction and intra prediction in xCompressCU method in TEncCu.cpp file. But I can't locate the place of planar and DC modes are calculated. Where are these…
harsh
  • 2,399
  • 9
  • 29
  • 47
3
votes
2 answers

PHP Internal Server Error 500 when using ffmpeg to convert files

I've a PHP script that it's being called with a cron job in my server to run uploaded video conversions. It works fine for some videos, but when the video is a bit larger (21MB for example) I get a 500 Internal Server Error and no other output. I…
FidoBoy
  • 392
  • 6
  • 18
3
votes
1 answer

Encoding frames to video with ffmpeg

I am trying to encode a video in Unreal Engine 4 with C++. I have access to the separate frames. Below is the code which reads viewport's displayed pixels and stores in buffer. //Safely get render target resource. FRenderTarget* RenderTarget =…
Mher Didaryan
  • 55
  • 3
  • 8
3
votes
0 answers

FFMPEG encoding is rotating portrait images uploaded from the iPhone

I'm trying to figure out why FFMPEG is rotating my thumbnail image when a portrait video is uploaded from an iphone. Here is my command line test: ffmpeg -i video/test.mp4 -c:v libx264 -profile:v high -level 5 -crf 18 -preset medium -maxrate 10M…
Kevin J
  • 194
  • 1
  • 11
3
votes
1 answer

Cutting a video accurately at a specific time without losing quality

I am using ffmpeg to cut a video accurately at a given time to another time. I know, we can simply re-encode it, but will lose the quality. Also, I do not want to use copy option because of key frames issue (i.e, the video won't be cutt accurately).…
mdasari
  • 423
  • 4
  • 11
3
votes
1 answer

What H.264 encoding profile is considered "safe" in 2017?

Have streaming services adopted a certain H.264 profile as "standard" or "safe" for use in 2017? For example are all modern Youtube videos at least "High" profile for H.264? Or does Youtube continue to serve all encoding profiles, down to "Baseline"…
degenerate
  • 1,224
  • 1
  • 14
  • 35