0
votes

I need to convert an SEC file into any video format that I can share and/or upload to Youtube. MP4, etc.

I'm a complete newbie at all things terminal. I've tried:

ffmpeg -i video.sec video.mp4

ffmpeg -i video.sec -bsf:v h264_mp4toannexb -c:v copy video.avi

ffmpeg -i video.sec -b 256k -vcodec h264 -acodec aac video.mp4

I don't understand what any of these mean, they're just examples I found online. However, whatever I try returns this error:

Invalid data found when processing input

Any thoughts? Thanks!

2
sec? what format is that?hanshenrik
It's some Samsung proprietary format, this file is from a security camera.anna

2 Answers

1
votes

I had to add the following option so it would skip the SEC's custom header.

-skip_initial_bytes 48

1
votes

i know this is old, but i was trying to figure this out as well, what ended up finally working for me was this command.

./ffmpeg -f h264 -i INPUT.sec -filter:v "setpts=4*PTS" OUTPUT.avi

the -f h264 was the part i was missing. and the -filter:v "setpts=4*PTS" part is to slow it back down to the original speed. you can also change the .avi at the end to whichever format works best for you.

i hope this helps someone out :)