News:

--

Main Menu

crop video via bash

Started by iacoposk8, May 01, 2013, 06:23:59 PM

Previous topic - Next topic

iacoposk8

hello to everyone! I would like to cut a video via bash and wrote:
avidemux2_cli --load 1.mp4 --run "./crop.py" --save "test.mp4"
crop.py

//AD  <- Needed to identify//
//--automatically built--

var app = new Avidemux();

//** Video **

//** Postproc **
app.video.setPostProc(3,3,0);

app.video.fps1000 = 29970;

//** Filters **
app.video.addFilter("crop","left=190","right=190","top=14","bottom=54");

//** Video Codec conf **

and i read:

mezzo@mezzo-HP-Pro-3135-Microtower-PC:~$ cd Scrivania/
mezzo@mezzo-HP-Pro-3135-Microtower-PC:~/Scrivania$ avidemux2_cli --load 1.mp4 --run "./crop.py" --save "test.mp4"
*************************
  Avidemux v2.5.4
*************************
http://www.avidemux.org
Code      : Mean, JSC, Grant Pedersen
GFX       : Nestor Di, nestordi@augcyl.org
Design    : Jakub Misak
FreeBSD   : Anish Mistry, amistry@am-productions.biz
Audio     : Mihail Zenkov
Mac OS X  : Kuisathaverat, Harry van der Wolf
Win32     : Grant Pedersen

Compiler: GCC 4.7.1 20120908 (prerelease)
Build Target: Linux (x86)
User Interface: CLI

Large file available: 1 offset

Initialising prefs
Directory /home/mezzo/.avidemux exists.Good.
Using /home/mezzo/.avidemux as base directory for prefs/jobs/...
Preferences found and loaded
[cpuCaps]Checking CPU capabilities
MMX detected
3DNOW detected
MMXEXT detected
SSE detected
SSE2 detected
SSE3 detected
[cpuCaps]End of CPU capabilities check (cpuMask :ffffffff)

[Locale] setlocale it_IT.UTF-8
[Locale] Textdomain was messages
[Locale] Textdomain is now avidemux
[Locale] Files for avidemux appear to be in /usr/share/locale
[Locale] Test: _File

Initializing Dithering tables
Initializing postproc
Deleting post proc
updating post proc
Enabled type:3 strength:3

Registering Internal Filters
******************************

[ADM_ad_plugin] Scanning directory /usr/lib/ADM_plugins/audioDecoder/
[ADM_ad_plugin] Plugin loaded version 1.0.0, name libADM_ad_opencore_amrnb.so, desc: opencore-amrnb decoder plugin for Avidemux (c) Mean/Gruntster

[ADM_ad_plugin] Plugin loaded version 1.0.0, name libADM_ad_opencore_amrwb.so, desc: opencore-amrwb decoder plugin for Avidemux (c) Mean/Gruntster

[ADM_ad_plugin] Plugin loaded version 0.0.1, name libADM_ad_Mad.so, desc: LibMad decoder plugin for avidemux (c) Mean

[ADM_ad_plugin] Plugin loaded version 0.0.1, name libADM_ad_vorbis.so, desc: libVorbis decoder plugin for avidemux (c) Mean

[ADM_ad_plugin] Plugin loaded version 0.0.1, name libADM_ad_a52.so, desc: LibAC3 decoder plugin for avidemux (c) Mean

[ADM_ad_plugin] Plugin loaded version 0.0.1, name libADM_ad_faad.so, desc: Faad2 decoder plugin for avidemux (c) Mean

