mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-18 22:00:00 +01:00
Update HowtoVideoCodecs.md
should be md compliant
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
## Video files
|
## Video files
|
||||||
|
### A video file consists out of TWO seperate elements
|
||||||
A video file consists out of TWO seperate elements:
|
|
||||||
|
|
||||||
* container
|
* container
|
||||||
* codec
|
* codec
|
||||||
|
|
||||||
@@ -9,29 +7,25 @@ The container holds the digitally encoded data and the codec is capable of decod
|
|||||||
|
|
||||||
Veejay supports the AVI and the Quicktime container, with the following codecs:
|
Veejay supports the AVI and the Quicktime container, with the following codecs:
|
||||||
|
|
||||||
Quicktime:
|
### Quicktime
|
||||||
|
|
||||||
* mpjeg,mjpa,jpeg,dmb1,mpng,png
|
* mpjeg,mjpa,jpeg,dmb1,mpng,png
|
||||||
* dvsd, dv, dvcp, dvhd
|
* dvsd, dv, dvcp, dvhd
|
||||||
|
|
||||||
AVI
|
### AVI
|
||||||
|
|
||||||
* mjpeg, mjpa,jpeg,jfif,dmb1,mpng,png
|
* mjpeg, mjpa,jpeg,jfif,dmb1,mpng,png
|
||||||
* dvsd, dv, dvcp, dvhd
|
* dvsd, dv, dvcp, dvhd
|
||||||
* i420, i422, yv16, hfyu
|
* i420, i422, yv16, hfyu
|
||||||
|
|
||||||
Raw DV
|
### Raw DV
|
||||||
|
|
||||||
* PAL / NTSC dvsd
|
* PAL / NTSC dvsd
|
||||||
|
|
||||||
Veejay can only deal with video files that consists entirely out of whole images (only I-frames).
|
Veejay **can only deal** with video files that consists entirely out of whole images, **only I-frames**.
|
||||||
|
|
||||||
Which codec to use ¶
|
## Which codec to use
|
||||||
|
|
||||||
MotionJPEG (mjpeg) is the veejay codec of choice for most applications, it gives you a good tradeof between compression, quality and compatibility. If you want speed, use AVI yv16 or i420 while recording to new samples.
|
MotionJPEG (mjpeg) is the veejay codec of choice for most applications, it gives you a good tradeof between compression, quality and compatibility. If you want speed, use AVI yv16 or i420 while recording to new samples.
|
||||||
|
|
||||||
Tools that support MJPEG:
|
### Tools that support MJPEG:
|
||||||
|
|
||||||
* http://cvs.cinelerra.org/Cinelerra
|
* http://cvs.cinelerra.org/Cinelerra
|
||||||
* http://www.kinodv.org/Kino
|
* http://www.kinodv.org/Kino
|
||||||
* http://ronald.bitfreak.net/lvs/Linux video studio
|
* http://ronald.bitfreak.net/lvs/Linux video studio
|
||||||
@@ -39,10 +33,8 @@ Tools that support MJPEG:
|
|||||||
* http://www.mplayerhq.huMplayer, and mencoder
|
* http://www.mplayerhq.huMplayer, and mencoder
|
||||||
* http://lives.sf.net Lives
|
* http://lives.sf.net Lives
|
||||||
|
|
||||||
Wich resolutions to use ¶
|
## Wich resolutions to use
|
||||||
|
|
||||||
Veejay can do:
|
Veejay can do:
|
||||||
|
|
||||||
* high definition
|
* high definition
|
||||||
* pal: 720x576
|
* pal: 720x576
|
||||||
* ntsc: 720x480
|
* ntsc: 720x480
|
||||||
@@ -51,32 +43,27 @@ Veejay can do:
|
|||||||
|
|
||||||
If you load multiple video files on the commandline, make sure that all files have the same resolution and audio properties.
|
If you load multiple video files on the commandline, make sure that all files have the same resolution and audio properties.
|
||||||
|
|
||||||
How to convert ¶
|
## How to convert
|
||||||
|
### You can use FFMpeg
|
||||||
|
|
||||||
You can use FFMpeg:
|
̀`$ ffmpeg -i input-file -vcodec mjpeg -pix_fmt yuvj422p -q:v 0 output-file.avi`
|
||||||
|
|
||||||
$ ffmpeg -i input-file -vcodec mjpeg -pix_fmt yuvj422p -q:v 0 output-file.avi
|
|
||||||
|
|
||||||
Optionally add PCM 16bit audio, 44.1/48.0 Khz, 2 channels, 8 bits per channel
|
Optionally add PCM 16bit audio, 44.1/48.0 Khz, 2 channels, 8 bits per channel
|
||||||
|
|
||||||
ffmpeg -i input-file -vcodec mjpeg -s 128x128 -pix_fmt yuvj422p -acodec pcm_s16le -ar 44100 -ac 2 output-file.avi
|
`$ ffmpeg -i input-file -vcodec mjpeg -s 128x128 -pix_fmt yuvj422p -acodec pcm_s16le -ar 44100 -ac 2 output-file.avi`
|
||||||
|
|
||||||
Or, you can use mplayer:
|
### Or, you can use mplayer
|
||||||
|
`$ mencoder -ovc lavc -oac pcm -lavcopts vcodec=mjpeg -o <outputfile> <inputfile>`
|
||||||
|
|
||||||
$ mencoder -ovc lavc -oac pcm -lavcopts vcodec=mjpeg -o <outputfile> <inputfile>
|
### To scale on the fly, use
|
||||||
|
`$ mencoder -ovc lavc -oac pcm -lavcopts vcodec=mjpeg -vf scale=352:288 -o <outputfile> <inputfile>`
|
||||||
To scale on the fly, use:
|
|
||||||
|
|
||||||
$ mencoder -ovc lavc -oac pcm -lavcopts vcodec=mjpeg -vf scale=352:288 -o <outputfile> <inputfile>
|
|
||||||
|
|
||||||
consult mplayer documentation about other options, such as cropping and filtering out blocks in video.
|
consult mplayer documentation about other options, such as cropping and filtering out blocks in video.
|
||||||
|
|
||||||
a quick hint for bulk encoding a bunch of capture.dv files:
|
### a quick hint for bulk encoding a bunch of capture.dv files
|
||||||
|
`$ for i in `ls *dv`;do mencoder -ovc lavc -oac pcm -lavcopts vcodec=mjpeg -o `echo $i | sed s/.dv/.avi/` $i; done;`
|
||||||
$ for i in `ls *dv`;do mencoder -ovc lavc -oac pcm -lavcopts vcodec=mjpeg -o `echo $i | sed s/.dv/.avi/` $i; done;
|
|
||||||
|
|
||||||
What is this dummy mode ¶
|
|
||||||
|
|
||||||
|
## What is this dummy mode
|
||||||
Dummy mode opens up a 'color stream' to start veejay without a video file.
|
Dummy mode opens up a 'color stream' to start veejay without a video file.
|
||||||
|
|
||||||
If you use a video file, veejay will take that file's properties as default settings for the whole session.
|
If you use a video file, veejay will take that file's properties as default settings for the whole session.
|
||||||
|
|||||||
Reference in New Issue
Block a user