[FFmpeg-devel] [PATCH] Improve error message when there are no streams in an output file

Stefano Sabatini stefano.sabatini-lala
Sun Nov 16 19:55:35 CET 2008


Hi.

Example:

Without the patch:

stefano at geppetto ~/s/ffmpeg> ffmpeg -i test.wmv test.flv -an -vn test2.mpeg test3.avi  -y
[...]
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from 'test.wmv':
  Duration: 00:00:26.94, start: 3.100000, bitrate: 361 kb/s
    Stream #0.0: Video: msmpeg4, yuv420p, 320x240, 25.00 tb(r)
    Stream #0.1: Audio: mp3, 44100 Hz, mono, s16, 64 kb/s
Output file does not contain any stream

Patched:

stefano at geppetto ~/s/ffmpeg> ffmpeg -i test.wmv test.flv -an -vn test2.mpeg test3.avi  -y
[...]
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from 'test.wmv':
  Duration: 00:00:26.94, start: 3.100000, bitrate: 361 kb/s
    Stream #0.0: Video: msmpeg4, yuv420p, 320x240, 25.00 tb(r)
    Stream #0.1: Audio: mp3, 44100 Hz, mono, s16, 64 kb/s
Output #1, mpeg, to 'test2.mpeg':
Output file #1 does not contain any stream

Regards.
-- 
FFmpeg = Frightening & Funny Minimalistic Power Elected Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Name: improve-no-strms-msg-00.patch
Type: text/x-diff
Size: 574 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081116/7ac18f4e/attachment.patch>



More information about the ffmpeg-devel mailing list