VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 47 of 47
  1. It's a FFMPEG parameter, that explains it. Thanks.
    Quote Quote  
  2. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    Why bother with Autoit?
    Because with Autoit I can create a graphical interface.

    EDITED:I want to save the .png images that were extarídas in a temporary folder, how can I save the images in a different folder where the .bat file?

    I want to save the images to another folder using this code:
    Code:
    "c:\program files\smplayer\mplayer\mplayer" -vo png %1
    Last edited by Belini; 11th Jan 2015 at 05:13.
    Quote Quote  
  3. Originally Posted by Belini View Post
    I want to save the images to another folder using this code:
    Code:
    "c:\program files\smplayer\mplayer\mplayer" -vo png %1
    Set the working directory to the folder:

    Code:
    d:
    cd \temp
    "c:\program files\smplayer\mplayer\mplayer" -vo png %1
    Or you can MOVE the files after the extraction.
    Code:
    "c:\program files\smplayer\mplayer\mplayer" -vo png %1
    move *.png d:\temp
    Quote Quote  
  4. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Using the same command line to mplayer can not do?
    Quote Quote  
  5. I couldn't figure out how to specify a different drive because the program uses : as a delimiter. But you can specify a folder on the same drive:

    Code:
    "c:\program files\smplayer\mplayer\mplayer" -vo png:outdir="\temp files" %1
    That will put all the PNG files in a folder called "temp files" in the root of the current drive. Or:

    Code:
    "c:\program files\smplayer\mplayer\mplayer" -vo png:outdir="temp files" %1
    That will put the files in a folder called "temp files" in the current folder.

    The program will create the folder if it doesn't exist.

    http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
    Quote Quote  
  6. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Thanks again jagabo, now I'll get to do everything in Autoit.
    Quote Quote  
  7. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    In some cases it is the audio .wav more I'm not conseguingo include the .wav audio in the video file.

    "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"
    I need to put .wav audio in the video file.
    Quote Quote  
  8. Just change "mp3" to "wav".
    Quote Quote  
  9. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    This was the first thing I did more did not work, I think to include the .wav codec is another!

    EDITED: The file that was created is zero bits long
    Last edited by Belini; 12th Jan 2015 at 08:11.
    Quote Quote  
  10. Are your PNG files in the same folder? Do they have the same 8 digit number format with leading zeros? Does the wav file have the same base name as the MNG source? Do you realize that ffmpeg command line is to be used as part the earlier batch file?
    Last edited by jagabo; 12th Jan 2015 at 09:00.
    Quote Quote  
  11. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    Yes to all questions, just changed the audio file to .wav and bat changed the extension to .wav
    Quote Quote  
  12. Add a PAUSE at the end of the script. What error message do you get?

    By the way, it worked fine for me with your sample and the MP3 file converted to a WAV file:

    Code:
    General
    Unique ID                                : 340039604353839567259404826524871815652 (0xFFD13EE1A0023086B4AEDBD2582FF1E4)
    Complete name                            : C:\Users\John\Desktop\MPNG to MKV\_VIDEO1.mkv
    Format                                   : Matroska
    Format version                           : Version 4 / Version 2
    File size                                : 2.82 MiB
    Duration                                 : 13s 695ms
    Overall bit rate                         : 1 727 Kbps
    Writing application                      : Lavf56.12.100
    Writing library                          : Lavf56.12.100
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.0
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 5 frames
    Codec ID                                 : V_MPEG4/ISO/AVC
    Duration                                 : 13s 694ms
    Width                                    : 360 pixels
    Height                                   : 270 pixels
    Display aspect ratio                     : 4:3
    Frame rate mode                          : Constant
    Frame rate                               : 59.880 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Writing library                          : x264 core 142 r2479 dd79a61
    Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Default                                  : Yes
    Forced                                   : No
    
    Audio
    ID                                       : 2
    Format                                   : PCM
    Codec ID                                 : A_PCM/INT/LIT
    Duration                                 : 13s 695ms
    Bit rate mode                            : Constant
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 KHz
    Bit depth                                : 16 bits
    Default                                  : Yes
    Forced                                   : No
    Quote Quote  
  13. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    I did tests and found that the error only happens if the conversion is to .mp4 and if the conversion is to .avi or .mkv works even using the audio .wav

    Click image for larger version

Name:	Erro mp4.JPG
Views:	485
Size:	75.8 KB
ID:	29660
    Quote Quote  
  14. No uncompressed PCM in MP4, I guess. Compress the audio with AAC, MP3, or whatever.
    Quote Quote  
  15. Member Belini's Avatar
    Join Date
    Aug 2011
    Location
    Brazil
    Search Comp PM
    The problem that other people will also use, for while I removed the option to save in .mp4 format more right is finding the right setting to use in .wav format .mp4 too.



    If you find the correct command line to use .wav format .mp4 you can post so I make the correction.
    Download converter made in Autoit: https://www.dropbox.com/s/7xupm581sv76rgx/Mng%20to%20video%20converter.rar?dl=0
    Quote Quote  
  16. If you leave out the "-acodec copy" you will get AAC audio at 128 kbps. Apparently the MP4 container doesn't allow PCM audio.
    Quote Quote  
  17. Member
    Join Date
    Sep 2015
    Location
    france
    Search PM
    Hello Belini,

    Thanks a lot for providing your Autoit application for mng conversion.

    But unfortunately, it's not usable because as soon as the converted files
    are created by the app with png files in the dedicated folder, all are removed ...
    So we can't get them.

    Could you modify it in order the converted files are not in the same place as
    png temporary files ?

    Thanks in advance.

    Fabien
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!