Using templates in linux (transcode/ffmpeg)
Hello,
Has someone succesfully created a kvcd or ksvcd with one off the linuxtools like transcode or ffmpeg? I've been trying for the past 2 days, but I don't know how to pass the right options to transcode for the ksvcd/120min. template. Another option would be ffmpeg for creating kvcd, the newer versions have excelent quality (option -hq) and are bleeding fast (4x tmpgenc), but only makes mpeg1 video. Can someone help me out? |
Hi japie,
You need to recompile the encoders with KVCD's Q. Matrix. I believe the GOP can be set in ffmpeg. Not sure about transcode. Just get the source for ffmpeg and change the matrix :) Here's the matrix Code:
Intra: -kwag |
Quote:
But I looked at the source and found mpeg12data.h with: Code:
const int16_t ff_mpeg1_default_intra_matrix[64] = { There's also a possibility to define the gop_size but how do I "extract" the data I need from the tmpgenc_sheets? |
Quote:
Quote:
I'm not sure if the tar file in the CVS is compilable in Windows environment. Maybe I'll get my hands dirty with the code, and see if it compiles :cool: -kwag |
Quote:
Maybe I'am a bit rude now, but I'am posting the command line ffmpeg options so if it won't compile, you can atleast see what your missing ;) Code:
Main options are: It reads from file or video device and spits it's data on the web in a variety off different formats on rtsp, http, whatever U want. But how do I place the GOP size here? I started with the KVCD-CQ-352x576-_PAL_-PLUS.mcf and I gues I have to use: 352x576 800 kbits/sec. ratecontrol buffer size 40K. gop size ? I don't know, will try again tomorrow. b.t.w; compiling with the new matrix went fine, it's in place and (hopefully) working. |
Right there it is :arrow: "-g gop_size set the group of picture size" :)
So the parameter in the command line would be -g 24 :wink: Edit: Do you have a Windows executable :?: -kwag |
Quote:
It is possible to build it under windows using MinGW, I yust downloaded it and will try to build it 4 U, but don't know or it will run stand-alone on win. There are win-project who use the codec doo. I decoded a 10 min. divx with the new matrix in 4 min. with a terrible result: http://japie.is.dreaming.org/ftp/test.jpg :( |
Quote:
-kwag |
Quote:
I tryed to compile ffmpeg with mingw32 but didn't suxeed :( maybe you have more luck using you native windowz compiler. |
@japie: FWIW I'd be interested in a Win32 build of ffmpeg as well, should you ever make one :)
|
Quote:
I tryed to build it but did not suxeed. On the other hand, the binairy isn't available but the actual coding part is available 4 windowz as libavcodec and is used in quite a lott apps. like ffdshow. So if those guys can port the lib, the bin is portable as well too (I think). I have no clue. My knowledge doesn't go any further than doing a ./configure and make. |
Quote:
http://zebra.fh-weingarten.de/~maxi/.../msg00035.html Where can I find the matrix for ksvcd? |
Quote:
It's the same matrix for all resolutions :) http://www.kvcd.net/e107/article.php?21.255 -kwag |
Quote:
I will try to make an kvcd and an ksvcd and will post my findings and used commandline for next generations. ;) |
Hello guys,
Here's how to make a ksvcd_pal_120min under linux in a bleeding fast 8 frames per seconds :( (but it works) Youll need transcode and mplayer 4 this. Create 3 files and place them in /usr/lib/transcode ksvcd.prof Code:
gop_size = 25 Code:
8 9 12 22 26 27 29 34 Code:
16 18 20 22 24 26 28 30 Code:
transcode -x mplayer -i "$1" -y mpeg -Fs,/usr/lib/transcode/ksvcd.prof -E 44100 -b 128 -Z 528x576 -j -56 -o "ksvcd" Run from comandline: mkksvcd /path/to/your/file.avi and go to bed, wake up go to your work, take a shower, go to bed again and optionaly have sex and maybe the next morning you can burn the thing :) |
Hi japie,
Aren't your bitrates inverted :cool: Code:
max_bitrate = 64000.0 Also, remove the "cat" from the "cat intra.txt" ( we don't want to type that line ;) ) -kwag |
Quote:
Anyway, I sucsesfuly created the streams only one problem... I have a video stream of 600Mb. and a audio stream of 90Mb. but after multiplexing I have a 950Mb. video, that doesn't fit on a cd :O Also I did some benchmarks in vcd format. (to show how fast ffmpeg is, altough it's unuseable for kvcd at the moment) Testvideo reloaded_superbowl.avi 01:02 VIDEO: [DX50] 640x480 24bpp 24,72 fps 1175,6 kbps (143,5 kbyte/s) AUDIO: [MP3] 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128,0 kbit) benchmarks: ffmpeg 00:15 mpeg mpeg2enc 01:43 m1v + mp2 bbmpeg 01:39 m1v + mp2 tmpgenc 00:59 mpeg mainconcept 00:20 mpeg Nice to see that an opensource project like ffmpeg beets the mainconcept encoder :) |
Quote:
Quote:
I'm very happy coz i've post some weeks ago about help to make kvcd under Linux. If we work together I think it will be possible. I've read somewhere that someone is porting avisynth under Linux. 'Z |
Quote:
I used tmpgenc_mplex_variable_bitrate and alzwell now. Quote:
These were creating a standard vcd mpeg. |
I'm going to put this on my schedule :)
I have ffmpeg and ffmpegX (graphical front end) on a PowerPC G4 running Mac OS X 10.2. I just need to get the latest source and recompile it with the matrix. I'll do some tests later today. -kwag |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.