Creating a log file for my ffmpeg output

23,757

ffmpeg logs to stderr, so you have to check that. Since you're already outputting to stdout, you have to redirect stderr to a file, for example:

ffmpeg … 2> log.txt
Share:
23,757

Related videos on Youtube

Andrew Simpson
Author by

Andrew Simpson

A contractor trying to make a living...

Updated on September 18, 2022

Comments

  • Andrew Simpson
    Andrew Simpson almost 2 years

    I am trying to find out why my rtsp dos command using FFMPEG is 'freezing'. Ihave been told I would have more luck on SuperUser but I have been told to produce a log file 1st.

    I have looked and I have tried several things to produce this log file.

    My original command line was this:

    ffmpeg.exe  -i rtsp://admin:[email protected]:554/video_1 -an -f image2pipe -vf fps=fps=6 -qscale 0 -
    

    and changed it to this:

    ffmpeg.exe  -i rtsp://admin:[email protected]:554/video_1 -an -f image2pipe -vf fps=fps=6 -qscale 0 - > log.txt
    

    But the DOS does not get beyond this:

    enter image description here

    and the log file is empty.

    Please can someone advise?

    Thanks

    • slhck
      slhck over 9 years
      ffmpeg logs to stderr, so you have to check that. Redirect 2> to a file.
    • Andrew Simpson
      Andrew Simpson over 9 years
      I am sure I tried that already but will give it another go when I am back. Thanks
    • slhck
      slhck over 9 years
      Well, I guess it worked.
    • slhck
      slhck over 9 years
      No problem :) I just wasn't sure as I didn't have a Windows instance to test.
  • user25
    user25 about 6 years
    what about android?