[ADM_ad_plugin] Scanning done, found 6 codec
[ADM_vf_plugin] Scanning directory /usr/lib/ADM_plugins/videoFilter/
/usr/lib/ADM_plugins/videoFilter//libADM_vf_eq2_gtk.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_denoise3d.so as MPlayer denoise3d
Terminate class is calling in start
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_avsfilter.so as Filtro script di Avisynth (avsfilter), ver 0.7a(interno)
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_blackenBorders.so as Annerimento bordi
/usr/lib/ADM_plugins/videoFilter//libADM_vf_Crop_gtk.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_chromaShift_gtk.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_FluxSmooth.so as FluxSmooth
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_blendRemoval.so as Rimozione miscela
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_keepOddField.so as Mantenimento fotogrammi dispari
/usr/lib/ADM_plugins/videoFilter//libADM_vf_equalizer_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_kernelDeint.so as KernelDeint
/usr/lib/ADM_plugins/videoFilter//libADM_vf_colorYUV_gtk.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Deinterlace.so as Deinterlacciamento
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Pulldown.so as Pulldown
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Denoise.so as Rimozione rumore
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_keepEvenField.so as Mantenimento fotogrammi pari
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_hzStackField.so as Impilamento orizzontale
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_fastconvolutiongauss.so as Nitidizzazione gaussiana
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vidChromaU.so as Croma U
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_lumaonly.so as Solo luma
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_addborders.so as Aggiunta bordi neri
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_decimate.so as Decimazione Decomb
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_mSharpen.so as MSharpen
/usr/lib/ADM_plugins/videoFilter//libADM_vf_crop_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_smartSwapField.so as Inversione semiquadri intelligente
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_rotate.so as Rotazione
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_mergeField.so as Fusione semiquadri
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_reverse.so as Al contrario
/usr/lib/ADM_plugins/videoFilter//libADM_vf_eq2_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_lavDeinterlace.so as Deinterlacciatore libavcodec
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_denoise3dhq.so as MPlayer hqdn3d
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_telecide.so as Decomb Telecide
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_mSmooth.so as MSmooth di Donald Graft
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_fastconvolutionmean.so as Mean
/usr/lib/ADM_plugins/videoFilter//libADM_vf_sub_qt4.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_mpdelogo_qt4.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_equalizer_gtk.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_asharp_cli.so as asharp
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Mosaic.so as Mosaico
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_dropOut.so as Drop
/usr/lib/ADM_plugins/videoFilter//libADM_vf_mplayerResize_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_fastconvolutionmedian.so as Median
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_sub_cli.so as Sottotitolatore
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_forcedPP.so as Postprocessing forzato
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Tisophote.so as TIsophote
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_stackField.so as Impilamento semiquadri
/usr/lib/ADM_plugins/videoFilter//libADM_vf_contrast_qt4.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_asharp_gtk.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_swapuv.so as Inversione U e V
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_cnr2_cli.so as Cnr2
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_avisynthResize_cli.so as Ridimensionamento
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_blendDgBob.so as DG Bob
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_tdeint.so as TDeint
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_soften.so as Attenuazione
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_mpdelogo_cli.so as MPlayer delogo
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_eq2_cli.so as MPlayer eq2
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_vlad.so as Temporal Cleaner
/usr/lib/ADM_plugins/videoFilter//libADM_vf_chromaShift_qt4.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_cnr2_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_mcdeint.so as mcDeinterlace
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_resampleFps.so as Ricampionamento fps
/usr/lib/ADM_plugins/videoFilter//libADM_vf_contrast_gtk.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_fade.so as Dissolvenza
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_contrast_cli.so as Contrasto
/usr/lib/ADM_plugins/videoFilter//libADM_vf_avisynthResize_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_equalizer_cli.so as Equalizzatore luma
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vidChromaV.so as Croma V
/usr/lib/ADM_plugins/videoFilter//libADM_vf_curveEditor_qt4.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_asharp_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_logo.so as Logo
/usr/lib/ADM_plugins/videoFilter//libADM_vf_colorYUV_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_vflip.so as Capovolgimento verticale
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Whirl.so as Effetto vortice
/usr/lib/ADM_plugins/videoFilter//libADM_vf_mpdelogo_gtk.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_hue_gtk.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_hue_qt4.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Hue_cli.so as MPlayer hue
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_yadif.so as yadif
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_mplayerResize_cli.so as Ridimensionamento MPlayer
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_crop_cli.so as Crop
/usr/lib/ADM_plugins/videoFilter//libADM_vf_avisynthResize_gtk.so:WrongUI
/usr/lib/ADM_plugins/videoFilter//libADM_vf_mplayerResize_gtk.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Delta.so as Delta luma
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_unstackField.so as Disimpilamento semiquadri
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_Stabilize.so as Rimozione rumore leggera.
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_fastconvolutionsharpen.so as Nitidizzazione
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_separateField.so as Separazione semiquadri
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_ssa.so as ASS
/usr/lib/ADM_plugins/videoFilter//libADM_vf_cnr2_gtk.so:WrongUI
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_swapField.so as Inversione semiquadri
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_smartPalShift.so as PAL Smart
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_palShift.so as PAL Field Shift
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_largemedian.so as Median (5x5)
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_colorYUV_cli.so as Avisynth ColorYUV
[Filters] Registered filter /usr/lib/ADM_plugins/videoFilter//libADM_vf_chromashift_cli.so as Traslazione croma
/usr/lib/ADM_plugins/videoFilter//libADM_vf_sub_gtk.so:WrongUI
[ADM_vf_plugin] Scanning done
[ADM_av_plugin] Scanning directory /usr/lib/ADM_plugins/audioDevices/
Name :Alsa ApiVersion :1
[Filters] Registered filter /usr/lib/ADM_plugins/audioDevices//libADM_av_alsa.so as  Alsa audio device (c) mean
Name :Sdl ApiVersion :1
[Filters] Registered filter /usr/lib/ADM_plugins/audioDevices//libADM_av_sdl.so as  Sdl audio device (c) mean
Name :PulseAudioS ApiVersion :1
[Filters] Registered filter /usr/lib/ADM_plugins/audioDevices//libADM_av_pulseAudioSimple.so as  PulseAudioSimple audio device (c) mean
Name :Jack ApiVersion :1
[Filters] Registered filter /usr/lib/ADM_plugins/audioDevices//libADM_av_jack.so as  Jack audio device (c) M. Zenkov
[ADM_av_plugin] Scanning done
[ADM_ae_plugin] Scanning directory /usr/lib/ADM_plugins/audioEncoders/
[AudioEncoder] Loaded PCM version 01.00.00 wavTag :0x1
[AudioEncoder] Registered filter /usr/lib/ADM_plugins/audioEncoders//libADM_ae_pcm.so as  PCM encoder plugin Mean 2008
[AudioEncoder] Loaded Vorbis version 01.00.00 wavTag :0x676f
[AudioEncoder] Registered filter /usr/lib/ADM_plugins/audioEncoders//libADM_ae_vorbis.so as  Vorbis encoder plugin Mean 2008
[AudioEncoder] Loaded LavAC3 version 01.00.00 wavTag :0x2000
[AudioEncoder] Registered filter /usr/lib/ADM_plugins/audioEncoders//libADM_ae_lav_ac3.so as  AC3 LavEncoder encoder plugin Mean 2008
[AudioEncoder] Loaded Aften version 01.00.00 wavTag :0x2000
[AudioEncoder] Registered filter /usr/lib/ADM_plugins/audioEncoders//libADM_ae_aften.so as  Aften AC3 encoder plugin Mean/Gruntster 2008
[AudioEncoder] Loaded TwoLame version 01.00.00 wavTag :0x50
[AudioEncoder] Registered filter /usr/lib/ADM_plugins/audioEncoders//libADM_ae_twolame.so as  TwoLame MP2 encoder plugin Mean 2008
[AudioEncoder] Loaded Lame version 01.00.00 wavTag :0x55
[AudioEncoder] Registered filter /usr/lib/ADM_plugins/audioEncoders//libADM_ae_lame.so as  Lame MP3 encoder plugin Mean 2008
[AudioEncoder] Loaded LavMP2 version 01.00.00 wavTag :0x50
[AudioEncoder] Registered filter /usr/lib/ADM_plugins/audioEncoders//libADM_ae_lav_mp2.so as  MP2 LavCodec encoder plugin Mean 2008
[AudioEncoder] Loaded Faac version 01.00.00 wavTag :0xff
[AudioEncoder] Registered filter /usr/lib/ADM_plugins/audioEncoders//libADM_ae_faac.so as  Faac AAC encoder plugin Mean 2008
[ADM_ae_plugin] Scanning done
[ADM_ad_plugin] Scanning directory /home/mezzo/.avidemux/plugins/audioDecoder/
[ADM_ad_plugin] Cannot parse plugin
[ADM_vf_plugin] Scanning directory /home/mezzo/.avidemux/plugins/videoFilter/
[ADM_vf_plugin] Cannot parse plugin
[ADM_vidEnc_plugin] Scanning directory /usr/lib/ADM_plugins/videoEncoder/
ignored: xvid
ignored: avcodec
ignored: mpeg2enc
ignored: x264
[ADM_vidEnc_plugin] Plugin loaded version 1.0.1, filename libADM_vidEnc_x264.so, desc: x264 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.0.0, filename libADM_vidEnc_mpeg2enc.so, desc: MPEG-1 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.0.0, filename libADM_vidEnc_mpeg2enc.so, desc: MPEG-2 video encoder plugin for Avidemux (c) Mean/Gruntster
[Xvid] Initialising Xvid
[Xvid] Build: xvid-1.3.2
[Xvid] SIMD supported: (1ff)
MMX
MMXEXT
SSE
SSE2
SSE3
3DNOW
3DNOWEXT
ALTIVEC
[ADM_vidEnc_plugin] Plugin loaded version 1.0.1, filename libADM_vidEnc_xvid.so, desc: Xvid video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: DV video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: Sorenson Spark video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: FFV1 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: FFVHuff video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: H.263 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: Huffyuv video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: M-JPEG video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: MPEG-1 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: MPEG-2 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.so, desc: MPEG-4 ASP video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Scanning done, found 14 codec
Registered DialogFactory classes
Spidermonkey initialized.

