How to convert 1 video type to another based on -i
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)
On Friday, June 30, 2017 10:23:22 AM CDT Dan Violet Sagmiller wrote:
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. 😊
ffmpeg -i <source> -s 640x360 -r 24000/1001 -pix_fmt yuv420p -c:v libx264 - profile:v baseline -b:v 640k -c:a aac -ar 22050 -ab 64k -f mp4 <output>
participants (2)
-
Dan Violet Sagmiller -
Reuben Martin