New submission from Udayakumar Rayala <[email protected]>:

I am getting the following error when trying to cut a video file.

[3gp @ 0x9d60d00]track 1: codec frame size is not set

I did debug the code and found out that for amrnb audio codec, the 
following condition is failing,

if(!st->codec->frame_size && !av_get_bits_per_sample(st->codec-
>codec_id)) in libavformat/movenc.c:2091

The command and the error log is below:

./ffmpeg -i ~/Tools/video-2010-12-09-19-17-44.3gp -vcodec copy -acodec 
copy -ss 6 -t 5  ~/Tools/video.3gp
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Dec 27 2010 14:45:48 with gcc 4.4.3
  configuration: --prefix=/home/uday/mount/ffmpeg-lib/ --enable-static -
-disable-shared
  WARNING: library configuration mismatch
  libavutil   configuration: --disable-stripping --enable-shared
  libavcodec  configuration: --disable-stripping --enable-shared
  libavformat configuration: --disable-stripping --enable-shared
  libavdevice configuration: --disable-stripping --enable-shared
  libswscale  configuration: --disable-stripping --enable-shared
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/uday/Tools/video-2010-12-
09-19-17-44.3gp':
  Metadata:
    major_brand     : 3gp4
    minor_version   : 768
    compatible_brands: 3gp43gp6
  Duration: 00:00:16.43, start: 0.000000, bitrate: 791 kb/s
    Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
    Stream #0.1(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 
772 kb/s, 14.78 fps, 15 tbr, 15k tbn, 15 tbc
File '/home/uday/Tools/video.3gp' already exists. Overwrite ? [y/N] y
[3gp @ 0x9d60d00]track 1: codec frame size is not set
Output #0, 3gp, to '/home/uday/Tools/video.3gp':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 
q=2-31, 772 kb/s, 15 tbn, 15 tbc
    Stream #0.1(eng): Audio: samr / 0x726D6173, 8000 Hz, 1 channels, 12 
kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)
File 'Video_With_AMR-NB_Audio.3gp' not attached - you can download it from 
https://roundup.ffmpeg.org/file1248.

----------
files: Video_With_AMR-NB_Audio.3gp
messages: 13131
priority: normal
status: new
substatus: new
title: FFMpeg - Codec frame size not set
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2468>
________________________________________________

Reply via email to