Quantcast FFmpeg: FFmpeg and Inter/Intra Matrices - digitalFAQ.com Forums [Archives]
  #1  
10-31-2003, 05:09 AM
vidar vidar is offline
Free Member
 
Join Date: Oct 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vidar
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-
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
10-31-2003, 05:50 AM
vidar vidar is offline
Free Member
 
Join Date: Oct 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vidar
News flash: Nevermind the patch, just update your ffmpeg CVS.
Reply With Quote
  #3  
10-31-2003, 08:30 AM
vidar vidar is offline
Free Member
 
Join Date: Oct 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vidar
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-
Reply With Quote
  #4  
10-31-2003, 03:17 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Vidar,

The matrix looks correct

-kwag
Reply With Quote
  #5  
10-31-2003, 08:48 PM
Fl0ppy Fl0ppy is offline
Free Member
 
Join Date: May 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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


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?
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
FFMPEG: Changing INTER portion values in the matrix for ffvfw poerschr Video Encoding and Conversion 2 02-19-2004 08:12 PM
FFMPEG: Do ffvfw and mencoder/ffmpeg give the same results? Razorblade2000 Video Encoding and Conversion 4 02-06-2004 04:23 PM
FFMPEG: FFMPEG status on MPEG-2 encoding bilu Video Encoding and Conversion 3 01-31-2004 06:18 AM
FFMPEG: Encoding Audio: toolame,mp2enc or ffmpeg Razorblade2000 Video Encoding and Conversion 0 10-18-2003 03:04 PM
BBMpeg: Intra and Non Intra matrices question. Gaudi Video Encoding and Conversion 2 01-04-2003 08:44 AM

Thread Tools



 
All times are GMT -5. The time now is 03:46 AM  —  vBulletin Jelsoft Enterprises Ltd