AminetAminet
Search:
84672 packages online
About
Recent
Browse
Search
Upload
Setup
Services

gfx/conv/ffmpeg-git7df9937-m68k.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:FFmpeg + FFplay video player
Author:Michael Niedermayer
Uploader:Piotr Bandurski <ami_stuff o2 pl>
Type:gfx/conv
Version:git-7df9937
Requires:020+881, CGX/P96, AHI, ixemul.library v63.1+
Architecture:m68k-amigaos >= 2.0.4
Date:2012-02-11
Download:http://aminet.net/gfx/conv/ffmpeg-git7df9937-m68k.lha - View contents
Readme:http://aminet.net/gfx/conv/ffmpeg-git7df9937-m68k.readme
Downloads:3528

FFmpeg + FFplay git-7df9937 (29.01.2012)


I. FFmpeg

FFmpeg is a complete, cross-platform solution to record, convert and stream
audio and video.
FFmpeg can also convert from any sample rate to any other, and resize video on
the fly with
a high quality polyphase filter.


1. Usage

a) convert avi video file to mpg with audio bitrate 128kb and video bitrate
1024kb:

ffmpeg -i test.avi -acodec mp2 -b:a 128k -vcodec mpeg1video -b:v 1024k out.mpg

b) convert wmv video file to avi (divx) with audio bitrate 256kb and video
bitrate 1024kb:

ffmpeg -i test.wmv -acodec libmp3lame -b:a 256k -vcodec msmpeg4v2 -b:v 1024k
out.avi

c) convert mkv video file to avi (h264) with audio bitrate 256kb and video
bitrate 1024kb:

ffmpeg -i test.wmv -acodec libmp3lame -b:a 256k -vcodec libx264 -b:v 1024k
out.avi

d) convert jpeg2000 image to bmp:

ffmpeg -i test.jp2 test.bmp

e) convert flac audio file to wma:

ffmpeg -i test.flac test.wma

f) grab the network stream (requires correct assign to amitcp package):
    
assign amitcp: <path>:amitcp

ffmpeg -i [http/mmsh/mmst/rtp/rtmp/rtsp]://x.x.x.x/file.ra -acodec copy out.ra


II. FFplay

There is also an FFplay video player included in the archive. FFplay can
play/show
any multimedia file type like avi/mov/asf/wmv/mkv/rmv/mp3/ogg/wma/jpg/jp2/png
etc.


1. Amiga related features


a) built-in GUI

ffplay -gui [1/2] <file>

-gui 0 - disable
-gui 1 - normal
-gui 2 - glued (default)

SF = skip frame
SS = save screenshot
CA = cycle audio tracks
CV = cycle video tracks
CS = cycle subtitle tracks
AW = show/hide audio wave
FS = full screen/window mode
I  = about requester
Q  = quit


The "Load File" gadget works via ARexx script, so:

- RexxMast must be run before FFplay
- "ffplay_loadfile.rexx" script must be located in "S:" dir
- "RX" command must be located in "SYS:RexxC" dir
- "Wait" command must be located in "C:" dir
- FFplay must be located in "C:" dir (this can be changed, read bolow)

The "ffplay_loadfile.rexx" script can be modified to for example enable
framedrop option,
select the default dir where the requester will be opened etc.:

"Address Command 'Run <>NIL: C:FFplay -gui 2 -framedrop -quiet DH1:Movies'"


The GUI can be opened at (x,y) position on the screen with

-gui_x <x>
-gui_y <y>

options.


b) Arexx port

rexxmast

rx "ADDRESS FFPLAY_AREXX <COMMAND>"

available commands:

QUIT, PAUSE, AUDIOWAVE, FULLSCREEN, BACKWARD, FORWARD, FBACKWARD, FFORWARD,
SKIPFRAME, SCREENSHOT, CYCLEAUDIO, CYCLEVIDEO, CYCLESUBTITLE, ABOUT,
VOLMIN, VOLHALF, VOLMAX, HELP


c) Workbench support (inc. tooltypes and def_icons)

switchable tooltypes can be set to 1/0 or ON/OFF

available tooltypes:

