[FFmpeg-trac] #253(avformat:open): invalid stream time_base for avi/aac, after av_write_header()

FFmpeg trac at avcodec.org
Mon Aug 15 21:05:57 CEST 2011


#253: invalid stream time_base for avi/aac, after av_write_header()
-------------------------------------------------+-------------------------
Reporter:  Andrew                                |       Owner:
    Type:  defect                                |      Status:  open
Priority:  normal                                |   Component:  avformat
 Version:  git-master                            |  Resolution:
Keywords:  avi aac after av_write_header stream  |  Blocked By:
  time_base                                      |  Reproduced:  0
Blocking:                                        |
Analyzed:  0                                     |
-------------------------------------------------+-------------------------

Comment (by rhuddusa):

 unfortunately, i don't have a public sample available right now, but when
 i do, i will open a new ticket and attach a short sample

 only other information i can add, is that if i do a ffmpeg with vcodec
 copy, acodec copy, on my working AVI/ac3 6 channel file

 [STREAM]
 index=1
 codec_name=ac3
 codec_long_name=ATSC A/52A (AC-3)
 codec_type=audio
 codec_time_base=0/1
 codec_tag_string=[0] [0][0]
 codec_tag=0x2000
 sample_rate=48000.000000
 channels=6
 bits_per_sample=0
 r_frame_rate=0/0
 avg_frame_rate=0/0
 time_base=1/56000
 start_time=0.000000
 duration=N/A
 nb_frames=303959040
 [/STREAM]


 the output is with format avi:
 [STREAM]
 index=1
 codec_name=ac3
 codec_long_name=ATSC A/52A (AC-3)
 codec_type=audio
 codec_time_base=0/1
 codec_tag_string=[0] [0][0]
 codec_tag=0x2000
 sample_rate=48000.000000
 channels=6
 bits_per_sample=0
 r_frame_rate=0/0
 avg_frame_rate=0/0
 time_base=4/125
 start_time=0.000000
 duration=2475.520000
 nb_frames=77360
 [/STREAM]


 and the output is with format mov:
 [STREAM]
 index=1
 codec_name=ac3
 codec_long_name=ATSC A/52A (AC-3)
 codec_type=audio
 codec_time_base=0/1
 codec_tag_string=ac-3
 codec_tag=0x332d6361
 sample_rate=48000.000000
 channels=6
 bits_per_sample=0
 r_frame_rate=0/0
 avg_frame_rate=0/0
 time_base=1/48000
 start_time=0.000000
 duration=2453.248000
 nb_frames=76664
 [/STREAM]

 so that's my theory that this is specific to avi, i get that
 time_base=4/125, but works correctly under mov format where i get a
 time_base=1/48000.  i can't find a way to change the resulting avi
 time_base value

 but unfortunately, the xbox 360 only takes 6 channel audio with AVI and
 ac3

 sorry to complain without an actual test case ... i'll work on providing
 one

-- 
Ticket URL: <http://avcodec.org/trac/ffmpeg/ticket/253#comment:8>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list