1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ffmpeg syntax question

Discussion in 'Black Hat SEO' started by AnotherUsername, Jan 29, 2015.

  1. AnotherUsername

    AnotherUsername Registered Member

    Joined:
    Dec 19, 2014
    Messages:
    93
    Likes Received:
    14
    Do you guys know how i make full paths for ffmpeg and/or make it work in a bat file?

    Here is what I made so far:

    Code:
    F:
    cd\fftest
    ffmpeg -r 1/5 -i %01d.png -c:v libx264 -vf fps=25 -pix_fmt yuv420p fftest.mp4
    pause
    Looking at the output on the terminal it does change the directory to the correct one but when ffmpeg runs it ignores it and says the documents folder is the input thus making an error.
     
  2. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    7,309
    Likes Received:
    8,274
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    alternatively you could try specifying a different file name for the output file, so even if it's saved in the input directory, it wouldn't overwrite the input file, so there shouldn't be any error
    not sure if it works this way though, just an idea, i used ffmpeg with cmd line maybe once :)
     
  3. DarkPixel

    DarkPixel Jr. VIP Jr. VIP

    Joined:
    Oct 4, 2011
    Messages:
    1,348
    Likes Received:
    1,252
    Location:
    ↓↓↓↓
    Home Page:
    For full paths, just put the path in double quotes.
     
    • Thanks Thanks x 1
  4. AnotherUsername

    AnotherUsername Registered Member

    Joined:
    Dec 19, 2014
    Messages:
    93
    Likes Received:
    14
    Still doesnt work :( its still trying to run ffmpeg from the documents directory for some reason.
     
  5. DarkPixel

    DarkPixel Jr. VIP Jr. VIP

    Joined:
    Oct 4, 2011
    Messages:
    1,348
    Likes Received:
    1,252
    Location:
    ↓↓↓↓
    Home Page:
    This is what I use in a bot of mine, and it works well:
    I think it's self explanatory. If it doesn't work, then I think you might be doing something wrong.
     
  6. AnotherUsername

    AnotherUsername Registered Member

    Joined:
    Dec 19, 2014
    Messages:
    93
    Likes Received:
    14
    It isnt self explanatory :D i only jsut started using ffmpeg so have no idea what that gibberish means :D

    My code works when i do it manually but doesnt work thru bat file which is why im confused.
     
  7. qrazy

    qrazy Senior Member

    Joined:
    Mar 19, 2012
    Messages:
    1,115
    Likes Received:
    1,725
    Location:
    Banana Republic
    Posting the ffmpeg error will be of some help.
     
  8. AnotherUsername

    AnotherUsername Registered Member

    Joined:
    Dec 19, 2014
    Messages:
    93
    Likes Received:
    14
    Never mind figured out through some searching ye old internet. Just had to put an extra % by the first one in the line to escape it so it would be ignored by the shell.