Rechercher dans ce blog

Affichage des articles dont le libellé est transcode. Afficher tous les articles
Affichage des articles dont le libellé est transcode. Afficher tous les articles

mercredi 9 décembre 2015

Commandes Vidéo diverses ffmpeg mencoder avisplit avimerge transcode

How can I fix AVI files with a broken index or bad interleaving?


To avoid having to use -idx to be able to seek in AVI files with a broken index or -ni to play AVI files with bad interleaving, use the command

mencoder -forceidx -nobps  -ovc copy -oac copy -o outidx.avi input.avi

to copy the video and audio streams into a new AVI file while regenerating the index and correctly interleaving the data.

Of course this cannot fix possible bugs in the video and/or audio streams

transcode -i input.avi -P 1 --avi_limit 128 -b 128  -o out.avi

Réaligner chunks vidéo et audio pour qu'il n'y ait pas de désynchronisation après le split


transcode -i input.avi -P1 -N 0x55 -y raw -o out.avi

Split

avisplit -i out.avi -o base -s 512

TOUT EN UNE SEULE OPERATION avec transcode

transcode -i input.avi -P1 -N 0x55 -y raw -o out --avi_limit 512

ffmpeg -threads N


ffmpeg -i input.mp4 -y -threads 2 -map 0.0:0.0 -f avi -vcodec copy -b 940 -aspect 4:3 -s 640x480 -r pal -g 240 -me epzs -qmin 2 -qmax 15 -acodec mp3 -ab 128 -ar 48000 -ac 2 -map 0.1:0.1 -benchmark out.avi

MUXING


mencoder -oac copy -ovc copy  -o output_movie.avi \
    -audiofile input_audio.mp2 input_video.avi

mencoder -of lavf -ovc copy -oac mp3lame -forceidx -lameopts cbr:br=128 -o outmencoder.avi -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames input.mp4

Pour joindre 2 fichiers avi


L'option -c set pour dropper des frames s'il manque de l'audio

avimerge -o bigvideo.avi -c -i avi1 avi2 avi3

transcode / Filter Plugins / Filter Ascii


$ transcode ... -J ascii=font:/default8x9.psf:pallete:/colors.pal


See



https://bitbucket.org/achurch_/transcode/wiki/Filter%20Plugins/Filter%20Ascii


Capabilities

VideoAudioRGBYUVYUV422multiple instancesprocessing typeframes needed
yesnoyesyesnoyesPOST1

Introduction

This filter renders a video in colored ascii-art !
Unkike current 'aalib' output drivers (that you will find in most players), the output of this filter is not display-dependent. This means that your ascii-art rendered video will be playable with any other player !
This filter is a video, post-process only filter. You can use it in both mono or multi-threaded mode. Please notice it supports RGB and YUV color spaces.

Requirements

This filter needs the 'aart' package as runtime dependency. You can download this package at http://aart.sourceforge.net/ (see INSTALL file for more details).
'aart' comes with a few data stuff. In particular, you will be provided a color pallete (colors.pal). This file is a matching index between your input video colors and your output ascii-art video colors. Please notice that you can define your own color pallete, but this is not a trivial task. In most of cases, the provided pallete will work properly.
'aart' also comes with some default fonts but you are free to use your own ones (ie installed on your system).

Warning

In version 0.5 (version documented here), this filter uses the aart package, which provides a very slow process. This means rendering a video in colored ascii-art will take a very long time. The 'libcaca' team has been contacted for a feature add. Therefore, filter_ascii should be ported to 'libcaca' pretty soon (which will decrease dramaticly process time). So, please only consider short video samples for the moment.

Parameters

Default values are shown in [green] in square brackets.
help Display a short help
Display a short description of the filter and its arguments.
font PSF font file [default8x9.psf]
A valid font file (*.psf). Font files that come with the aart package work well.
pallete PAL palette file [colors.pal]
A valid color pallete file (*.pal). The color pallete files that comes with the aart package works well.
threads Use multiple-threaded routine (0-oo) [0]
Use multiple-threaded routine for frame-processing. Recommended value for this option is 1, so don't use this option unless you know what you are doing.
buffer Use `aart` internal buffer for output
Use 'aart' internal buffer for ouput. Recommended value for this option is 'off', so don't use this option unless you know what you are doing.

Usage Examples

  • Render a video sample in colored ascii-art :
$ transcode ... -J ascii=font:/default8x9.psf:pallete:/colors.pal