I'm trying to extract an audio from a HLS stream with FFMPEG, although the console shows that it extracted it full length, the extracted audio is only half long of that.
After file is extracted this is what appears on commandline:Code:ffmpeg -i http://192.168.1.104/root/media/hdd/recordings/recording_09_09_2018_14_33_My_Recording.ts.m3u8 -vn -acodec copy outputaudio.aac
The file is exact size as mentioned,however the duration is only 2h 20min,which means that there are the 2h 18min missing here.Code:size= 391131kB time=04:38:00.12 bitrate= 192.1kbits/s speed=5.28x video:0kB audio:391131kB subtitle:0kB other streams:0kB global headers:0kB muxin g overhead: 0.000000%
I tried playing the stream in VLC to double check and can confirm that actual duration is 4h 38min.
For some weird reason when i try extracting video with audio,FFMPEG messes up the whole audio and dramatically lowers it's quality (even tho i have added the -acodec copy option with it),but it extracts it full length. That's why i need to extract the audio separately.
Could this be related to FFMPEG having some issues with AAC codec?
Any tips appreciated.
Edit: I discovered that for some reason FFMPEG changes framerate from 25 (that's in original stream) to 48.something. I don't know why.
+ Reply to Thread
Results 1 to 1 of 1
Last edited by Sviests; 13th Sep 2018 at 13:35.