Opened 13 years ago

Closed 13 years ago

#330 closed defect (invalid)

Some instabilities while playing ffplay on beagleboard + angstrom

Reported by: LuckyNarang Owned by: Michael Niedermayer
Priority: normal Component: ffplay
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi,

When i play m4v file,then ffplay play it well.

But When i play a wmv,avi file it shows black screen

1) When avi file is played:

Input #0, avi, from 'Sachin-Tendulkar.avi':

Metadata:

ISFT : Lavf52.64.2

Duration: 00:01:15.41, start: 0.000000, bitrate: 466 kb/s

Stream #0.0: Video: mpeg4, yuv420p, 320x238 [PAR 1:1 DAR 160:119], 30 tbr, 30 tbn, 30 tbc
Stream #0.1: Audio: mp2, 44100 Hz, 1 channels, s16, 128 kb/s

2) when another avi file is played,the player just hangs at some frame.

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Mahi-Ve.avi':

Metadata:

major_brand : qt
minor_version : 537199360
compatible_brands: qt

Duration: 00:04:30.08, start: 0.000000, bitrate: 1580 kb/s

Stream #0.0(eng): Video: h264, yuv420p, 720x420, 1446 kb/s, 25 fps, 25 tbr, 2500 tbn, 5k tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s
Stream #0.2(eng): Data: tmcd / 0x64636D74

3) When wmv file is played

Again it displays black screen.

asf @ 0xbf6050]max_analyze_duration reached
Input #0, asf, from 'WLAN_Bluetooth_demo.wmv':

Metadata:

title : test2
author :
copyright :
comment :
WMFSDKVersion : 11.0.5721.5265
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0

Duration: 00:02:01.11, start: 10.000000, bitrate: 300 kb/s

Stream #0.0: Audio: wmav2, 44100 Hz, 1 channels, s16, 32 kb/s
Stream #0.1: Video: wmv3, yuv420p, 640x480, 10 tbr, 1k tbn, 1k tbc

[wmv3 @ 0xbfc8c0]Extra data: 8 bits left, value: 0

Change History (7)

comment:1 by Carl Eugen Hoyos, 13 years ago

Please always provide complete, uncut output (as opposed to the partial output you provided).

Since it is likely you are facing a performance problem, could you test if the following works on your beagleboard (if out1.avi and out2.avi are playable output files)?
$ ffmpeg -i Sachin-Tendulkar.avi out1.avi
$ ffmpeg -i WLAN_Bluetooth_demo.wmv out2.avi

comment:2 by LuckyNarang, 13 years ago

when i execute ffplay with out1.avi and out2.avi,still it displays blackscreen.

The output is as follows:

1) when out1.avi is played:

FFplay version SVN-r23556, Copyright (c) 2003-2010 the FFmpeg developers

built on Jul 5 2011 15:27:35 with gcc 4.5.1
configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --cc=arm-none-li'
libavutil 50.18. 0 / 50.18. 0
libavcodec 52.75. 1 / 52.75. 1
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

[:]Before av_probe_input_format();

[:]After av_probe_input_format();

Input #0, avi, from 'out1.avi':

Metadata:

ISFT : Lavf52.68.0

Duration: 00:01:15.41, start: 0.000000, bitrate: 294 kb/s

Stream #0.0: Video: mpeg4, yuv420p, 320x238 [PAR 1:1 DAR 160:119], 30 tbr, 30 tbn, 30 tbc
Stream #0.1: Audio: mp2, 44100 Hz, 1 channels, s16, 64 kb/s

2) when out2.avi is played:

FFplay version SVN-r23556, Copyright (c) 2003-2010 the FFmpeg developers

built on Jul 5 2011 15:27:35 with gcc 4.5.1
configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --cc=arm-none-li'
libavutil 50.18. 0 / 50.18. 0
libavcodec 52.75. 1 / 52.75. 1
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

[:]Before av_probe_input_format();

[:]After av_probe_input_format();

Input #0, avi, from 'out2.avi':

Metadata:

ISFT : Lavf52.68.0

Duration: 00:02:01.20, start: 0.000000, bitrate: 297 kb/s

Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 10 tbr, 10 tbn, 10 tbc
Stream #0.1: Audio: mp2, 44100 Hz, 1 channels, s16, 64 kb/s

The media file contains audio and video data and is a valid file.

comment:3 by Carl Eugen Hoyos, 13 years ago

Only latest git HEAD (master or oldabi) is supported on this tracker, your version is too old!

What I meant was: Do out1.avi and out2.avi (created on the beagleboard) play on a PC, using ffplay, mplayer or vlc?

comment:4 by LuckyNarang, 13 years ago

Converted the file Mahi.avi into out1.avi
Converted the file WLAN_Bluetooth_demo.wmv into out2.avi

The conversion was done successfully but still displaying the black screen when played on beagleboard,on pc the converted files are played properly.[Tried with ffmpeg-0.8(Love) as well on board].

comment:5 by Carl Eugen Hoyos, 13 years ago

Since I (still) suspect a performance problem, please try the following:
$ ffmpeg -i Sachin-Tendulkar.avi -r 10 out1.avi
$ ffmpeg -i WLAN_Bluetooth_demo.wmv -r 10 out2.avi
Do the resulting files play on the beagleboard?
You could also try
$ ffplay -vlowres 1 Mahi-Ve.avi
or
$ ffplay -vlowres 2 Mahi-Ve.avi

comment:6 by LuckyNarang, 13 years ago

1)

When i used these commands,

$ ffplay -vlowres 1 Mahi-Ve.avi
or
$ ffplay -vlowres 2 Mahi-Ve.avi

Following is the output:

ffplay version 0.8, Copyright (c) 2003-2011 the FFmpeg developers

built on Jul 6 2011 12:41:29 with gcc 4.5.1
configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --cc=arm-none-li'
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0

[mov,mp4,m4a,3gp,3g2,mj2 @ 0xe16250] max_analyze_duration 5000000 reached at 5013333
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Mahi-Ve.avi':

Metadata:

major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2009-07-22 02:21:00

Duration: 00:04:30.08, start: 0.000000, bitrate: 1580 kb/s

Stream #0.0(eng): Video: h264 (Main), yuv420p, 720x420, 1446 kb/s, 25 fps, 25 tbr, 2500 tbn, 5k tbc
Metadata:

creation_time : 2009-07-22 02:21:00

Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s
Metadata:

creation_time : 2009-07-22 02:21:00

Stream #0.2(eng): Data: tmcd / 0x64636D74
Metadata:

creation_time : 2009-07-22 02:21:00

[h264 @ 0xe18300] The maximum value for lowres supported by the decoder is 0

Still screen is black.

2)
But when i converted

$ ffmpeg -i Mahi-Ve.avi -r 10 out1.avi
$ ffmpeg -i WLAN_Bluetooth_demo.wmv out2.avi

and played using these commands

$ ffplay -vlowres 1 Mahi-Ve.avi
or
$ ffplay -vlowres 2 Mahi-Ve.avi

it plays well.

What could be possible reasons for this ? Why is that the file plays well with low bitrate and low resolution,and not with the actual resolution and bitrate ?

Thanks for your precious inputs.

comment:7 by Carl Eugen Hoyos, 13 years ago

Resolution: invalid
Status: newclosed

You are seeing a performance problem that cannot be easily fixed.
(Iirc, ffplay is not a very "fast" application.)

You can also try
$ ffplay -framedrop Mahi-Ve.avi
$ ffplay -framedrop Sachin-Tendulkar.avi

Note: See TracTickets for help on using tickets.