iacoposk8


*** Automated : 48 entries*************
load-->1
1c000000 -> 1c000000

3GPP /MP4/Quicktime file detected..
** opening 3gpp files **Analyzing file and atoms
Warning: scale is not in ms 1000!
Movie duration: 3 minuti
Parsing Track
<<Parsing Mdia>>
MDHD, Track duration: 125 minuti, trackScale: 25
[HDLR]
hdlr video found
<<Parsing Stbl>>
[STSD] VIDEO mp4v, size 198
[STSD] vendor
[STSD] width :1440
[STSD] height :1080
[STSD] datasize :0
[STSD] FrameCount :1
Codec string :0 <>
LEFT:110
Reading esds, got esds
[MP4]Esds atom found
Tag : 3 Len : 79
ES_Desc
Tag : 4 Len : 65
DecConfigDesc : Tag 32
Tag : 5 Len : 47
DecSpecicInfo
stts:0
Time stts atom found (1)
Using myscale 25
Stss:392
0 frames /4704 nbsz..
nbCo: 4704
Build Track index
Index done
Parsing Track
<<Parsing Mdia>>
MDHD, Track duration: 4 secondi, trackScale: 44100
[HDLR]
hdlr audio found
<<Parsing Stbl>>
[STSD] AUDIO <mp4a>, 0x6d703461, size 80
[STSD]Revision       :0
[STSD]Vendor         :
[STSD]Channels       :2
[STSD]Bit per sample :16
[STSD]Encoding       :0
[STSD]Packet size    :0
[STSD]Fq:44100
[STSD]Fq       :44100
[STSD] chan:2 bpp:16 encoding:0 fq:44100 (left 44)
Reading wave, got esds
[MP4]Esds atom found
Tag : 3 Len : 27
ES_Desc
Tag : 4 Len : 13
DecConfigDesc : Tag 107
Tag : 6 Len : 1
Tag : 2 Len : 0
stts:0
Time stts atom found (1)
Using myscale 44100
0 frames /7207 nbsz..
nbCo: 7207
Cur audio track :0
Build Track index
Index done
Indexed audio, nb blocks:0
Indexed audio, nb blocks:7207 (final)
Done finding main atoms

