Ratnakar
Joined 6/10/2021
Ratnakar said about 2 years ago on Adaptive Bitrate Streaming with Active Storage :
I have the same issue Unable to find a suitable output format for 'aac' aac: Invalid argumentĀ 

Any solution on this error ?

Ratnakar said about 2 years ago on Adaptive Bitrate Streaming with Active Storage :
Mine is ffmpeg version 5.0 and I am running it on mac M1

Its when transcoding the file, I guess its with this line -c:a aac

ffmpeg -hide_banner -y -i tmp/videos/$1.mp4 \-hls_base_url "$2/users/" \-threads 1\-c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -hls_time 4 -hls_playlist_type vod -vf scale=w=640:h=360:force_original_aspect_ratio=decrease \-b:v 800k -maxrate 700000 -bufsize 700000 -b:a 96k \-hls_segment_filename tmp/videos/$1/$1_360p_%03d.ts \tmp/videos/$1/$1_360p.m3u8 \



Ratnakar said about 2 years ago on Adaptive Bitrate Streaming with Active Storage :
And how to minimize segment size, right now its nearly 12mb which makes my server very slow on returning response. all I want to make segments to be very smaller in size (in kb) what is the way ?

Ratnakar said about 2 years ago on Adaptive Bitrate Streaming with Active Storage :
I fixed the bug, there is typo in the codeĀ 

-threads 1\

it needs a space before new line char

-threads 1 \


Please correct it in your code sample