mit ffmpeg.exe , habe kurze flv music videos so konvertiert und konnte denn am Samsung-TV (usb) abspielen
( achtung erstellt 2 Ordner )
#NoEnv
SetBatchlines -1
SendMode Input
Settitlematchmode, 2
setworkingdir, %a_scriptdir%
FFMPEGXX=%A_scriptdir%\ffmpeg.exe
ifnotexist,%ffmpegxx%
gosub,dnlffmpeg
;--------------------------------------------------------------------------------------
FileInstall,ffmpeg.exe,ffmpeg.exe,1 ;--- if you compile to xy.exe ffmpeg.exe woul'd be also in scriptdir
;=======================================================================================
RECXX =c:\_A_INPUT
IfNotExist, %RECXX%
FileCreateDir, %RECXX%
OUTXX =c:\_A_OUTPUT
IfNotExist, %OUTXX%
FileCreateDir, %OUTXX%
;--------- Convert Video To MP4 ------------------------
ConvertToMP4:
e5=
Loop,%RECxx%\*.*
{
ALF= %A_LoopFileFullPath%
SplitPath, ALF, name, dir, ext, name_no_ext, drive
if (ext="flv" or ext="mpg" or ext="webm" or ext="3gp" or ext="avi" or ext="vob")
e5=%e5%%a_loopfilename%`r`n
}
if e5=
{
run,%recxx%
msgbox, 262208,Convert Video to MP4,Folder %recxx%`ncontains no video files to convert
exitapp
}
if e5<>
{
msgbox, 262180, Convert Video to MP4,%e5%
e5=
ifmsgbox,NO
exitapp
else
{
Loop,%RECxx%\*.*
{
ALF= %A_LoopFileFullPath%
SplitPath, ALF, name, dir, ext, name_no_ext, drive
FileDest=%outxx%\%name_no_ext%.mp4
ifexist,%Filedest%
FileDest=%outxx%\%A_now%_%name_no_ext%.mp4
if (ext="flv" or ext="mpg" or ext="webm" or ext="3gp" or ext="avi" or ext="vob")
runwait,%comspec% /k ffmpeg.exe -i "%ALF%" -ab 128k -b:v 1200k "%filedest%" ;-- -b:v for new version
;runwait,%comspec% /c ffmpeg.exe -i "%ALF%" -ab 128k -b 1200k "%filedest%" ;-- -b old version
}
}
run,%outxx%
}
return
;-------------------------------------
;================= DOWNLOAD FFMPEG ===================
DNLFFMPEG:
{
FXX=http://ffmpeg.zeranoe.com//builds/ ;20MB 2013 new
;fxx=http://s000.tinyupload.com/index.php?file_id=37390206496006425445 ;14MB old
text31=
(
If you want convert downloaded video to MP3
needs FFMPEG in same folder as script
Download
from
%fxx%
- builds static win32 ..\bin\ffmpeg.exe
Want you download this program ?
)
msgbox, 262180, Start URL,%text31%
ifmsgbox,NO
exitapp
else
{
run,%fxx%
exitapp
}
}
return
;============================================================================