Wednesday, February 19, 2014

After compiling ffmpeg, which can not be used ffplay


Due to a previously decoded using android in inventory in many problems, recently prepared a new version of ffmpeg transplanted to the android. Because there is no contact with it before too ffmpeg, so you need to understand some things, such as how to use ffmpeg with ffplay to play simple basic questions h264 video files.

Now the question is, input after compilation:
ffplay test.video (test.video is h264 video files)

A playback window, but all black

The following is the terminal output:


Friends help answer understand, or have the porting process more familiar friends can talk about ideas

My ffmpeg version 2.1, use the following command to compile process:
. / Configure - enable-memalign-hack - enable-shared - disable-yasm
make
make install


ffplay normal output:


<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
There are no friends to help understand the answer under
Reply:
Played ffmpeg friends can discuss issues
Reply:
Look config parameters should add a - enable-h264
Reply:
No - enable-h264 this parameter options
Reply:
I also encountered the same problem, do you solve, if resolved, please tell me! ! ! Thanks! ! !
Reply:
TO u011916740:
Finally found a problem seems to be its own Ubuntu system. Then reinstall Ubuntu 12.04 LTS

Compile ffmpeg-2.1:
. / Configure - enable-ffplay - enable-shared
make
make install

SDL library:
sudo apt-get install libsdl1.2-dev

yasm:
sudo apt-get install yasm

Ffplay can play back the normal use. I hope for your help.
Reply:
Predecessors, Hello, I installed the SDL library and yasm, according to your approach in ubuntu12.04 compiler that generates ffplay, play a video, the video window flash 1s gone. Play audio-no problem, ask what special libraries to install it? What is the reason?
t @ ubuntu :/ home/hfl/hflsamb/ffmpeg-1.2.4 #. / ffplay abc.avi
ffplay version 1.2.4 Copyright (c) 2003-2013 the FFmpeg developers
built on Feb 6 2014 06:38:02 with gcc 4.6 (Ubuntu / Linaro 4.6.3-1ubuntu5)
configuration:
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
Input # 0, avi, from 'abc.avi': = 0KB vq = 0KB sq = 0B f = 0/0
Metadata:
encoder: Lavf55.22.103
Duration: 00:01:02.81, start: 0.000000, bitrate: 710 kb / s
Stream # 0:0 nan AV: 0.000 fd = 0 aq = 0KB vq = 0KB sq = 0B f = 0/0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 720x540 [SAR 135:136 DAR 45 : 34], 25 tbr, 25 tbn, 25 tbc
Stream # 0:1: Audio: mp3 (U [0] [0] [0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb / s
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 134 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 25
Current serial number in output stream: 26

No comments:

Post a Comment