[FFmpeg-devel] [PATCH] Dump output format in case of codec type mismatch

Stefano Sabatini stefano.sabatini-lala
Sun Jul 27 20:03:10 CEST 2008


Hi all, as in subject.

For example:
src/ffmpeg/ffmpeg -t 0 -i ~/test.flv -f rtp -map 0.0:0.0 rtp://localhost:5008
[...]
Input #0, flv, from '/home/stefano/test.flv':
  Duration: 00:00:30.01, start: 0.000000, bitrate: 96 kb/s
    Stream #0.0: Video: vp6f, yuv420p, 320x240, 25.00 tb(r)
    Stream #0.1: Audio: mp3, 44100 Hz, mono, 96 kb/s
Output #0, rtp, to 'rtp://localhost:5008':
    Stream #0.0: Audio: pcm_mulaw, 44100 Hz, mono, 352 kb/s
Codec type mismatch for mapping #0.0 -> #0.0

With the patch it becomes:
src/ffmpeg/ffmpeg -i ~/test.flv -f rtp -map 0.0:0.0 rtp://localhost:5008
[...]
Input #0, flv, from '/home/stefano/test.flv':
  Duration: 00:00:30.01, start: 0.000000, bitrate: 96 kb/s
    Stream #0.0: Video: vp6f, yuv420p, 320x240, 25.00 tb(r)
    Stream #0.1: Audio: mp3, 44100 Hz, mono, 96 kb/s
Output #0, rtp, to 'rtp://localhost:5008':
    Stream #0.0: Audio: pcm_mulaw, 44100 Hz, mono, 352 kb/s
Codec type mismatch for mapping #0.0 -> #0.0

which is far easier to debug.

Regards.
-- 
FFmpeg = Faboulous and Fiendish Meaningful Purposeless Evangelical Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: more-clear-error-if-codec-type-mismatch-00.patch
Type: text/x-diff
Size: 696 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080727/0f271ecb/attachment.patch>



More information about the ffmpeg-devel mailing list