VideoHelp Forum
+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 47
Thread
  1. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    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
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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ÚìÁ
    But you can always try a screen recorder like Open Broadcaster Software, Camstudio, etc.
    Quote Quote  
  3. Member
    Join Date
    Jul 2014
    Location
    Denmark
    Search Comp PM
    It just animated PNG's.. I would not be surprised if FFMpeg can convert it..
    I'm the developer behind FFQueue. My posts might reflect this! ;-)
    Quote Quote  
  4. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    @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
    Quote Quote  
  5. Member
    Join Date
    Jul 2014
    Location
    Denmark
    Search Comp PM
    I've tried to convert your samle using ffmpeg / ffqueue and ffmpeg does recognize the MNG format but only as a single frame, not an animation. If there's a workaround for this I do not know...
    I'm the developer behind FFQueue. My posts might reflect this! ;-)
    Quote Quote  
  6. 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.
    Quote Quote  
  7. Member
    Join Date
    Jul 2014
    Location
    Denmark
    Search Comp PM
    Originally Posted by transporterfan View Post
    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.
    I bet'cha it will only take the first frame from the MNG and loop it the length of the audio. FFQueue can do the same with Tools -> Slideshow
    I'm the developer behind FFQueue. My posts might reflect this! ;-)
    Quote Quote  
  8. Originally Posted by TorBru View Post
    I bet'cha it will only take the first frame from the MNG and loop it the length of the audio. FFQueue can do the same with Tools -> Slideshow
    You're probably right.
    Quote Quote  
  9. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Mplayer displays all the frames of the sample file (with some complaints though),
    so I presume Mencoder can re-encode it properly

    FWIW, Irfanview supports the MNG format too.
    Quote Quote  
  10. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I assumed you have tried all players... Apparently not.
    Quote Quote  
  11. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Oops wrong thread. And I can't edit in crappy tapatalk.
    Quote Quote  
  12. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Originally Posted by TorBru View Post
    FFQueue can do the same with Tools -> Slideshow
    I have not found the Slideshow option and the .mp4 video only shows the first image.
    Click image for larger version

Name:	FFQueue.JPG
Views:	393
Size:	86.2 KB
ID:	29520
    Quote Quote  
  13. Member
    Join Date
    Jul 2014
    Location
    Denmark
    Search Comp PM
    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! ;-)
    Quote Quote  
  14. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Originally Posted by transporterfan View Post
    Video to Video Converter can join png-to-audio using Tools>Audio/Video Mux...
    Appears only in the first video image is also the same as proved FFQueue.
    Click image for larger version

Name:	Video_to_video.JPG
Views:	2004
Size:	36.4 KB
ID:	29521
    Quote Quote  
  15. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by TorBru
    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)
    mplayer -vo png _VIDEO.mng
    Quote Quote  
  16. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Originally Posted by TorBru View Post
    I have not tried it, but it looks like conversion of 5000 files will take alot of time!
    This way should work more will be very laborious and time consuming so I keep looking for a faster way to do.
    Quote Quote  
  17. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Originally Posted by El Heggunte View Post
    mplayer -vo png _VIDEO.mng
    I could not extract the images using Mplayer as well.
    Click image for larger version

Name:	mplayer.JPG
Views:	5841
Size:	82.6 KB
ID:	29522
    Quote Quote  
  18. 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
    That will extract all the PNG images, convert them to an MKV video (AVC), and delete all the PNG files. Still to be done is muxing the audio with the video. That can be done in the ffmpeg line but I don't know how to do it off the top of my head. So you can easily automate the entire procedure.
    Quote Quote  
  19. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by Belini View Post
    Originally Posted by El Heggunte View Post
    mplayer -vo png _VIDEO.mng
    I could not extract the images using Mplayer as well.
    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
    Quote Quote  
  20. Mine's a few years old:

    MPlayer Redxii-SVN-r35203-4.6.2 (C) 2000-2012 MPlayer Team
    198 audio & 412 video codecs
    It came with SMPlayer.
    Quote Quote  
  21. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    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?
    Quote Quote  
  22. 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
    You just need to change the path to mplayer.exe and ffmpeg.exe. if they are in different locations. That batch file will create an MKV file with the same base name as the MNG file you selected.

    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.
    Quote Quote  
  23. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    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
    [B]Compiled code and source file: https://www.dropbox.com/s/cls4jzc4an80y2n/Converter%20mng%20%28Video%20help%29.rar?dl=0
    Last edited by Belini; 6th Jan 2015 at 16:20.
    Quote Quote  
  24. 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
    Dropping an MNG file onto that batch file creates an MKV file with AVC video and MP3 audio from the MNG file and matching MP3 file. You can see I added some codec specs for the AVC compression and aspect ratio (I don't know if the SAR is correct or not).

    To call that batch file for every MNG file in a folder:

    AllMng2Mkv.bat:
    Code:
    for %%F in (*.mng) do Mng2Mkv "%%F"
    Running that batch file will convert all MNG (and matching MP3) files in a folder to AVC/MP3 in MKV.

    Converting the sample video with that batch file took about 15 seconds.
    Image Attached Files
    Quote Quote  
  25. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    Dropping an MNG file onto that batch file creates an MKV file with AVC video and MP3 audio from the MNG file and matching MP3 file. You can see I added some codec specs for the AVC compression and aspect ratio
    I made the way you spoke and the video was not created
    Last edited by Belini; 6th Jan 2015 at 19:01.
    Quote Quote  
  26. Originally Posted by Belini View Post
    Originally Posted by jagabo View Post
    Dropping an MNG file onto that batch file creates an MKV file with AVC video and MP3 audio from the MNG file and matching MP3 file. You can see I added some codec specs for the AVC compression and aspect ratio
    I made the way you spoke and the video was not created
    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
    The first two lines set the default working directory to the drive/path of the MNG file. I also added the -pix_fmt yuv420p command to the encoder line so that the files are more compatible with older players.

    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.
    Quote Quote  
  27. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    Code:
    %~d1
    cd "%~p1"
    "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"
    Now worked perfectly, I just can not run this code you posted using Autoit script, you know how to do in Autoit?
    Quote Quote  
  28. I don't know anything about Autoit. ffmpeg can produce whatever codecs and containers you want. Why bother with Autoit?
    Quote Quote  
  29. Hey Jagabo,

    I like this
    Code:
    %~d1
    cd "%~p1"
    I haven't had to use this kind of functionality in CMD yet, but I had to use much more twisted code to do the same under Command.com

    I'd just like to know how does this get parsed
    Code:
    %%08d.png
    Quote Quote  
  30. Originally Posted by nic2k4 View Post
    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.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!