digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   FFMPEG: Ffmpeg and inter/intra matrices (http://www.digitalfaq.com/archives/encode/6435-ffmpeg-ffmpeg-inter.html)

vidar 10-31-2003 05:09 AM

ffmpeg and inter/intra matrices
 
Hi all.

I have just sent a patch to ffmpeg-devel, which provides the "missing" options for setting inter/intra matrices from the command line. It should be identical to the mencoder options.

The patch is at http://vidar.gimp.org/ffmpeg/ if anyone wants to give it a shot. (Hopefully it will get into ffmpeg CVS shortly.) :)

The new options are:
-inter_matrix x,x,x,...
-intra_matrix x,x,x,...

-Vidar-

vidar 10-31-2003 05:50 AM

News flash: Nevermind the patch, just update your ffmpeg CVS. :)

vidar 10-31-2003 08:30 AM

Hmm, I hacked together a little script to make (what I believe is) kvcds.
Am I missing anything? (I stole most of the options from various mencoder command lines I found on this forum.)

Comments very welcome... :)

Code:

#!/bin/sh

if [ ! "$2" ]; then
  echo "Usage: mkkvcd inputfile outputfile"
  exit
fi

ffmpeg -i "$1" \
        -f vcd \
        -vcodec mpeg1video \
        -bf 2 \
        -mbd 2 \
        -g 50 \
        -aspect 4:3 \
        -b 1150 \
        -maxrate 2400 \
        -minrate 300 \
        -bufsize 320 \
        -strict 1 \
        -qcomp 0.5 \
        -intra_matrix "8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,
                      37,12,14,18,27,29,34,37,38,22,26,27,31,36,
                      37,38,40,26,27,29,36,39,38,40,48,27,29,34,
                      37,38,40,48,58,29,34,37,38,40,48,58,69,34,
                      37,38,40,48,58,69,79" \
        -inter_matrix "16,18,20,22,24,26,28,30,18,20,22,24,26,28,
                      30,32,20,22,24,26,28,30,32,34,22,24,26,30,
                      32,32,34,36,24,26,28,32,34,34,36,38,26,28,
                      30,32,34,36,38,40,28,30,32,34,36,38,42,42,
                      30,32,34,36,38,40,42,44" \
        -s 352x240 \
        "$2"

-Vidar-

kwag 10-31-2003 03:17 PM

Hi Vidar,

The matrix looks correct ;)

-kwag

Fl0ppy 10-31-2003 08:48 PM

Hi, looks great.
but... :(
It i do ffmpeg -i film.avi (codcec video and audio ,etc) it works.
but....
if i do ./kvcd.sh film.avi film.mpg i see in the screen a lot of:

rc buffer overflow
rc buffer overflow
rc buffer overflow

and rc buffer overflowsize=
I'm using the latest ffmpeg cvs snapshot.

and...Received signal 2: terminating. in frame=38803 :cry:


Any idea?

The conversion it's from a xvid file to kvcd.

And other thing: the mpg final it's compatible with vcd no estandard? i can burn in a cd, with k3b or nero and watch into the tv? or i need to demultpilex and remultiplex with tmpeg or tcmplex?
Thaaaanks

Se te ocurre algo kwag? :wink:


All times are GMT -5. The time now is 05:27 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.