WIDTH=[NUMBER]
HEIGHT=[NUMBER]
BYTES=[ON/OFF]
NODISP=[ON/OFF]
GENPTS=[ON/OFF]
DRP=[ON/OFF]
LOOP=[NUMBER/-1]
FRAMEDROP=[ON/OFF]
AUDIOVIS=[1/2]
AST=[NUMBER]
SST=[NUMBER]
VST=[NUMBER]
FAST=[ON/OFF]
LOWRES=[1-5] 
FULLSCREEN=[ON/OFF] 
AUDIO=[ON/OFF]
SUBTITLES=[ON/OFF]
VIDEO=[ON/OFF]
AUTOEXIT=[ON/OFF]
SKIPFRAME=[16/32]
DITHER=[GRAY/HICOLOR/TRUECOLOR]
SYNC=[AUDIO/VIDEO/EXT]
STARTPATH=[PATH]
AUDIOBLOCK=[ON/OFF]
EXITONKEYDOWN=[ON/OFF]
EXITONMOUSEDOWN=[ON/OFF]
GUI_X=[NUMBER]
GUI_Y=[NUMBER]
GUI=[0/1/2]
MOUSEWHEEL=[1/2]
VOL=[1-11]

some tooltypes have a different names compared to the command line options:

"-x"  = WIDTH
"-y"  = HEIGHT
"-fs" = FULLSCREEN=ON
"-an" = AUDIO=OFF
"-sn" = SUBTITLES=OFF
"-vn" = VIDEO=OFF 


d) file requester


2. Usage

a) while playing

q, ESC              quit
f, ENTER            toggle full screen
p, SPACE            pause
a                   cycle audio channel
v                   cycle video channel
t                   cycle subtitle channel
w                   show audio waves
s                   activate frame-step mode
x                   save screenshot
i                   show about window
left/right          seek backward/forward 15 seconds
down/up             seek backward/forward 1 minute
</>                 increase/decrease audio volume
LMB click           seek to percentage in file corresponding to fraction of
width
RMB click           hide/show mouse pointer


b) default directory

* from CLI

ffplay <no file/no dir> - "ffplay_startpath" env variable will be read and if
the dir set in
the  variable exists, requester will be opened in that dir.
in case there is no "ffplay_startpath" env variable or the dir doesn't exist
then the
requester will opened in the current dir.

ffplay <dir> - the requester will be opened in the <dir>, even if
"ffplay_startpath"
variable exists.


* from WB

ffplay's icon clicked - the tooltype "STARTPATH" will be read from ffplay's icon
and if the dir
does exist, the requester will be opened there, otherwise the requester will be
opened in the
current WB directory.


c) misc

* mousewheel

ffplay -mousewheel 1 <file> - use mousewheel for stream seeking
ffplay -mousewheel 2 <file> - use mousewheel for audio volume change (default)

* audio volume

ffplay -vol 1  <file> - set the audio volume to minimum
ffplay -vol 11 <file> - set the audio volume to maximum (default)

* autoexit

ffplay -autoexit <file> - exit player when stream reaches the end

* loop

ffplay -loop -1 <file> - loop the stream infinite number of times
ffplay -loop 2  <file> - loop the stream only one time

* disable audio, video or subtitles

ffplay -an <file> - disable audio playback
ffplay -vn <file> - disable video playback
ffplay -sn <file> - disable displaying of subtitles

* dither

ffplay -dither gray      <file> - play the video on 8-bit screen
ffplay -dither hicolor   <file> - play the video on 15/16-bit screen
ffplay -dither truecolor <file> - play the video on 24/32-bit screen

* quiet

ffplay -quiet <file> - do not output FFmpeg's warnings/messages to the console

* realtime video filter fun

ffplay -vf hflip <file>
ffplay -vf vflip <file>
ffplay -vf unsharp <file>
ffplay -vf hqdn3d=200 <file>
ffplay -vf mp=tile=2:2 <file>
ffplay -vf mp=mirror <file>
ffplay -vf mp=down3dright <file>
ffplay -vf mp=boxblur=6:6 <file>
ffplay -vf mp=noise=25 <file>

* network streaming (test stream)

ffplay mmsh://208.75.229.58/1tv


3. Notes

a) for a playback on slow systems try to use a combination of these options:

ffplay -quiet -an -framedrop -lowres [1/2/3] -skipframe [16/32] -dither
[gray/hicolor] <file>

b) IMPORTANT: Under WinUAE copy the "env/ahi_minbufflen" file to "ENV:" and
"ENVARC:" before using
FFplay and set the video memory to at least 16MB.

c) some people seems to get "ffplay failed returncode 161" error message while
using ffplay
under DOpus 5.x. I can't reproduce this on my system, but I got a report that
this workround
happen to fix the problem:

{AmigaDOS} Run >NIL: C:FFplay {f}



Thanks to Bernd Roesch for his bugfixed/improved ixemul/SDL libraries
and Matt Hey for optimized 68060 asm routines.



Installation:

