[FFmpeg-user] How to Decode h264 Video Stream?

Myth 286166657 at qq.com
Tue Sep 18 09:09:13 CEST 2012


Hi Roger,
  
 I have tried the below command as you said, the h264 file is the raw file.
 #ffmpeg -f h264 -i /work/sharefolder/stupid/H264_30fps_1Mbps_640x480_track1.h264 
I got below messages:
 ffmpeg version N-44390-g0c5fe2f Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 13 2012 09:46:59 with gcc 4.5.3 (Gentoo 4.5.3-r2 p1.1, pie-0.4.7)
  configuration: --arch=x86 --target-os=linux
  libavutil      51. 72.100 / 51. 72.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 26.101 / 54. 26.101
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 16.103 /  3. 16.103
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
[h264 @ 0x954d540] max_analyze_duration 5000000 reached at 5033208
[h264 @ 0x954d540] Estimating duration from bitrate, this may be inaccurate
Input #0, h264, from '/work/sharefolder/stupid/H264_30fps_1Mbps_640x480_track1.h264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 1200k tbn, 60 tbc
At least one output file must be specified

 How can I get the picture frames just like doc/examples/decoding_encoding.c does.
  
 Thanks,
 Stefan

  ------------------ Original ------------------
  From:  "Roger Pack"<rogerdpack2 at gmail.com>;
 Date:  Sat, Sep 15, 2012 00:22 AM
 To:  "FFmpeg user questions"<ffmpeg-user at ffmpeg.org>; 
 
 Subject:  Re: [FFmpeg-user] How to Decode h264 Video Stream?

 

>  I'm new of FFmpeg, I want to decode an h264 video stream. I have built the latest FFmpeg source code successfully. But I don't know how to use ffmpeg binary, the argument is too complex. Who can help me ?

It's a "raw" h264 stream? (I guess that's possible?)

If it is then

ffmpeg -format h264 -i input ...
might work...

-roger-
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list