[Libav-user] Editing a video file

2014-10-14 Thread Sethuraman V
Hi All, I want to read a frame from a video file, edit it and write back the frame in replacement of the read frame. However I am finding it difficult to accomplish this. I can get a frame from the video file using ffmpeg provided examples and editing the frame/image is also done separately, the

[Libav-user] (no subject)

2015-05-13 Thread Sethuraman V
Hi All, Following is the code snippet that I am reusing from remuxing.c, but when I convert an image from YUV to RGB and again back to YUV, there are some glitches added to the video stream on the frames that went for conversion, rest of the frames are fine. Please let me know what I am missing o

[Libav-user] Image conversion from and to a video file

2015-05-13 Thread Sethuraman V
Hi All, Following is the code snippet that I am reusing from remuxing.c, but when I convert an image from YUV to RGB and again back to YUV, there are some glitches added to the video stream on the frames that went for conversion, rest of the frames are fine. Please let me know what I am missing o

[Libav-user] FFmpeg video overlay with position from an input file

2015-05-28 Thread Sethuraman V
Hi All, How to use FFmpeg video overlay function to add image logo to a MP4 video where overlay positions shall taken from an external input. Following is the command I am using to apply a logo to a video file ffmpeg -i input.mp4 -i image.png -filter_complex \ "[0:v][1:v] overlay=25:25:en

[Libav-user] FFmpeg transcoding example with h264 preset error

2015-06-17 Thread Sethuraman V
Hi, I am using transcoding example provided with FFmpeg to apply a filter to a h264 codec file. I have set the preset before opening the codec as given below if (dec_ctx->codec_id == AV_CODEC_ID_H264) { av_opt_set(dec_ctx->priv_data, "preset", "slow", 0); } But still avcodec_open2 returns "