Displaying 12 results from an estimated 12 matches for "pix_fmt".
2004 Nov 20
0
ffmpeg2theora start and end time support
...nd;
int frame_bottomBand;
int frame_leftBand;
int frame_rightBand;
int video_x;
int video_y;
int frame_x_offset;
int frame_y_offset;
int start_time; /* In seconds */
int end_time; /* In seconds */
}
*ff2theora;
/**
* Allocate and initialise an AVFrame.
*/
AVFrame *alloc_picture (int pix_fmt, int width, int height){
AVFrame *picture;
uint8_t *picture_buf;
int size;
picture = avcodec_alloc_frame ();
if (!picture)
return NULL;
size = avpicture_get_size (pix_fmt, width, height);
picture_buf = av_malloc (size);
if (!picture_buf){
av_free (picture);
return NULL;
}
avpicture...
2007 Jun 26
0
2 commits - libswfdec/swfdec_codec_ffmpeg.c
...;
SwfdecBuffer *
@@ -221,12 +223,19 @@ swfdec_video_decoder_ffmpeg_decode (Swfd
SWFDEC_WARNING ("error decoding frame");
return NULL;
}
+ if (codec->sws == NULL) {
+ codec->sws = sws_getContext (codec->ctx->width, codec->ctx->height, codec->ctx->pix_fmt,
+ codec->ctx->width, codec->ctx->height, PIX_FMT_RGB32, 0, NULL, NULL, NULL);
+ if (codec->sws == NULL) {
+ SWFDEC_ERROR ("Could not get conversion context");
+ return NULL;
+ }
+ }
ret = swfdec_buffer_new_and_alloc (codec->ctx->width * codec->...
2011 Jan 21
1
theora_encode is adding vertical pixels
I am using theora_encode along with ffmpeg:
ffmpeg -an -s 1920x1080 -r 24 -i bigbuckbunny.mp4 -vcodec rawvideo \
-pix_fmt yuv420p -f rawvideo - 2>/dev/null \
| ffmpeg -an -f rawvideo -s 1920x1080 -r 24 -i - -f yuv4mpegpipe -
2>/dev/null \
|* theora_encode /dev/stdin 2>/dev/null *| ffmpeg -y -f ogg -i - \
-f mp4 -i bigbuckbunny.mp4 -map 0:0 -map 1:1 -vcodec copy \
-acodec libvorbis -ab 256000 -f ogg bigbuckbun...
2010 Jan 13
3
Live webcam stream with Theora
...owser
doesn't support the <video> tag. The URL is here:
http://media.basilgohar.com/stream/
There's been a lot of talk about live streaming and low bitrate
streams. Here is my command line (I've posted this before):
time ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -pix_fmt
yuv420p -f yuv4mpegpipe - 2>/dev/null |
~/packages/theora/examples/encoder_example --video-rate-target 150
--soft-target - | tee /home/basil.gohar/Videos/webcam-capture-`date
+%F-%T`.ogv | oggfwd -d 'Live webcam view of me at work' -g 'Webcam' -n
'Basil at work' aalimraan...
2019 May 15
6
[Bug 110679] New: va-api scaling with nv50-class cards incomplete?
...DeviceContext @ 0xaef7d00] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0xaef7d00] VAAPI driver: Mesa Gallium driver 19.2.0-devel
for NV92.
[AVHWDeviceContext @ 0xaef7d00] Driver not found in known nonstandard list,
using standard behaviour.
[skip]
[Parsed_format_0 @ 0xaf4dcc0] Setting 'pix_fmts' to value 'nv12'
[Parsed_scale_vaapi_2 @ 0xb005a40] Setting 'w' to value '240'
[Parsed_scale_vaapi_2 @ 0xb005a40] Setting 'h' to value '120'
[graph 0 input from stream 0:0 @ 0xb006300] Setting 'video_size' to value
'1280x720'
[graph 0 inp...
2009 Jun 29
0
ffmpeg2theora tool
...*********:: ogv container test matrix::
*************************
:: Compress with libtheoraffmpeg2theora --optimize -v 8 -o sync.ogv
sync.720x480_30Hz_P420.mov
:: Mux all ogg video container variationsoggzmerge sync2.ogg sync.ogv
-o sync2.ogv
:: Compute PSNRffmpeg -y -i sync2.ogv -vcodec rawvideo -pix_fmt
yuv420p sync_ogv.720x480_30Hz_P420.yuvpsnr -s 720 480
sync.720x480_30Hz_P420.yuv sync_ogv.720x480_30Hz_P420.yuv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/ogg-dev/attachments/20090629/715f8cd8/attachment.htm
2004 Nov 20
0
ffmpeg2theora start and end time support - patch
...; will not work
+ //as we donot increment frame_number in audio section.
+ frame_number++;
//FIXME: better colorformat transformation to YUV420P
/* might have to cast other progressive formats here */
//if(venc->pix_fmt != PIX_FMT_YUV420P){
@@ -644,6 +665,8 @@
"\t --audiobitrate,-A\t[45 to 2000] encoding bitrate for audio\n"
"\t --samplerate,-H\tset output samplerate in Hz\n"
"\t --nosound\t\tdisable the sound from input\n"
+ "\t --endtime,-e\t\tend encoding at this tim...
2007 Sep 05
0
5 commits - libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_player.c libswfdec/swfdec_video.c
...!= codec->ctx->width ||
+ codec->sws_height != codec->ctx->height)) {
+ sws_freeContext (codec->sws);
+ codec->sws = NULL;
+ }
if (codec->sws == NULL) {
codec->sws = sws_getContext (codec->ctx->width, codec->ctx->height, codec->ctx->pix_fmt,
codec->ctx->width, codec->ctx->height, PIX_FMT_RGB32, 0, NULL, NULL, NULL);
@@ -235,6 +256,8 @@ swfdec_video_decoder_ffmpeg_decode (Swfd
SWFDEC_ERROR ("Could not get conversion context");
return NULL;
}
+ codec->sws_width = codec->ctx->width;...
2009 Oct 15
7
Theora for webcam/conferencing use
...nking of coupling --soft-target along
with --video-quality to get a minimum video quality, which might be the
key to what I am asking.
Anyone else have some thoughts on this?
For those that are interested, here are my command-line:
> time ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -pix_fmt
> yuv420p -f yuv4mpegpipe - 2>/dev/null |
> ~/packages/theora/examples/encoder_example --video-rate-target 150
> --soft-target - | tee /home/basil.gohar/Videos/webcam-capture-`date
> +%Y%m%d`.ogv | oggfwd -d 'Live webcam view of me at work' -g 'Webcam'
> -n 'Ba...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...;
SwfdecBuffer *
@@ -221,12 +223,19 @@ swfdec_video_decoder_ffmpeg_decode (Swfd
SWFDEC_WARNING ("error decoding frame");
return NULL;
}
+ if (codec->sws == NULL) {
+ codec->sws = sws_getContext (codec->ctx->width, codec->ctx->height, codec->ctx->pix_fmt,
+ codec->ctx->width, codec->ctx->height, PIX_FMT_RGB32, 0, NULL, NULL, NULL);
+ if (codec->sws == NULL) {
+ SWFDEC_ERROR ("Could not get conversion context");
+ return NULL;
+ }
+ }
ret = swfdec_buffer_new_and_alloc (codec->ctx->width * codec->...
2007 Apr 06
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_codec_video.c
...ight, guint *rowstride)
{
- SwfdecCodecFFMpegVideo *codec = codec_data;
+ SwfdecVideoDecoderFFMpeg *codec = (SwfdecVideoDecoderFFMpeg *) dec;
int got_image;
SwfdecBuffer *ret;
AVPicture picture;
@@ -270,23 +227,50 @@ swfdec_codec_ffmpeg_video_decode (gpoint
img_convert (&picture, PIX_FMT_RGB32,
(AVPicture *) codec->frame, codec->ctx->pix_fmt,
codec->ctx->width, codec->ctx->height);
+ *width = codec->ctx->width;
+ *height = codec->ctx->height;
+ *rowstride = codec->ctx->width * 4;
return ret;
}
static void
-swfdec_codec...
2007 Aug 23
0
23 commits - doc/.gitignore doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_keys.c libswfdec-gtk/swfdec_gtk_keys.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am
...frame");
return NULL;
}
+ if (got_image == 0) {
+ SWFDEC_WARNING ("error: did not get an image from decoding");
+ return NULL;
+ }
if (codec->sws == NULL) {
codec->sws = sws_getContext (codec->ctx->width, codec->ctx->height, codec->ctx->pix_fmt,
codec->ctx->width, codec->ctx->height, PIX_FMT_RGB32, 0, NULL, NULL, NULL);
diff-tree d4d5dde0824487576861912640d9bdd0d0565af7 (from 72794f6dd88161fe9e36b11b5e6d3cd9cf86099f)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Aug 23 21:56:29 2007 +0200
end when there...