Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Suche DLL oder Command Line Tool: Flv To MPG4


  • Please log in to reply
15 replies to this topic
nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

Hi

Ich würd gerne mal versuchen Dateien direkt von FLV nach MPG4 zu konvertieren.

Allerdings hab ich bei meiner Google Recherche nur Müll gefundenicon_mad.gif,  da ich kein Programm haben möchte, sondern nur eine Dll und die Befehle für diese brauche.

Ich wollt nur Fragen ob jemand vieeleicht ne sinnvolle Seite für sowas hat oder einen Tipp.

 

Wäre echt nett wenn ihr mir was sagen könntet.icon_mrgreen.gif

 


Visit the new forum ahkscript.org.

http://ahkscript.org


fredchf
  • Members
  • 111 posts
  • Last active: Oct 23 2019 07:56 PM
  • Joined: 02 Nov 2012

Hallo!

Super macht eigentlich Alles, wa mit Umwandlung von Video und Audio zu tun hat.icon_razz.gif

 

http://www.chip.de/d...2_17370353.html



nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012
Eigenlich meinte ich gerade Kommandozeilen Programme u.ä..
Ein Programm ist einfach zu finden.

EDIT:
Mit FFMPEG hab ich einen Encoder für MPEG

Visit the new forum ahkscript.org.

http://ahkscript.org


fredchf
  • Members
  • 111 posts
  • Last active: Oct 23 2019 07:56 PM
  • Joined: 02 Nov 2012

https://trac.handbra...r/wiki/CLIGuide



nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

Nicht Schlecht liest aber nur von CD/DVD


Visit the new forum ahkscript.org.

http://ahkscript.org


fredchf
  • Members
  • 111 posts
  • Last active: Oct 23 2019 07:56 PM
  • Joined: 02 Nov 2012
Nicht Schlecht liest aber nur von CD/DVD

Nö, wieso?



garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005

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
;============================================================================



nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

THX genau das was ich brauche


Visit the new forum ahkscript.org.

http://ahkscript.org


nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

Allerdings ist die Audiospur verzerrt.


Visit the new forum ahkscript.org.

http://ahkscript.org


garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005

wegen audio verzerrt, habe ich nichts gemerkt , bei vlc.exe (videolan)  kontrollieren dass audio-level nicht mehr als 95% eingestellt ist



nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

Ich hab die Dateien schon mit Super (das Programm das Fredchf vorgeschlagen hat) konvertiert.
Die Ergebnisse sind super.
Soll ich mal eine Datei hochladen (FLV 55MB ~ 80 minuten Konvertierungszeit (Ja mein Internet Rechner ist echt langsam.)) ?
Mit den Einstellungen von FFMPEG kenn ich mich nicht so aus.
Da kann jemand anders garantiert besser sagen was zu tun ist.
Ich hab schon versucht mir die FFMPEG Dokumentation anzutun allerdings mit eher wenig erfolg.
Ich könnte es vieleicht noch schaffen in H.264 zu verwandeln und als Tonspur AAC geht auch noch.
Aber woran es liegt, dass die Audiospur so verzerrt ist kann ich nicht sagen.


Visit the new forum ahkscript.org.

http://ahkscript.org


garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005

hello nnnik, super dass es mit Super funktioniert

kenne mich auch nicht aus mit ffmpeg ausser dass Audioqualität verstellbar ist z.B. Parameter  -ab 192k

( wobei dies bei bestehender mieser Qualität auch nichts verbessert )

 ich habe bis jetzt bei Konvertierung von FLV zu MP4 nichts festgestellt  ( habe netbook , XP )



nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

FLV ist nur ein Container.

Wenn es bei dir geklappt hat sagt das noch garnichts über meine FLV und deren Ergebnis aus.

Mein FLV Container hat z.B. AVC als Video Codec und AAC als Audio Codec

Dein FLV Container kann etwas komplett anderes enthalten.


Visit the new forum ahkscript.org.

http://ahkscript.org


nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

Ich habs jetzt raus ! icon_mrgreen.gif

Da meine FLV Datei direkt AAC enthält werd ich die einfach beibehalten.

...-Filter anull...

Komischerweise Funktioniert es jetzt auch so.....


Visit the new forum ahkscript.org.

http://ahkscript.org


garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005

danke nnik, Du meinst den Parameter -ab 128k weglassen