Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#1803 closed enhancement (duplicate)

FFmpeg is unable to process MPEG-PS streams wrapped in MOV

Reported by: pettter Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mov mpeg m1s
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

The file http://titan.codemill.se/~peteri/scarecrowdance2.mov is a MOV-wrapped MPEG-PS with a video and an audio stream inside (mpeg1video/mp2, respectively). Discussions in #ffmpeg-devel seem to indicate that this could be handled in a similar way to DV-in-AVI, but at the moment, ffmpeg simply fails.

File info:

ffprobe version N-37608-g0b717e2 Copyright (c) 2007-2012 the FFmpeg developers
  built on Oct 10 2012 12:13:56 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/home/pettter/dev/ffmpeg-official/dist/ --enable-shared --enable-debug --disable-stripping --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvorbis --enable-debug --disable-asm --disable-stripping
  libavutil      51. 74.100 / 51. 74.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 31.100 / 54. 31.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'scarecrowdance2.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2006-11-10 01:06:07
  Duration: 00:00:49.82, bitrate: 10458 kb/s
    Stream #0:0(eng): Data: none (m1s  / 0x2073316D)
    Metadata:
      creation_time   : 2006-11-10 01:06:07
      handler_name    : Apple Alias Data Handler
Unsupported codec with id 0 for input stream 0
[STREAM]
index=0
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=data
codec_time_base=0/1
codec_tag_string=m1s 
codec_tag=0x2073316d
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=N/A
start_time=N/A
duration_ts=4484160
duration=49.824000
bit_rate=10458245
nb_frames=1
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
TAG:creation_time=2006-11-10 01:06:07
TAG:language=eng
TAG:handler_na
[FORMAT]
filename=scarecrowdance2.mov
nb_streams=1
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=N/A
duration=49.824000
size=65134946
bit_rate=10458404
TAG:major_brand=qt  
TAG:minor_version=537199360
TAG:compatible_brands=qt  
TAG:creation_time=2006-11-10 01:06:07
[/FORMAT]

File info when the first 990 bytes (basically the MOV header) have been dropped:

ffprobe version N-37608-g0b717e2 Copyright (c) 2007-2012 the FFmpeg developers
  built on Oct 10 2012 12:13:56 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/home/pettter/dev/ffmpeg-official/dist/ --enable-shared --enable-debug --disable-stripping --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvorbis --enable-debug --disable-asm --disable-stripping
  libavutil      51. 74.100 / 51. 74.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 31.100 / 54. 31.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Input #0, mpeg, from 'scare.mpeg':
  Duration: 00:00:49.76, start: 0.070000, bitrate: 10470 kb/s
    Stream #0:0[0x1c0]: Audio: mp2, 32000 Hz, mono, s16, 64 kb/s
    Stream #0:1[0x1e0]: Video: mpeg1video, yuv420p, 640x480 [SAR 1:1 DAR 4:3], 104857 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc
[STREAM]
index=0
codec_name=mp2
codec_long_name=MP2 (MPEG audio layer 2)
profile=unknown
codec_type=audio
codec_time_base=1/32000
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
sample_fmt=s16
sample_rate=32000
channels=1
bits_per_sample=0
id=0x1c0
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=6300
start_time=0.070000
duration_ts=N/A
duration=N/A
bit_rate=64000
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[STREAM]
index=1
codec_name=mpeg1video
codec_long_name=MPEG-1 video
profile=unknown
codec_type=video
codec_time_base=1/30
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
width=640
height=480
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=4:3
pix_fmt=yuv420p
level=-99
timecode=00:00:00:00
id=0x1e0
r_frame_rate=30/1
avg_frame_rate=30/1
time_base=1/90000
start_pts=6300
start_time=0.070000
duration_ts=4479000
duration=49.766667
bit_rate=104857200
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[FORMAT]
filename=scare.mpeg
nb_streams=2
format_name=mpeg
format_long_name=MPEG-PS (MPEG-2 Program Stream)
start_time=0.070000
duration=49.766667
size=65133956
bit_rate=10470294
[/FORMAT]

Change History (2)

comment:1 Changed 5 years ago by cehoyos

  • Keywords mov mpeg added
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of ticket #241.

comment:2 Changed 5 years ago by cehoyos

  • Keywords m1s added
Note: See TracTickets for help on using tickets.