nova-video-player / aos-AVP

NOVA opeN sOurce Video plAyer: main repository to build them all
Apache License 2.0
3.34k stars 198 forks source link

freebox mini4k: SD xvid mpeg4 playback not smooth #148

Open courville opened 5 years ago

courville commented 5 years ago

Reported via email. On BCM freebox mini4k playback is not smooth. Clip information:

mplayer -identify -frames 0 -ao null -vo null  -vc dummy Chi-1x01-UneNouvelleVie.avi
Warning unknown option stop-xscreensaver at line 14
MPlayer 1.4-4.2.1 (C) 2000-2019 MPlayer Team
Can't init Apple Remote.

Playing Chi-1x01-UneNouvelleVie.avi.
libavformat version 58.27.102 (internal)
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  640x480  12bpp  25.000 fps  1124.0 kbps (137.2 kbyte/s)
==========================================================================
Forced video codec: dummy
Cannot find codec matching selected -vo and video format 0x44495658.
==========================================================================
Clip info:
 Software: MEncoder SVN-r33883(20110719-gcc4.5.2)
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=MEncoder SVN-r33883(20110719-gcc4.5.2)
ID_CLIP_INFO_N=1
Load subtitles in ./
ID_FILENAME=Chi-1x01-UneNouvelleVie.avi
ID_DEMUXER=avi
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=0.00
ID_LENGTH=6104.73
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 58.51.100 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 128.0 kbit/4.54% (ratio: 16000->352800)
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [null] 44100Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffmp3float
Video: no video
Starting playback...

Exiting... (End of file)
ID_EXIT=EOF

Two submitted logcats but without concrete leads: logcat.zip

emarch06 commented 4 years ago

Hi @courville ,

would it be possible to make a quick workaround, like if video format == XVID and chip == BCM 7252 then fallback to SW decoder?

courville commented 4 years ago

I would like to fix the issue rather than implementing many chipset depending fallbacks that are very difficult to maintain. Issue is that I do not have access to a freebox. @nnoury since @emarch06 is able to do some advanced debugging, you could perhaps provide some special apk to progress on the issue.

courville commented 4 years ago

See https://github.com/nova-video-player/aos-Video/commit/d10d4911ca92e2807378e671421d4654f7a8bf06 and https://github.com/nova-video-player/aos-avos/commit/8fcc86cd15b9998a6accfaead0027dbe5f76c222 Would be good to understand if freebox uses SW codec faked to HW codec. If this is the case the above contribs would solve this issue. To be tested in next release.

emarch06 commented 4 years ago

Great,

do you have a build to test it or will it be on the next beta first?

courville commented 4 years ago

Great,

do you have a build to test it or will it be on the next beta first?

here it is: https://drive.google.com/open?id=1a_YuyILzizIHrMi4n_PnVTgTIK_uAQY8

emarch06 commented 4 years ago

Hi, the issue is still there with this build :-( Do you need a logcat to check the differences?

emarch06 commented 4 years ago

Hi,

I forget to upload the logcat with the latest relase. Here it is new_log.txt