News:

--

Main Menu

avidemux3_cli syntax

Started by digital0, April 15, 2013, 01:54:38 PM

Previous topic - Next topic

digital0

I used the following to convert files: avidemux2_cli --video-codec X264 --load file.avi --save tmp.avi
Now I try the same parameters with avidemux3_cli, but it just copies both audio and video streams. How do I convert video?


digital0

Didn't work. avidemux3_cli  --load DSCF1133.AVI --audio-codec copy  --save video.vob  --output-format PS --video-codec mpeg2enc
finished in a few seconds (file is 69 MB) and it did a copy:
$ file DSCF1133.AVI video.vob
DSCF1133.AVI: RIFF (little-endian) data, AVI, 1280 x 720, ~24 fps, video: Motion JPEG, audio: uncompressed PCM (stereo, 48000 Hz)
video.vob:    RIFF (little-endian) data, AVI, 1280 x 720, ~24 fps, video: Motion JPEG, audio: uncompressed PCM (stereo, 48000 Hz)

BTW, Avidemux v2.6.1.

Jan Gruuthuse

try with 2.6.3 and replace _cli by avidemux GUI would be in linux /usr/bin/avidemux3_qt4 and you would have installed following debs in this order:
avidemux3-core-2.6.3-8580-Linux
avidemux3-plugins-COMMON-2.6.3-8580-Linux
avidemux3-qt4-2.6.3-8580-Linux
avidemux3-plugins-QT4-2.6.3-8580-Linux
avidemux3-cli-2.6.3-8580-Linux

digital0

I use Fedora. Updated to 2.6.3-1.fc18 from rpmfusion, tried to use avidemux3_qt4 instead of cli - still the same, video stream is an exact copy of original.

Jan Gruuthuse

if fedora 17 32-bit try this one: http://avidemux.org/nightly/fedora17_32/ should be up to r8581 and update during the night likely to r8590.

Jan Gruuthuse

Looks like something broke in passing switches from command line?

Jan Gruuthuse

#7
Done some more testing, only way I get it to work is with --run and avidemux3_qt4
demo loaded video to avc in avi container
/usr/bin/avidemux3_qt4  --load /media/1Processed/Demo/AspectRatioTest.ts --run ~/Videos/test.py --save ~/Videos/TestVideo
video to load included the path to it: /media/1Processed/Demo/AspectRatioTest.ts
avidemux settings and path to it: ~/Videos/test.py             where the ~/ would take you current users Home.
output video: --save ~/Videos/TestVideo

mit

Confirm: avidemux3_cli encoding, not working with any codecs via command line.Problem dosn't exist, when run a script or GUI-mod. [r8568]

mean

I'm having problem reproducing the issue
Anything that could trigger it ?

Jan Gruuthuse

#10
if you have mpeg-ts SD stream, has mpeg video and encode to x264 on cli you would still end up with a mpeg encoded video.
It functions but the fps give away it is only copying (over 1000 fps) and not encoding (100 fps)
used mpeg-ts: 10 mb download =  AspectRatioTest.ts
and previously posted py to run: test.py
with all 3 files in user's home Video ~/Videos
works:
/usr/bin/avidemux3_qt4  --load ~/Videos/AspectRatioTest.ts --run ~/Videos/test.py --save ~/Videos/TestVideo
not working, only copying
/usr/bin/avidemux3_cli  --load ~/Videos/AspectRatioTest.ts --run ~/Videos/test.py --save ~/Videos/TestVideo

mean

Works here
avidemux3_cli  --load ~/Downloads/AspectRatioTest.ts  --run ~/Downloads/test.py  --save /tmp/x.y --quit >& /tmp/log
file /tmp/x.y
/tmp/x.y: RIFF (little-endian) data, AVI, 720 x 576, 25.00 fps, video: H.264 X.264 or H.264, audio: MPEG-1 Layer 1 or 2 (stereo, 48000 Hz)

Jan Gruuthuse

#12
cli produces 9.4 mb avi: /tmp/x.y: RIFF (little-endian) data, AVI, 720 x 576, 25.00 fps, video:, audio: MPEG-1 Layer 1 or 2 (stereo, 48000 Hz)
qt produces 3.7 mb avi: /tmp/x.y: RIFF (little-endian) data, AVI, 720 x 576, 25.00 fps, video: H.264 X.264 or H.264, audio: MPEG-1 Layer 1 or 2 (stereo, 48000 Hz)
12 mb download <- click here cli.log + qt4.log + avi result for each.
12.04 ubuntu lts 64-bit. Could internationalization play part in this? complains in cli about x264
line 172: /usr/lib/ADM_plugins6/videoEncoders/libADM_ve_x264_qt4.so:WrongUI
line 186:  [tryLoadingVideoFilterPlugin]  ==> wrong UI
some more follow
cli:  [ADM_vf_plugin] Scanning done, found 36 video filer(s)
qt4: [ADM_vf_plugin] Scanning done, found 51 video filer(s)

cli:
line 438:  [setVideoCodec]  No such encoder :x264






mit

Both variants works to me.But when exclude script, and specify any codec in command line, only copying produces.

Jan Gruuthuse

Weird, hope logs give insight. Have you installed x264 by building your self or just using default form your OS or none?