[FFmpeg-devel] [RFC] stream parsing

Benjamin Larsson banan
Sat Sep 25 23:17:56 CEST 2010


> looks good to me once reimar agrees too
> 
> [...]
> 

Patch attached.

https://roundup.ffmpeg.org/issue2137

Before patch:

Input #0, avi, from 'dts2.avi':
  Duration: 00:54:50.59, start: 0.000000, bitrate: 3 kb/s
    Stream #0.0: Video: h264, yuv420p, 1920x800, 23.98 tbr, 23.98 tbn,
47.95 tbc
    Stream #0.1: Audio: dca, 48000 Hz, 5 channels, s16, 1509 kb/s


Input #0, matroska,webm, from 'fix.mkv':
  Duration: 00:01:00.01, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR 16:9,
23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: dca, 48000 Hz, 6 channels, s16


After patch:

Input #0, avi, from 'dts2.avi':
  Metadata:
    ISFT            : VirtualDubMod 1.5.10.1 (Build 2366/Release)
  Duration: 00:54:50.59, start: 0.000000, bitrate: 3 kb/s
    Stream #0.0: Video: h264, yuv420p, 1920x800, 23.98 fps, 23.98 tbr,
23.98 tbn, 47.95 tbc
    Stream #0.1: Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s

Input #0, matroska,webm, from 'fix.mkv':
  Duration: 00:01:00.01, start: 0.000000, bitrate: 768 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR 16:9,
23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: dca, 48000 Hz, stereo, s16, 768 kb/s



A few lines above the changes in av_find_stream_info are the same things
done for AAC only. It should be possible to remove that code and add the
capability to the codec definition instead. But I leave that to the aac
codec maintainer for now.

MvH
Benjamin Larsson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: channel_conf.diff
Type: text/x-patch
Size: 1827 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100925/06b0cc87/attachment.bin>



More information about the ffmpeg-devel mailing list