[FFmpeg-user] How to convert 1 video type to another based on -i

Dan Violet Sagmiller game.dev at live.com
Fri Jun 30 18:23:22 EEST 2017


I have a video player with poor documentation.  I have one video that works (that came with a demo).

Is there any documentation that makes it easy to look at the info from one video and convert another video to match it’s codec/audio?

I’m relatively new to using ffmpeg.

This is from the working video (A):
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 65 kb/s (default)
    Metadata:
      creation_time   : 2010-02-09T01:55:39.000000Z
      handler_name    : Apple Sound Media Handler
    Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 640x360, 612 kb/s, 23.96 fps, 24 tbr, 600 tbn, 1200 tbc (default)


This is from the one that doesn’t work (B):
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 3840x1920 [SAR 1:1 DAR 2:1], 60520 kb/s, 30.03 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Side data:
      spherical: equirectangular (0.000000/0.000000/0.000000)
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 193 kb/s (default)

I want to figure out the right switches for this case, but also like to figure a better way to figure this out.  😊


  *   Thanks.  (I apologize if this is the wrong contact group, but it seemed the best I could find after searching a while)


More information about the ffmpeg-user mailing list