copy "bin/ffmpeg[040fpu/060fpu]" to "c:ffmpeg"
copy "bin/ffplay[040fpu/060fpu]" to "c:ffplay"
copy "bin/ffprobe[040fpu/060fpu]" to "c:ffprobe"
copy "env/*" to "env:" and "envarc:"
copy "rexx/ffplay_loadfile.rexx" to "s:ffplay_loadfile.rexx"



Requirements:

68020+ with FPU
64MB of RAM
AHI
CyberGfx or Picasso96
ixemul.library v63+


Changes:
11.02.2012
- fixed "skip one frame" mode ("SF" button / "s" key)


If you think my work is useful to you, please consider donating via PayPal to my
e-mail address:

ami_stuff
 at 
o2
.
pl


Amiga 68k port by Piotr Bandurski


Contents of gfx/conv/ffmpeg-git7df9937-m68k.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[unknown]              5273719 11643264  45.3% -lh5- aaf0 Jan 29 22:07 ffmpeg-git7df9937-m68k/bin/ffmpeg040fpu
[unknown]              5136351 11258652  45.6% -lh5- 77f5 Jan 29 22:52 ffmpeg-git7df9937-m68k/bin/ffmpeg060fpu
[unknown]              3306940 6331224  52.2% -lh5- cc62 Feb 11 18:09 ffmpeg-git7df9937-m68k/bin/ffplay040fpu
[unknown]              3208832 6027028  53.2% -lh5- 8820 Feb 11 17:31 ffmpeg-git7df9937-m68k/bin/ffplay060fpu
[unknown]              3152782 5941636  53.1% -lh5- a9de Jan 29 19:51 ffmpeg-git7df9937-m68k/bin/ffprobe040fpu
[unknown]              3056810 5640176  54.2% -lh5- 3a7e Jan 29 19:22 ffmpeg-git7df9937-m68k/bin/ffprobe060fpu
[unknown]                12591   32428  38.8% -lh5- 8c00 Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/Changelog
[unknown]                 6996   18092  38.7% -lh5- a33a Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/COPYING.GPLv2
[unknown]                12641   35147  36.0% -lh5- 7994 Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/COPYING.GPLv3
[unknown]                 9644   26528  36.4% -lh5- c183 Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/COPYING.LGPLv2.1
[unknown]                 2629    7651  34.4% -lh5- 3b58 Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/COPYING.LGPLv3
[unknown]                  662    1038  63.8% -lh5- 5c9a Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/credits
[unknown]                  910    2005  45.4% -lh5- c100 Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/license
[unknown]                 4760   20015  23.8% -lh5- c8a9 Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/maintainers
[unknown]                  107     164  65.2% -lh5- 5ad1 Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/readme
[unknown]                   10      10 100.0% -lh0- 6a5c Jan 29 14:52 ffmpeg-git7df9937-m68k/docs/release
[unknown]                    2       2 100.0% -lh0- 9795 Apr 15  2009 ffmpeg-git7df9937-m68k/env/ahi_minbufflen
[unknown]                  154     212  72.6% -lh5- 183f Jan 29 14:52 ffmpeg-git7df9937-m68k/env/ffmpeg/libvpx-1080p.ffpreset
[unknown]                  155     212  73.1% -lh5- c587 Jan 29 14:52 ffmpeg-git7df9937-m68k/env/ffmpeg/libvpx-1080p50_60.ffpreset
[unknown]                  151     204  74.0% -lh5- 1fcc Jan 29 14:52 ffmpeg-git7df9937-m68k/env/ffmpeg/libvpx-360p.ffpreset
[unknown]                  154     212  72.6% -lh5- 59d0 Jan 29 14:52 ffmpeg-git7df9937-m68k/env/ffmpeg/libvpx-720p.ffpreset
[unknown]                  154     212  72.6% -lh5- 8468 Jan 29 14:52 ffmpeg-git7df9937-m68k/env/ffmpeg/libvpx-720p50_60.ffpreset
[unknown]                   56      58  96.6% -lh5- c1e2 Jan 29 14:52 ffmpeg-git7df9937-m68k/env/ffmpeg/libx264-ipod320.ffpreset
[unknown]                   54      61  88.5% -lh5- 5fa0 Jan 29 14:52 ffmpeg-git7df9937-m68k/env/ffmpeg/libx264-ipod640.ffpreset
[unknown]                 3238    7352  44.0% -lh5- d534 Feb 11 18:15 ffmpeg-git7df9937-m68k/ReadMe
[unknown]                  159     190  83.7% -lh5- df9a Mar 17  2011 ffmpeg-git7df9937-m68k/rexx/ffplay_loadfile.rexx
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        26 files 23190661 46993773  49.3%            Feb 11 20:14

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>