I have several .mng videos that need to convert to .avi, .mp4 or .mpg and did not find any program that can do this!
.mng file and player: https://www.dropbox.com/s/m677fhjjmk3870q/Video%20and%20player.rar?dl=0
+ Reply to Thread
Results 1 to 30 of 47
-
-
As it requires a special player I guess it wont be that easy.
From the header:
Code:ŠMNG MHDR h < gáÀ¾ FRAM3{ô DEFI $áÀH IHDR h +*Å IDATxÚìÁ
-
@Baldrick, i have over 5000 videos then need to do automatically!
@TorBru, Do you have any idea how to do and what command line I can use?Last edited by Belini; 5th Jan 2015 at 10:03. Reason: correction
-
Video to Video Converter can join png-to-audio using Tools>Audio/Video Mux...
It won't recognize the file extension initially. You have to enter *.* in the open file dialogue to list ALL files.
Convert it to what you want.
Edit: I don't envy you using this to do 5000 of them.Last edited by transporterfan; 5th Jan 2015 at 10:41.
-
I assumed you have tried all players... Apparently not.
-
Oops wrong thread. And I can't edit in crappy tapatalk.
-
-
In FFQueue you must click the Tools-button in the main window and select "Make video from images". But this will not produce the wanted result since ffmpeg only extracts the first image in the MNG. You must find some tool that can extract all the PNG's in the MNG to numbered files (001.png, 002.png and so on) - after that you can make a video from the images and the audio file. This tool might be usefull for you:
http://advancemame.sourceforge.net/comp-readme.html
I have not tried it, but it looks like conversion of 5000 files will take alot of time!I'm the developer behind FFQueue. My posts might reflect this! ;-) -
-
After El Heggunte's mplayer command line to extract each frame as a PNG you can use ffmpeg to join them into a video file. In a batch file:
Code:"g:\program files\smplayer\mplayer\mplayer" -vo png _VIDEO.mng "g:\program files\ffmpeg\bin\ffmpeg" -f image2 -r 59.94 -i %%08d.png output.mkv del *.png
-
What version of MPlayer do you have
Mine is
Code:MPlayer Redxii-SVN-r37278-4.8.3 (i686) (C) 2000-2014 MPlayer Team Compiled against FFmpeg version N-66276-g04b0dda Build date: Sun Sep 14 18:15:13 EDT 2014
Those warnings / error messages have nothing to do with the command-line I suggested -
I lowered my Redxii-SVN-r36621-4.8.2 version (32-bit) and she managed to extract images.
Now I need to create a folder with the same file name and save in the images, does anyone know what I have to add this command line mplayer.exe -ve png _VIDEO.mng to create a folder? -
If you do all the work in one batch file the PNG files don't have to have the same base name as the video file. Use this batch file and you can drag/drop any mng file onto it to convert to AVC in MKV. I called it MNG2MKV.BAT.
Code:"c:\program files\smplayer\mplayer\mplayer" -vo png %1 "c:\program files\ffmpeg\bin\ffmpeg" -f image2 -r 59.94 -i %%08d.png "%~dpn1.mkv" del *.png
Beware: the batch file deletes all PNG files in the folder so be sure you don't have any PNG file you need there before running the batch file. If you want to keep the PNG files just remove the "del *.png" line.
Again, the audio isn't handled so the batch file needs to be modified to include the audio.
Some other possible issues: the frame rate is set to 59.94 fps which looks about right for the sample. It might be different for other files. You may need to address the aspect ratio too.Last edited by jagabo; 6th Jan 2015 at 11:55.
-
I made a script to automate the conversion Autoit with it can extract the images and convert to mkv format or .mp4 and this script be 100% lack to know which command line includes the audio in .mp3 converted file
Code:#NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=D:\00 _Importantes\06 ARCADE\07 Icones\44.ico #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_UseUpx=n #AutoIt3Wrapper_Res_Comment=Função: Automate file conversion .mng #AutoIt3Wrapper_Res_Description=Autoit3 3.3.9.2 #AutoIt3Wrapper_Res_Fileversion=1.0.0.15 #AutoIt3Wrapper_Res_LegalCopyright=Make for Belini #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 ; =================================================== ; Autor: Belini ; Date: 06/01/2015 ; Autoit version 3.3.9.2 ; Objetive: Automate file conversion .mng ; =================================================== #include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <File.au3> #include <Array.au3> Global $inp_dir, $But_proc, $Comb_ext, $but_executar gui() loop() Func loop() Local $nMsg, $proc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $But_proc $proc = FileSelectFolder("Searching folder.","") GUICtrlSetData($inp_dir, $proc) Case $but_executar $verifica = GUICtrlRead($inp_dir) If FileExists($verifica) Then converte($verifica & "\") Else MsgBox(4096, "ERROR", "Enter the folder where the files are .MNG!", 3) EndIf EndSwitch WEnd EndFunc ;==>loop Func gui() GUICreate("File Converter .mng", 302, 109, 285, 207) GUICtrlCreateLabel("Convert to the format:", 8, 77, 124, 17) GUICtrlCreateLabel("Folder path where the files are .mng", 8, 16, 228, 17) $inp_dir = GUICtrlCreateInput("", 8, 32, 225, 21) $But_proc = GUICtrlCreateButton("Search", 234, 30, 59, 25) $but_executar = GUICtrlCreateButton("Execute", 218, 72, 75, 25) $Comb_ext = GUICtrlCreateCombo(".mkv", 135, 75, 57, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) GUICtrlSetData($Comb_ext, ".mp4") GUISetState(@SW_SHOW) EndFunc ;==>gui Func converte($patch = "") Local $ext_arq = GUICtrlRead($Comb_ext) Local $i, $Faz_lista = _FileListToArray($patch, "*.mng") If Not @error Then GUIDelete() For $i = 1 To $Faz_lista[0] $file = $patch & $Faz_lista[$i] $extrai = StringTrimRight($Faz_lista[$i], 4) Run('mplayer.exe -vo png "' & $file & '"', @ScriptDir) ProcessWait("mplayer.exe") ProcessWaitClose("mplayer.exe") ShellExecute(StringTrimLeft($ext_arq, 1) & ".bat", "", @ScriptDir) ProcessWait("cmd.exe") ProcessWaitClose("cmd.exe") FileMove(@ScriptDir & "\" & $ext_arq, @ScriptDir & "\" & StringTrimRight($Faz_lista[$i], 4) & $ext_arq, 9) FileMove($file, $patch & "Converted\" & $Faz_lista[$i], 9) FileMove($patch & $extrai & ".mp3", $patch & "Converted\" & $extrai & ".mp3", 9) Next Else MsgBox(4096, "ERROR", "There are no files in this folder .MNG", 5) loop() EndIf Exit EndFunc ;==>converte
Last edited by Belini; 6th Jan 2015 at 16:20.
-
Just to complete my earlier script...
Mng2Mkv.bat:
Code:"c:\program files\smplayer\mplayer\mplayer" -vo png %1 "c:\program files\ffmpeg\bin\ffmpeg" -f image2 -r 59.94 -i %%08d.png -i "%~dpn1.mp3" -vcodec libx264 -preset slow -crf 18 -sar 1:1 -acodec copy "%~dpn1.mkv" del *.png
To call that batch file for every MNG file in a folder:
AllMng2Mkv.bat:
Code:for %%F in (*.mng) do Mng2Mkv "%%F"
Converting the sample video with that batch file took about 15 seconds. -
Last edited by Belini; 6th Jan 2015 at 19:01.
-
Did you change the paths to mplayer.exe and ffmpeg.exe? Put a Pause at the end of mng2mkv so the CMD window stays open and you can see any error messages. Did you see the PNG files extracted from the MNG file? Are you running XP? The syntax may be a little different for XP. I'll check...
<edit>
The same syntax worked under XP SP3. The only difference was that the PNG files were created in the Administrator's folder instead of the folder with the MNG file. You can fix that by changing the batch file to:
Code:%~d1 cd "%~p1" "c:\program files\smplayer\mplayer\mplayer" -vo png %1 "c:\program files\ffmpeg\bin\ffmpeg" -f image2 -r 59.94 -i %%08d.png -i "%~dpn1.mp3" -vcodec libx264 -pix_fmt yuv420p -preset slow -crf 18 -sar 1:1 -acodec copy "%~dpn1.mkv" del *.png
I also tried putting mng2mkv.bat in the SendTo folder and using right click on MNG file -> SendTo mng2mkv.bat. That worked too.Last edited by jagabo; 6th Jan 2015 at 20:16.
-
-
Hey Jagabo,
I like this
Code:%~d1 cd "%~p1"
I'd just like to know how does this get parsed
Code:%%08d.png
-
The first % just escapes the second, ie "%08d.png" is passed to ffmpeg (or whatever program is called). "%08d" is C printf() style (what ffmpeg expects) for an 8 digit decimal number with leading zeros, followed by ".png". For example 00000001.png, 00000002.png... 00000010.png, etc. "%8d" would indicate no leading zeros, 1.png, 2.png... 10.png, etc.