-2

I am using such a command to convert to mkv

fmpeg -f rawvideo -vcodec rawvideo -s 1920x1080 -r 25 -pix_fmt yuv420p -i input.yuv output_full_hd.mkv 

But the output of the terminal's console contains too much information. Is it possible to get only this sample output on the console?

Input #0, rawvideo, from 'input.yuv':
  Duration: 00:10:27.64, start: 0.000000, bitrate: 622080 kb/s
   Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, 622080 kb/s, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
Output #0, matroska, to 'output_full_hd.mkv':
  Metadata:
     encoder         : Lavf58.45.100
     Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1920x1080, q=-1--1, 25 fps, 1k tbn, 25 tbc
     Metadata:
       encoder         : Lavc58.91.100 libx264
     Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=15691 fps=7.3 q=-1.0 Lsize=  273565kB time=00:10:27.52 bitrate=3571.3kbits/s speed=0.292x
video:273446kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.043536%
Mateusz
  • 19
  • 3
  • Why do you want to do that? Do you need to parse the output? What information are you trying to parse/acquire? – llogan May 16 '21 at 00:28
  • I need information for my research. Yes, but the analysis of this data is basic. It needs to get basic information about the input and output file, without the details it gets in the console. – Mateusz May 16 '21 at 09:35
  • That's what `ffprobe` is for. See [ffprobe documentation](https://ffmpeg.org/ffprobe.html) and [FFmpeg Wiki: ffprobe](https://trac.ffmpeg.org/wiki/FFprobeTips). If you tell me exactly what info you need I can provide example commands. – llogan May 16 '21 at 17:51

0 Answers0