ffmpeg CBR transcode
I am trying to convert a file stored on a dvd to mpeg2ts format using ffmpeg. I am looking out for a file that has constant bit rate of 4Mbps. Now i have been successful in transcoding the content, but how do i confirm that it is CBR, and it is 4Mbps. this is the command that i used to transcode using ffmpeg ... ./ffmpeg -i /mnt/cdrom/VIDEO_TS/VTS_02_1.VOB -v mpegts -b 3072 -s 4cif -map 0:0 -map 0:3 /home/work/media/snatch_test.ts ffmpeg version 0.4.9-pre1, build 4731, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-gpl --enable-a52 --enable--faad --enable-faac --prefix=/home/work/vlc/ffmpeg-20041113 built on May 20 2005 11:11:11, gcc: 3.3.3 20040412 (Red Hat Linux 3.3.3-7) Input #0, mpeg, from '/mnt/cdrom/VIDEO_TS/VTS_02_1.VOB': Duration: 00:36:54.5, start: 0.233567, bitrate: 3878 kb/s Stream #0.0: Video: mpeg2video, 720x480, 29.97 fps Stream #0.1: Audio: ac3, 48000 Hz, 5:1, 448 kb/s Stream #0.2: Audio: ac3, 48000 Hz, 5:1, 448 kb/s Stream #0.3: Audio: ac3, 48000 Hz, stereo, 192 kb/s Stream #0.4: Audio: ac3, 48000 Hz, stereo, 192 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.3 -> #0.1 Press [q] to stop encoding frame= 635 q=0.0 Lsize= 8518kB time=21.0 bitrate=3319.2kbits/s video:8046kB audio:164kB global headers:0kB muxing overhead 3.753051% this the output i get when i play it using ffplay.... ./ffplay /home/work/media/snatch_test1.ts -stats Input #0, mpegts, from '/home/work/media/snatch_test1.ts': Duration: 00:18:10.3, start: 0.000000, bitrate: 64 kb/s Stream #0.0[0x100]: Video: mpeg2video, 704x576, 29.97 fps Stream #0.1[0x101]: Audio: mp2, 48000 Hz, stereo, 64 kb/s Now, i want to know some things that i understand from the extract.... please correct me if i am wrong... number of frames encoded by ffmpeg = 635 video captured size 8046 KB audio captured size 164 KB time is 21 seconds what is bitrate 3319.2kbits/s and 3878kbits/s mentioned.... and what happened to 3072 that i specified in the command..... are there any sw tools to find out what is the bitrate of a stream that is coming from a mpeg2ts streamer..... how does the ffplay find out the file is mpeg2ts and pid's of the audio and video in the mpeg2ts file -- From, Vishwanath.A.Patil R&D Measurements and Controls India Ltd. Electronic City Bangalore 560100
participants (1)
-
patil.vishwanathï¼ gmail.com