This command only changes container without reencoding:
ffmpeg -i input.flv -codec copy output.mp4
ffmpeg -i filename.flv -c:v libx264 -crf 19 -strict experimental filename.mp4
This command only changes container without reencoding:
ffmpeg -i input.flv -codec copy output.mp4
ffmpeg -i input.flv -c copy -copyts output.mp4
It worked perfectly for me in all cases with AVC video and AAC or MP3 audio.