befovy / fijkplayer

ijkplayer for flutter. ijkplayer 的 flutter 封装。 Flutter video/audio player. Flutter media player plugin for android/iOS based on ijkplayer. fijkplayer 是基于 ijkplayer 封装的 flutter 媒体播放器,开箱即用,无需编译 ijkplayer
https://fijkplayer.befovy.com
MIT License
1.63k stars 343 forks source link

[BUG] Audio in video not getting played #531

Open lawimmunity-admin opened 2 years ago

lawimmunity-admin commented 2 years ago

Describe the bug WebM Video is getting played but the audio is not coming through.

What attempts have you made to resolve this error ? I basically tried to play video from local storage, from networks and tried to play 2-3 different videos(all being WebM), but fijkplayer did not manage to play the audio in any of those videos.

To Reproduce So for example try to play this video VIDEO LINK It surely has sound in it, but for some reason, fijkplayer is not able to play the sound in it. Here I am talking about android, I did not try on iOS yet.

Expected behavior the sound in the video should also be played

fijkplayer version fijkplayer: ^0.10.1

Smartphone (please complete the following information):

Additional context I believe there is a problem with the audio codec, but I don't know how can I ask fijkplayer to support a particular codec, it would be great if you can guide me on that. Attaching the screenshot of the codec I am interested to play.

Screenshot 2022-06-28 at 3 25 25 PM

please note that my use case is only to play this codec in WebM files, so if I can also make the size smaller of the library then it would be nice too.

kostov commented 1 year ago

Same problem: no audio, log (I think no decoder was found, see below):

I/IJKMEDIA(30422): Stream #0:0 I/IJKMEDIA(30422): (eng) I/IJKMEDIA(30422): : Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 5944 kb/s I/IJKMEDIA(30422): , I/IJKMEDIA(30422): 29.97 fps, I/IJKMEDIA(30422): 29.97 tbr, I/IJKMEDIA(30422): 30k tbn, I/IJKMEDIA(30422): 59.94 tbc I/IJKMEDIA(30422): (default) I/IJKMEDIA(30422): I/IJKMEDIA(30422): Stream #0:1 I/IJKMEDIA(30422): (eng) I/IJKMEDIA(30422): : Audio: adpcm_ima_wav (ms[0][17] / 0x1100736D), 32000 Hz, 2 channels, 256 kb/s I/IJKMEDIA(30422): (default) I/IJKMEDIA(30422): I/IJKMEDIA(30422): Metadata: I/IJKMEDIA(30422): handler_name : I/IJKMEDIA(30422): Sound Media Handler I/IJKMEDIA(30422): W/IJKMEDIA(30422): No codec could be found with id 69633 I/IJKMEDIA(30422): VideoCodec: avcodec, h264 W/IJKMEDIA(30422): fps: 29.970030 (normal) I/IJKMEDIA(30422): SDL_RunThread: [30703] ff_video_dec D/IJKMEDIA(30422): FFP_MSG_COMPONENT_OPEN: D/IJKMEDIA(30422): FFP_MSG_VIDEO_ROTATION_CHANGED: 0 D/IJKMEDIA(30422): FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 D/IJKMEDIA(30422): FFP_MSG_SAR_CHANGED: 1, 1 D/IJKMEDIA(30422): ijkmp_get_msg: FFP_MSG_PREPARED D/IJKMEDIA(30422): FFP_MSG_PREPARED: I/flutter (30422): [inf] 2023-08-24 13:25:52.870588 [fijk] FijkPlayer{id:3} rotate degree 0 I/flutter (30422): [inf] 2023-08-24 13:25:52.871216 [fijk] FijkPlayer{id:3} size changed (1920.0, 1080.0) I/flutter (30422): [inf] 2023-08-24 13:25:52.871772 [fijk] FijkPlayer{id:3} prepared duration 0:00:28.262000 I/flutter (30422): [inf] 2023-08-24 13:25:52.872627 [fijk] FijkPlayer{id:3} state changed to FijkState.prepared <= FijkState.asyncPreparing I/flutter (30422): [inf] 2023-08-24 13:25:52.873066 [fijk] FijkPlayer{id:3} state changed to FijkState.started <= FijkState.prepared D/IJKMEDIA(30422): SDL_VoutFFmpeg_CreateOverlay(w=1920, h=1080, fmt=RV32(0x32335652, dp=0x7684edb8b0) D/IJKMEDIA(30422): FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 D/IJKMEDIA(30422): Video: first frame decoded <...>