error: could not install smartsocket listener: Address already in use

This article is about error message: “error: could not install smartsocket listener: Address already in use”.

I like to flash my android smartphone. As we all know, there are (at lease) two tools we could use when flashing phones: adb and fastboot. But I met a problem when I try to run new adb server, it keep showing the this message in my terminal:

The Message “error: could not install smartsocket listener: Address already in use”

“Address already in use? so there must be someone using the address I need.” I thought, “ok, let me find the criminal”

and I gave terminal a command ps aux | grep adb to show all processes which is including adb word, then I got:

Readmore

how to concat two mp4 files via command line

I want to concat two mp4 files together, so I found a command:

ffmpeg -i "concat:input1.mp4|input2.mp4|input3.mp4" -c copy output.mp4

But it doesn’t work. After my searching, I finally got the solution:

ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4

That’s it!

Reference