[FFmpeg-user] 答复: Can someone point me to a libavformat file

刘 猛 meng.work at outlook.com
Fri Jun 1 11:35:39 EEST 2018


run : ffmpeg -i flame.avi  ,then the output is:

ffmpeg version 2.8.14-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, avi, from 'flame.avi':
  Duration: 00:00:03.14, start: 0.000000, bitrate: 736 kb/s
    Stream #0:0: Video: indeo4 (IV41 / 0x31345649), yuv410p, 256x240, 731 kb/s, 35 fps, 35 tbr, 35 tbn, 35 tbc

From the output, we can konw that the codec of video in flame.avi is not h264. So, you can not use  -vcodec copy .

try this:
ffmpeg -i flame.avi -c:v libx264 -f h264 stream1.h264


________________________________
发件人: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> 代表 Robert Clove <cloverobert at gmail.com>
发送时间: 2018年6月1日 1:11
收件人: FFmpeg user questions
主题: Re: [FFmpeg-user] Can someone point me to a libavformat file

Thanks for the reply.
i downloaded the avi file from here
engr.colostate.edu/me/facil/dynamics/avis.htm
<http://www.engr.colostate.edu/me/facil/dynamics/avis.htm> and did this
[http://www.engr.colostate.edu/me/facil/dynamics/images/cbw3.jpg]<http://www.engr.colostate.edu/me/facil/dynamics/avis.htm>

High Speed Camera Sample AVI's - Home - Walter Scott, Jr ...<http://www.engr.colostate.edu/me/facil/dynamics/avis.htm>
www.engr.colostate.edu
High Speed Camera Sample AVI's drop.avi (660K) flame.avi (282K) bird.avi (1.42MB) cbw3.avi (817KB)



ffmpeg.exe -i flame.avi -an -vcodec copy stream1.h264, i am getting error
on this.

On Fri, Jun 1, 2018 at 1:26 PM, Moritz Barsnick <barsnick at gmx.net> wrote:

> On Fri, Jun 01, 2018 at 11:33:26 +0530, Robert Clove wrote:
> > Can someone point me to a libavformat file for which i can use the
>
> What is a libavformat file? You probably mean an AVI file?
>
> > following command ffmpeg -i abc.avi -an -vcodec copy stream.264
>
> Provided your ffmpeg supports H.264 encoding, e.g. with libx264, you
> can create your own:
>
> $ ffmpeg -f lavfi -i testsrc2=d=10 -c:v libx264 abc.avi
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list