MP4 Corrected size : 1440 x 1080

[MP4 audio] : 3012231 bytes (7207 chunks)
Byterate     :16000
Frequency :44100
Encoding   :85
Channels   :2
Extra data :0
3gp Go to time succeeded chunk :0 time ask:0 time get:0
3gp/mov file successfully read..
The video codec has some extradata (47 bytes)

0000 : ...�....��......  00 00 01 b0 01 00 00 01 b5 89 13 00 00 01 00 00
0010 : .. .�� .�.�-.�.c  00 01 20 00 c4 f8 20 1d 88 00 cd 2d 04 87 1c 63
0020 : ...�Lavc53.35.0  00 00 01 b2 4c 61 76 63 35 33 2e 33 35 2e 30
Deleting post proc
Initializing postproc
Deleting post proc
updating post proc
Enabled type:3 strength:3
[Editor] Duration in seconds: 188, in samples: 8297856

Decoder FCC: DIVX (58564944)
Searching decoder (1440 x 1080, extradataSize:47)...
[lavc] Build: 3430145
[lavc] Using 47 bytes of extradata for MPEG4 decoder
[lavc] Enabling MT decoder with 2 threads
[lavc] Decoder init: CODEC_ID_MPEG4 video decoder initialized!

checking for B-Frames...
scanning 125 frames








