I am writing a batch file to automate mp4 to mkv remuxing, but i need to be able to use the output of my last command as a variable, eg:
Code: Select all
C:\Users\Skwirrel\Desktop\ \video>mp4box "files\12 S01E01 Pilot - Schijn Bedriegt.mp4" -info 1
Track # 1 Info - TrackID 1 - TimeScale 25000 - Duration 01:03:38.960
Media Info: Language "Undetermined" - Type "vide" - Sub Type "avc1" - 95474 samples
Handler name: mctemp7772622bfc7153d5.264#video:fps=25:par=1:1 - Imported with GPAC 0.4.6-DEV-rev3923
MPEG-4 Config
Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 720 x 576 - Profile High @ Level 3
Pixel Aspect Ratio 1:1 - Indicated track size 720 x 576
Decoding Buffer size 108277 - Average bitrate 967 kbps - Max Bitrate 4620 kbps
No stream dependencies for decoding
StreamPriority 0
Computed info from media:
Total size 473179007 bytes - Total samples duration 3818959 ms
Average rate 968 kbps - Max Rate 4620 kbps
I only need the first line of the output of this command, actually only the value of the timescale: 25000, but I really don't know how to do this (I only discovered the use of .bat-files yesterday ).
Thanks to anyone who can help me with this ,
Skwirrel