[MPlayer-advusers] ID_DEMUXER=nuv + ID_VIDEO_FORMAT=RJPG --> no picture ?!
tormen at gmx.net
tormen at gmx.net
Mon May 28 11:47:22 CEST 2007
Hi.
> > But is more likely that the information is missing in the RJPG part,
> > because...
> > there is also the possibility to create .nuv files with DIVX inside with
> > mythtv. And these files can be played with mplayer!
> > I appended file informations about such a file.
> There are some RTJpeg nuv files that play in MPlayer, too, e.g. the
> nirvana.nuv on our samples server.
Hmm. I tried to compare the two files: (my sample.nuv with the
nirvana.nuv)
jolie / # nuvinfo /LINKS/TEMP/nirvana.nuv
Stream type 'nuv' is not an mpeg, and will
not work with this program.
Cleaning up temp files.
jolie / # mplayer -vo null -ao null -frames 0 -identify /LINKS/TEMP/nirvana.nuv
[...]
ID_DEMUXER=nuv
ID_VIDEO_FORMAT=NUV1
So there is no "ID_VIDEO_FORMAT=RJPG" ?
With which program was this nirvana.nuv file created?
> I don't think I will install MythTV with that huge amount of
> dependencies,
If I can help somehow? debug output, information, recordings?
Or maybe I can look through the source code, if you could maybe tell me
for what I would have to look (roughly)?
> but I should meet some people from MythTV at LinuxTag, so
> I hope we can make some progress there.
:-)) sounds great :-))
Greetings,
tormen.
---
> Greetings,
> Reimar Döffinger
> Index: libavcodec/nuv.c
> ===================================================================
> --- libavcodec/nuv.c (revision 9144)
> +++ libavcodec/nuv.c (working copy)
> @@ -168,6 +168,28 @@
> return orig_size;
> }
> +static uint8_t fallback_lquant[] = {
> + 8, 5, 5, 8, 12, 20, 25, 30,
> + 6, 6, 7, 9, 13, 29, 30, 27,
> + 7, 6, 8, 12, 20, 28, 34, 28,
> + 7, 8, 11, 14, 25, 43, 40, 31,
> + 9, 11, 18, 28, 34, 54, 51, 38,
> + 12, 17, 27, 32, 40, 52, 56, 46,
> + 24, 32, 39, 43, 51, 61, 60, 50,
> + 36, 46, 47, 49, 56, 50, 51, 49
> +};
> +
> +static uint8_t fallback_cquant[] = {
> + 8, 9, 12, 23, 49, 49, 49, 49,
> + 9, 10, 13, 33, 49, 49, 49, 49,
> + 12, 13, 28, 49, 49, 49, 49, 49,
> + 23, 33, 49, 49, 49, 49, 49, 49,
> + 49, 49, 49, 49, 49, 49, 49, 49,
> + 49, 49, 49, 49, 49, 49, 49, 49,
> + 49, 49, 49, 49, 49, 49, 49, 49,
> + 49, 49, 49, 49, 49, 49, 49, 49
> +};
> +
> static int decode_init(AVCodecContext *avctx) {
> NuvContext *c = avctx->priv_data;
> avctx->width = (avctx->width + 1) & ~1;
> @@ -188,6 +210,13 @@
> dsputil_init(&c->dsp, avctx);
> if (avctx->extradata_size)
> get_quant(avctx, c, avctx->extradata, avctx->extradata_size);
> + else {
> + int i;
> + for (i = 0; i < 64; i++) {
> + c->lq[i] = (fallback_lquant[i] << 8) / 177;
> + c->cq[i] = (fallback_cquant[i] << 8) / 177;
> + }
> + }
> rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq);
> return 0;
> }
> _______________________________________________
> MPlayer-advusers mailing list
> MPlayer-advusers at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-advusers
More information about the MPlayer-advusers
mailing list