Opened 13 years ago
Closed 13 years ago
#490 closed defect (fixed)
mpeg stream autodetected as psxstr
| Reported by: | Alex | Owned by: | |
|---|---|---|---|
| Priority: | important | Component: | avformat |
| Version: | git-master | Keywords: | regression |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
Description: Invalid pixel format '-1' for mdec video
Version: latest trunk
URL: see attached file
Steps that will reproduce the problem?
- ffmpeg -i sample.mpg sample.m4v
What is the expected result?
The converted file.
What happens instead?
Error message: "Invalid pixel format '-1' Error opening filters!"
Possible workaround:
File plays fine using VLC.
Any additional information:
- Example file: attached
- Command:
$ ffmpeg -i sample.mpg sample.m4v ffmpeg version N-30087-g7491816, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 20 2011 08:16:42 with clang 2.1 (tags/Apple/clang-163.7.1) configuration: --enable-zlib --disable-debug --enable-libfaac --enable-libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang libavutil 51. 16. 1 / 51. 16. 1 libavcodec 53. 16. 0 / 53. 16. 0 libavformat 53. 12. 0 / 53. 12. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 2 / 2. 43. 2 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [psxstr @ 0x7fdbd903d800] Invalid parameters 68 4 63627 [psxstr @ 0x7fdbd903d800] missmatching sector_count Last message repeated 135 times [psxstr @ 0x7fdbd903d800] Could not find codec parameters (Video: mdec, 57345x9) [psxstr @ 0x7fdbd903d800] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: inf (1/0) -> 15.00 (15/1) Input #0, psxstr, from 'sample.mpg': Duration: N/A, bitrate: N/A Stream #0.0: Video: mdec, 57345x9, 15 tbr, 15 tbn Stream #0.1: Audio: adpcm_xa, 37800 Hz, 1 channels, s16 Stream #0.2: Audio: adpcm_xa, 37800 Hz, 1 channels, s16 [buffer @ 0x7fdbd8c19fe0] Invalid pixel format '-1' Error opening filters! $
Attachments (1)
Change History (5)
by , 13 years ago
| Attachment: | sample-issue-490.mpg added |
|---|
comment:1 by , 13 years ago
| Component: | undetermined → avformat |
|---|---|
| Keywords: | regression added |
| Priority: | normal → important |
| Reproduced by developer: | set |
| Status: | new → open |
| Summary: | Invalid pixel format '-1' for mdec video → mpeg stream autodetected as psxstr |
| Version: | unspecified → git-master |
comment:4 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | open → closed |
locally fixed will push once it passes tests
Note:
See TracTickets
for help on using tickets.



(Workaround is to use ffmpeg -f mpeg -i sample-issue-490.mpg)
Works fine with 0.5
$ ffmpeg -v 9 -loglevel 99 -i sample-issue-490.mpg ffmpeg version N-32709-gf5899f0, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 19 2011 18:13:19 with icc 9999 configuration: --cc=/opt/intel/composer_xe_2011_sp1.6.233/bin/ia32/icc libavutil 51. 16. 0 / 51. 16. 0 libavcodec 53. 16. 0 / 53. 16. 0 libavformat 53. 12. 0 / 53. 12. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 2 / 2. 43. 2 libswscale 2. 1. 0 / 2. 1. 0 [psxstr @ 0x9016aa0] Format psxstr probed with size=4096 and score=50 [psxstr @ 0x9016aa0] Invalid parameters 68 4 63627 [psxstr @ 0x9016aa0] missmatching sector_count Last message repeated 3 times st:1 removing common factor 8 from timebase st:2 removing common factor 8 from timebase [psxstr @ 0x9016aa0] missmatching sector_count Last message repeated 131 times [psxstr @ 0x9016aa0] Could not find codec parameters (Video: mdec, 57345x9, 0/1) [psxstr @ 0x9016aa0] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: inf (1/0) -> 15.00 (15/1) Input #0, psxstr, from 'sample-issue-490.mpg': Duration: N/A, bitrate: N/A Stream #0:0, 0, 1/15: Video: mdec, 57345x9, 0/1, 15 tbr, 15 tbn Stream #0:1, 18, 16/4725: Audio: adpcm_xa, 37800 Hz, 1 channels, s16 Stream #0:2, 18, 16/4725: Audio: adpcm_xa, 37800 Hz, 1 channels, s16 At least one output file must be specifiedWith psxstr autodetection disabled:
$ ffmpeg -v 9 -loglevel 99 -i sample-issue-490.mpg ffmpeg version N-32709-gf5899f0, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 19 2011 18:13:19 with icc 9999 configuration: --cc=/opt/intel/composer_xe_2011_sp1.6.233/bin/ia32/icc libavutil 51. 16. 0 / 51. 16. 0 libavcodec 53. 16. 0 / 53. 16. 0 libavformat 53. 12. 0 / 53. 12. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 2 / 2. 43. 2 libswscale 2. 1. 0 / 2. 1. 0 [mpeg @ 0x9016aa0] Format mpeg probed with size=8192 and score=52 [mpeg @ 0x9016aa0] probing stream 0 pp:2500 [mpeg @ 0x9016aa0] Probe with size=2288, packets=1 detected mpegvideo with score=25 [mpeg @ 0x9016aa0] probing stream 0 pp:2499 [mpeg @ 0x9016aa0] Probe with size=4576, packets=2 detected mpegvideo with score=25 [mpeg @ 0x9016aa0] probing stream 0 pp:2498 [mpeg @ 0x9016aa0] probing stream 0 pp:2497 [mpeg @ 0x9016aa0] Probe with size=9152, packets=4 detected mpegvideo with score=51 [mpeg @ 0x9016aa0] probed stream 0 [mpeg2video @ 0x901cde0] Unsupported bit depth: 0 Input #0, mpeg, from 'sample-issue-490.mpg': Duration: 00:00:02.11, start: 0.221622, bitrate: 1546 kb/s Stream #0:0[0x1e0], 53, 1/90000: Video: mpeg2video (Main), yuv420p, 480x576 [SAR 8:5 DAR 4:3], 1/50, 2350 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1c1], 66, 1/90000: Audio: mp2, 44100 Hz, stereo, s16, 192 kb/s Stream #0:2[0x1c0], 66, 1/90000: Audio: mp2, 44100 Hz, stereo, s16, 192 kb/s At least one output file must be specified