11-19-2013 09:55 AM - edited 03-13-2019 08:25 PM
Need to play some video files from DMP, but not sure what is the right format and which tool to use.
This video plays correctly:
ffmpeg -i <video file>
Input #0, mpeg, from 'ATT_Telepresence_Scheduling.mpg':
Duration: 00:07:14.08, start: 0.522456, bitrate: 474 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 600x340 [SAR 1:1 DAR 30:17], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16p, 128 kb/s
This file does not play:
Input #0, mpegts, from 'Telepresence_part2.ts':
Duration: 00:02:32.83, start: 1.000000, bitrate: 8783 kb/s
Program 1
Stream #0:0[0x45]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 163 kb/s
Stream #0:1[0x44]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.92 fps, 29.92 tbr, 90k tbn, 59.82 tbc
How to perform the conversion to mpeg and to video mpeg2video and audio mp2?
11-20-2013 02:16 PM
It's probably because that file ends in a .ts extension. Try changing the .ts to .mpg.
11-20-2013 02:23 PM
I tried this command and worked fine:
ffmpeg -i
inputfile
-codec:v
mpeg2video
-qscale:v 2 -codec:a
mp2
-b:a 192k
outputfile.mpg
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide