Solved XVID files with MP3 audio play in slow motion
#1
Description
With the current nightly builds of v18 XVID files with MP3 audio are played in slow motion!

Last working version
The last working build is unknown.

Tested on
Android ARM64 with kodi-20181111-c895e84b-master-arm64-v8a

Test file
Test.avi (26 MB)

Fixed with PR 15056! THX peak3d Smile
https://github.com/xbmc/xbmc/pull/15056
Reply
#2
So then. Try v17.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
(2018-11-13, 13:51)fritsch Wrote: So then. Try v17.
 With Kodi 17 that videos run absolutely smoothly. But that can't be the solution, can it?
Reply
#4
ffmpeg -i yourfile -o yournewfile
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
(2018-11-13, 22:39)fritsch Wrote:
Code:
ffmpeg -i yourfile -o yournewfile
I don't know what you're getting at, but I executed the above command and the newly created file jerks as well Sad

See for yourself:
TestNEW.avi

Code:
ffmpeg -i Test.avi TestNEW.avi
ffmpeg version 4.0.1 Copyright © 2000-2018 the FFmpeg developers
  built with gcc 7.3.1 (GCC) 20180710
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, avi, from 'Test.avi':
  Duration: 00:01:48.68, start: 0.000000, bitrate: 2049 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1752 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 123 kb/s
    Stream #0:2: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 123 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (mp3 (mp3float) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, avi, to 'TestNEW.avi':
  Metadata:
    ISFT            : Lavf58.12.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x400 [SAR 1:1 DAR 9:5], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.18.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp
    Metadata:
      encoder         : Lavc58.18.100 libmp3lame
frame= 2717 fps=451 q=24.8 Lsize=    7051kB time=00:01:48.72 bitrate= 531.3kbits/s speed=18.1x
video:5172kB audio:1698kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.633497%

Reply
#6
yeah. I forgot: ffmpeg -i yourfile -c:v libx264 -o newfile

Just Video wise
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
(2018-11-14, 07:21)fritsch Wrote: yeah. I forgot: ffmpeg -i yourfile -c:v libx264 -o newfile

Just Video wise
oh, you mean just convert all my thousands of XVIDs to x264. I don't really want that, because then the quality will deteriorate a bit, and XVIDs won't have a very good quality anyway! Quite apart from the long running time Wink

There must be another solution, because in v17 it was also possible. At least I hope...
Reply
#8
Use v17 ....
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#9
(2018-11-15, 21:45)fritsch Wrote: Use v17 ....
That's well meant, but I can't, because I need the current InputStream version of Kodi 18. Therefore I hope for a fix sometime.
Reply
#10
AFAIK, MPEG-4 ASP is also software decoded for SD resolutions. So just like DVD, this might be a problem on most Android devices.
Reply
#11
(2018-11-14, 11:55)rainman74 Wrote: There must be another solution, because in v17 it was also possible. At least I hope...

Hint - might be a permanent solution if Kodi devs get interested....
https://forum.kodi.tv/showthread.php?tid...pid2791849

Reply
#12
(2018-11-16, 08:00)wrxtasy Wrote:
(2018-11-14, 11:55)rainman74 Wrote: There must be another solution, because in v17 it was also possible. At least I hope...

Hint - might be a permanent solution if Kodi devs get interested....
https://forum.kodi.tv/showthread.php?tid...pid2791849 
 That would be great if the solution would be so simple and Kodi devs would only have to transfer the Linux build settings to Android (as far as I understood that correctly).

@fritsch Is that an option?
Reply
#13
Fixed with PR 15056!
Reply

Logout Mark Read Team Forum Stats Members Help
XVID files with MP3 audio play in slow motion0