Seems it does not contain B-frames...
End of B-frame check
Preferences found and loaded

Editor :Audio streamer initialized[ADM_ad_plugin]Format 0x55 : probing libADM_ad_opencore_amrnb.so score 0
[ADM_ad_plugin]Format 0x55 : probing libADM_ad_opencore_amrwb.so score 0
[ADM_ad_plugin]Format 0x55 : probing libADM_ad_Mad.so score 150
[ADM_ad_plugin]Format 0x55 : probing libADM_ad_vorbis.so score 0
[ADM_ad_plugin]Format 0x55 : probing libADM_ad_a52.so score 0
[ADM_ad_plugin]Format 0x55 : probing libADM_ad_faad.so score 0

** conf updated **
run-->1
Spidermonkey compiling "/home/mezzo/Scrivania/crop.py"...Done.
Spidermonkey executing "/home/mezzo/Scrivania/crop.py"...Deleting post proc
updating post proc
Enabled type:3 strength:3
[Editor] updating soundtracks duration
3gp Go to time succeeded chunk :0 time ask:0 time get:0
3gp Go to time succeeded chunk :0 time ask:0 time get:0
3gp Go to time succeeded chunk :6009 time ask:156956 time get:156969
3gp Go to time succeeded chunk :6009 time ask:156956 time get:156969
Audio start : 0 end : 0 size : 0
Adding Filter "69"...
Done.
save-->1
**saving:**
Output format:0
AVI family

Encoding Video codec  : Copia
Encoding Container        : AVI
video process mode : 0 mux mode : 1 mux param 0
Encoding Audio codec  : Copia
[Raw shift] : Start:0 ms, shift  0
3gp Go to time succeeded chunk :0 time ask:0 time get:0
[Raw shift] : Start:0 ms, offset in sample  0
PacketQueue AVI audioQ created
[AudioQueueThread] Starting
[ODML] using ODML placeholder of size 4096 bytes
[ODML] using ODML placeholder of size 4096 bytes
Second audio track absent
Encoding Phase        : Salvataggio in corso

writing 4704 frames
EditorPacket : End of stream Segment :0/1
This sample : 6922511 ((null)) total :6921801 ((null))
[AudioQueueThread] Exiting
[AudioThread] Target 4294901760, got 6922511, 0,001612 %

writing 9408 index parts
received 4704 video parts
Updating headers...

End of movie,
video frames : 4704
audio frames : 2512770
Saving AVI (v_engine)... done
[AVI] Cleaning audio

********** Automation ended***********
*********************************
*********************************
End of program..
*********************************
*********************************
Normal exit
Call terminate!!!
Cleaning up
[lavc] Killing decoding threads
[lavc] Destroyed
Deleting post proc
Waiting for Spidermonkey to finish...
Cleaning up Spidermonkey.
End of cleanup

Images stat:
___________
Max memory consumed (MB)     : 34171
Current memory consumed (MB) : 4556
Max image used               : 16
Cur image used               : 2
Global mem stat
______________
Memory consumed: 12 (MB)

Goodbye...

mit

Using search machine before opening new thread is good decision!

iacoposk8

#3
I've used it this keyword: crop bash
the first discussion contains the code (partly reworked) that I posted in this topic.
The second question is this: D
and the others do not seem relevant.

iacoposk8

solved, this works

crop.js


var app = new Avidemux();
app.video.addFilter("crop","left=300","right=300","top=300","bottom=300");


bash

avidemux2_cli --load 1.mp4 --video-codec x264 --run crop.js --save prova.avi