AbedElazizShe / LightCompressor

A powerful and easy-to-use video compression library for android uses MediaCodec API.
Apache License 2.0
535 stars 116 forks source link

Audio not working in after compressing video #144

Closed krunalpatel3 closed 1 year ago

krunalpatel3 commented 1 year ago

after my finding the audio is not working in this version of library
implementation "com.googlecode.mp4parser:isoparser:1.1.18"

the audio is working in this version of library implementation "com.googlecode.mp4parser:isoparser:1.0.6"

This is the solution to resolved the issue:-

if you are facing this issue please downgrade mp4parser library to this below version implementation "com.googlecode.mp4parser:isoparser:1.0.6"

pankaj9717 commented 1 year ago

mp4parser:isoparser

tried but not working

perez-alex commented 1 year ago

I'm having the same issue. The audio is still there but only works on some players. Running ffprobe on the compressed file throws some errors:

[aac @ 000001851a9bbc40] Audio object type 0 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mov,mp4,m4a,3gp,3g2,mj2 @ 000001851a9a3400] Failed to open codec in avformat_find_stream_info [aac @ 000001851a9bbc40] Audio object type 0 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [aac @ 000001851a9bbc40] Audio object type 0 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mov,mp4,m4a,3gp,3g2,mj2 @ 000001851a9a3400] Failed to open codec in avformat_find_stream_info [mov,mp4,m4a,3gp,3g2,mj2 @ 000001851a9a3400] Could not find codec parameters for stream 1 (Audio: aac (mp4a / 0x6134706D), 48000 Hz, 0 channels, fltp, 256 kb/s): unspecified number of channels Consider increasing the value for the 'analyzeduration' (2147483647) and 'probesize' (2147483647) options

krunalpatel3 commented 1 year ago

@pankaj9717 try this implementation "com.googlecode.mp4parser:isoparser:1.0.6"