Questions tagged [video-encoding]

1

votes
2

answer
125

Views

use of ffmpeg select filter

I am stuck with the use of ffmpeg select filter as I want to pick up only the ending frame of a input video but I cannot figure out the selection expression for the filter to get the work done, my code looks like this: ffmpeg -i in.mp4 -filter_complex 'select=expr_selecting_lastest_frame, overla...
user651177
1

votes
1

answer
762

Views

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 that generates the encoding with the specific required...
Massimo Vantaggio
1

votes
1

answer
288

Views

ffmpeg command x265 param option for android device

I wanto encode HEVC video to be played on my android phone. in this page from anroid says that only Lollipop+ will supported HEVC. and the Profile : main, Level 3. But ffmpeg encoding x265 not supproted profiling. I know some answer of this question, But thats is for Profile main10. I need -x265-par...
sonya
1

votes
2

answer
92

Views

HEVC reference software : Modification to encode CTUs line by line instead of slice segments

Looking inside the Void TEncSlice::encodeSlice of the official HM Test software, I found that in a loop the encoder is trying to encode every CTU inside a slice segment ie 512 CTUs in a unique slice in my script example. for( UInt ctuTsAddr = startCtuTsAddr; ctuTsAddr < boundingCtuTsAddr; ++ctuTsAd...
Maverick
1

votes
0

answer
244

Views

How to conconfigure AV1 codec for low delay applications?

Do anyone know how to conconfigure AV1 for low delay applications , i mean like HM (HEVC) low delay configuration where the GOP is IPPP..( just 2 temporal layers ) , I tried these , but i am not sure because it's not different from the regular mode (random access) : aomenc.exe --profile=0 --auto...
Mourad
1

votes
2

answer
103

Views

changing HM reference software to display some information about the bitstream

I am very new to the HM HEVC (and the JEM) reference software, and I am currently trying to understand the source code. I want to add some lines to display for each component: name of Algo (i.e. inter/intra Algos) + length of the bitstream+ position in output bin file. To know which component cost...
Mourad
1

votes
1

answer
64

Views

Multithreading in HM reference software

Encoding an UHD sequences with HEVC HM reference software takes days on CPU’s even with monster computers, I want to know if it’s possible and then how to increase the number of threads (even if it decreases the quality of the encoding) to speed up the process (I want it to rise up to x4 times a...
Mourad
1

votes
1

answer
43

Views

How can I copy nvEncode input buffer to a Direct3d11 Texture?

I am using nvencode api for video encoding. My capture card copies frames to pre allocated input buffers (NV_ENC_INPUT_PTR) using direct dma transfers (GpuDirect). the sequence looks like so: nvEncodeApi->nvEncLockInputBuffer(_encoder, &lockInputBufferParams); // lock input buffer DmaCopy(lockInputB...
Nina Kaprez
1

votes
1

answer
106

Views

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 go about writing 2D arrays of RGB values to a video in...
NetherGranite
1

votes
0

answer
178

Views

Using ffprobe to get number of keyframes in raw AVI file *without* processing entire file?

This question and answer cover how to get the framecount and keyframe count from an AVI file, which is very useful. I've got a raw AVI file and want to count the number of keyframes (equivalent to non-dropped frames for raw AVI), but it takes a long time to process through a raw AVI file. There is s...
aggieNick02
1

votes
2

answer
90

Views

D3D texture to NVIDIA Media Foundation Encoder

I want to encode a ARGB D3D11 texture by the NVIDIA H.264 Encoder MFT directly.But i found this MFT's input type must YUV format like NV12. So i have to map texture to memory then transform to NV12.Is there any way can avoid memory copying?Or how can i transform a ARGB texture to NV12 texture no mem...
breaker00
1

votes
0

answer
182

Views

ffmpeg low speed and wrong bitrate

My goal is to compress video making it's bitrate lower. For experiment I used following command ffmpeg -ss 00:00:00 -i V.mkv -to 00:10:00 -c:a copy -b:v 7500k -maxrate 7500k -minrate 5500k -bufsize 1M V7500.mkv 1. What are possible reasons speed of conversion was close to 1.0x utilizing all 8 cores?...
ngc3o34
1

votes
0

answer
227

Views

H264/MP4 live stream from ffmpeg gets delayed

I’m transcoding a MJPEG stream to H264/MP4 using ffmpeg. As client I’m using VLC. I use this command line: ffmpeg \ -use_wallclock_as_timestamps 1 \ -f mjpeg \ -i 'http://127.0.0.1:4100/getMjpegStream=L' \ -f mp4 \ -vcodec libx264 \ -movflags frag_keyframe+empty_moov+faststart \ -tune zerolatenc...
paunescuionica
1

votes
0

answer
85

Views

how to create an http live stream ( broadcast ) from a segmented mp4 without sound defects

tl;dr - concatenating independent short videos to an hls playlist creates sound defects. A 'Tick' sound at the concatenation point. How do I avoid it ? I have a process that emits a 4 second MOV video every 3 seconds. Those 4s videos are segments of a longer video. But they are completely independen...
user3621958
1

votes
2

answer
2.9k

Views

How use asp.net get video duration

using Microsoft.DirectX.AudioVideoPlayback; Video vvideo = new Video(FileUpload.FileName.ToString()); StringBuilder sb = new StringBuilder(); sb.Append(duration.toString()); error message; “Installed an access attempt was made to the application domain.” “vvideo” instance is created error ms...
mhmt
1

votes
2

answer
545

Views

Best video codec to encode analog graph information / AVI

I have an application that captures analog measurements several times a second - to give you an idea how it looks like - here is a sample frame (obviously the curve changes as the measurements chage): alt text http://img829.imageshack.us/img829/3692/curve.png I need this application to record these...
m1tk4
1

votes
1

answer
58

Views

Is there something wrong with my video code?

Your browser does not support the video tag. It won't work in any browser.
Trent
1

votes
1

answer
632

Views

How can I represent avi video as set of matrices using Python?

I have video files written in avi format and I would like to analyze these videos using Python. For that I would like to represent every frame of the video as a 2D matrix. How can I do that? Google search gives me PyMedia as a way to go? Is it really the best choice or there some other approaches th...
Roman
1

votes
1

answer
123

Views

Serving user uploaded video

I am currently implementing a video upload service on a website. Video is not the primary function of the website but the users will upload a fair amount. The 'problem' is that users are uploading all kinds of formats to the server and Flowplayer which I'm using naturally can't handle all of them. C...
miccet
1

votes
1

answer
4k

Views

Creating video from scratch in iOS

I've got an app where the user shoots some video, enters a title for it, and picks a music track. I've got the music dubbing working with AVMutableComposition, but the titling is a bad hack -- just a view overlaid on the MPMoviePlayerViewController. And while the user can upload the dubbed video to...
David Moles
1

votes
2

answer
1.4k

Views

Converting G2M3 and G2M2 encoded Videos (GoToMeeting Videos) to a video type that FFMPEG supports

I'm developing a PHP application that uses FFMPEG-PHP to split videos and convert them to FLV. And I ran into this problem : FFMPEG does not support G2M3 or G2M2 encoded videos, and I have to make the process of splitting and converting videos effortless for the client, I don't want him to convert t...
KarimMesallam
1

votes
1

answer
168

Views

How to get the _current_ duration of a video with FFMPEG? (Not meta)

I tried ffmpeg -i myfile, while myfile is partially downloaded. FFMPEG gives me the whole file duration, not of the downloaded part. Can I see this with FFMPEG or another tool? Answer: With MediaInfo.
blez
1

votes
1

answer
213

Views

How to capture encoded video frames on WP Mango?

To send those frame to network, for instance. I know, that CaptureSource and VideoSink can give you access to video frames, but are they encoded already? And if not, can I use hardware accelerated encoding ( which is required by MS for all the WP7 device vendors ) somehow?
fspirit
1

votes
1

answer
2.7k

Views

Programatically comparing two MP4 (mpeg-4) videos

I'm working on software that will create MP4 videos using the MLT Framework. I need to create some unit tests for my processes that will compare a pre-testing creating video with the one that is created. I am using Python for the code. I need to ensure that the content of the videos is the same....
Mark S.
1

votes
1

answer
770

Views

draw graph of encoded bit rate of video vs play location

I am trying to measure the variation in the bandwidth required when a video is played over the network. For this purpose, i need to make a graph of the bandwidth required to play the video continuously at any time during the video. I tried processing the video with gstreamer but it gives me the bit...
ConfusedAboutCPP
1

votes
1

answer
1.3k

Views

Encoding videos for use with Adobe Live Streaming

I have an original video coded at 20Mbps, 1920x1080, 30fps and want to convert it down to be 640x480 30fps at a range of (3 different) bitrates for use by Adobe Live Streaming. Should I use ffmpeg to resize and encode at the 3 bitrates then use f4fpackager to create the f4m f4f and f4x files or just...
FractalDoctor
1

votes
1

answer
1.1k

Views

Transcode/remux FLV and stream on the fly

I'm trying to teach myself a bit about video streaming and transcoding, with some Roku app development on the side. I have a number of video files (mostly in FLV format (H.264/AAC)) that I would like to stream to a client, which in this case is a Roku box (that accepts MP4 (H.264/AAC) and HTTP Live...
Threeve
1

votes
1

answer
2.1k

Views

av_write_frame fails when encoding a larger audio file to .mpg

I am encoding live rendered video data and an existing .wav file into an mpg-file. To do that I first write all audio frames, and then the video frames as they come in from the render engine. For smaller .wav files (< 25 seconds), everything works perfectly fine. But as soon as I use a longer .wav f...
TheSHEEEP
1

votes
1

answer
244

Views

Optimizing structural overhead for videos processed by Encoding.com

Running the mediastreamvalidator tool on some HLS videos (MPEG-TS files indexed by M3U8's) we had processed by Encoding.com, we found a pretty high structural overhead on our files especially on low-medium bitrates. While this is not atypical, we were quite surprised to find some sites able to reduc...
Dev Kanchen
1

votes
2

answer
4k

Views

FFmpeg - C - Encoding video - Set aspect ratio

I am decoding a video from mp2 and encoding to mp4. The original file: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9] The resulting file: Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 720x576 [SAR 1:1 DAR 5:4] As you can see, the resolution has...
Knossos
1

votes
1

answer
1.9k

Views

How to convert YUV frames to a video?

How to convert set of YUV frames to a Video and later convert the video to YUV frames without any loss using C ?(I dont want to convert it to RGB in between)
moooni moon
1

votes
1

answer
434

Views

How multiple DirectShow buffers work?

DirectShow filters allow to allocate multiple buffers in DecideBufferSize. I have a transform filter that encodes raw frames with x264, generating 1+ NALs to pass upstream to next filter. I thought that allocating a pool of buffers for NALs can be a solution, but I can't figure out how to access all...
Dan Tumaykin
1

votes
1

answer
1.5k

Views

Is it possible to remove start codes using NVENC?

I'm using NVENC SDK to encode OpenGL frames and stream them over RTSP. NVENC gives me encoded data in the form of several NAL units. In order to stream them with Live555 I need to find the start code (0x00 0x00 0x01) and remove it. I want to avoid this operation. NVENC has a sliceOffset attribute wh...
Sergio Basurco
1

votes
1

answer
1.6k

Views

Manually calculate h264 video bitrate

I have a problem. I'm currently trying to manually calculate the bitrate of a .mkv video I want to encode to get a specific file size so I can use that in my batch file. Size I want the clip to be: 1900 MB -- Duration: 2587 seconds -- Audio bitrate: 1509 kbps My current calculation is: 1900MB*1024...
user3033137
1

votes
1

answer
1.3k

Views

Android MediaCodec change resolution

I am passing the output of a MediaExtractor into a MediaCodec decoder, and then passing the decoder's output buffer to an encoder's input buffer. The problem I have is that I need to reduce the resolution from the 1920x1080 output from the decoder to 1280x720 by the time it comes out of the encoder....
user3265561
1

votes
2

answer
763

Views

Increase Duration of a video FFMPEG C++

I am using the code from the samples of FFmpeg which encodes a picture into a video. All I want to do is to give it a series of pictures and it gives me a video with each picture is taking one second`Code below is just taking one picture from my file system & creating video from it AVCodec *codec; A...
Shahroz Tariq
1

votes
1

answer
1.4k

Views

How to change DAR of a video to 11:9 by using FFMPEG?

I want to scale video to 176x144 with DAR 11:9 but I can't. It always sets DAR 4:3 and SAR 12:11. I use this command: ffmpeg -i input.mp4 -y -r 12 -filter:v 'scale=iw*min(176/iw\,144/ih):ih*min(176/iw\,144/ih),pad=176:144:(176-iw*min(176/iw\,144/ih))/2:(144-ih*min(176/iw\,144/ih))/2,setdar=11:9' -vc...
Alexandr
1

votes
1

answer
104

Views

Does a scencut feature of H.264 increases a file size?

When I use this command: ffmpeg -i original.mp4 -codec:v:0 libx264 -b:v 650k -crf 21 -minrate:v 0k -maxrate:v 750k -bufsize:v 5000k -r 30 -preset slow -x264opts 'no-scenecut' -vcodec libx264 -force_key_frames 'expr:bitor(eq(t,0),gte(t,prev_forced_t+5))' -f mp4 test.mp4 I always get smaller file siz...
Alexandr
1

votes
1

answer
3.1k

Views

Encode video with H.265 HEVC in Android

Because of android's lack of support for H.265 HEVC, what would be the best option for allowing the MediaRecorder to encode H.265 HEVC? Can this be done without using the deprecated Camera class? I intend to use the camera2 API exclusively, if possible.
Merc
1

votes
2

answer
313

Views

Android - Encode a video while decoding it

I modify a video with glsl shaders, using a SurfaceTexture and OpenGL ES 2.0. I can also encode the result video with MediaCodec. The problem is that the only way I've found to decode the video is with MediaPlayer and SurfaceTexture, but MediaPlayer doesn't have a frame by frame decoding option. So...
Xys

View additional questions