[FFmpeg-user] converting to h.264 using ffmpeg

sudan landge coolsudan at gmail.com
Wed May 23 10:25:48 CEST 2012


Hi,

I downloaded the latest git checkout of ffmpeg and tried converting
mp4 file to h.264 using this command :

ffmpeg -i h264.mp4 -c:v copy -bsf:v h264_mp4toannexb -an out.h264

I got the following error:
ffmpeg version N-40958-gea5dab5 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 23 2012 13:15:12 with gcc 4.4.3
  configuration: --enable-libx264 --enable-gpl
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 76.100 /  2. 76.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample_mpeg4.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42mp41
    creation_time   : 2005-10-28 17:46:46
  Duration: 00:00:04.96, start: 0.000000, bitrate: 395 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz,
stereo, s16, 48 kb/s
    Metadata:
      creation_time   : 2005-10-28 17:46:46
      handler_name    : Apple Sound Media Handler
    Stream #0:1(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v /
0x7634706D), yuv420p, 190x240 [SAR 1:1 DAR 19:24], 341 kb/s, 30 fps,
30 tbr, 30 tbn, 1k tbc
    Metadata:
      creation_time   : 2005-10-28 17:46:46
      handler_name    : Apple Video Media Handler
File 'out.h264' already exists. Overwrite ? [y/N] y
Output #0, h264, to 'out.h264':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42mp41
    creation_time   : 2005-10-28 17:46:46
    encoder         : Lavf54.6.100
    Stream #0:0(eng): Video: mpeg4 (mp4v / 0x7634706D), yuv420p,
190x240 [SAR 1:1 DAR 19:24], q=2-31, 341 kb/s, 30 fps, 90k tbn, 30 tbc
    Metadata:
      creation_time   : 2005-10-28 17:46:46
      handler_name    : Apple Video Media Handler
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x924d4e0] Warning: SPS NALU missing or invalid. The resulting
stream may not play.
[NULL @ 0x924d4e0] Warning: PPS NALU missing or invalid. The resulting
stream may not play.
Failed to open bitstream filter h264_mp4toannexb for stream 0 with
codec copy: Invalid argument
frame=  149 fps=0.0 q=-1.0 Lsize=     206kB time=00:00:04.96 bitrate=
340.1kbits/s
video:207kB audio:0kB global headers:0kB muxing overhead -0.544530%


Could you please tell me which is the correct command to extract the
elementary stream out using ffmpeg. i want h.264 file from .mp4



thanks and regards,
Sudan

On 5/23/12, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> sudan landge <coolsudan <at> gmail.com> writes:
>
>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3,
>
> This is ancient (and broken), please see http://ffmpeg.org/download.html
> for supported versions, current git head is always strongly recommended.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list