3
I am completely new to FFmpeg and am trying to convert my test.mp4 to (it has to be specifically) a .h264 file.
I have tried the following in Terminal:
ffmpeg -i test.mp4 -c:v libx264 test.h264
but get the following back: command not found
I tried directing it to my desktop as followed:
~/Bureaublad/media$ ./ffmpeg -i test.mp4 -c:v libx264 test.h264
But then got back: No such file or directory
Can someone please help me out?
There is no such thing as a
.h264
file. Do you perhaps want the raw H264 data stream? What’s the output offfprobe test.mp4
? It could already contain the desired data, you’d just have to demux it. // Also, what operating system are you using? You should install ffmpeg properly via its package manager, if possible. – Daniel B – 2016-10-29T14:38:04.733I haven't heard of a .h264 either, but I'm looking at one atm, which is a video that can't be opened by OS but can be played via the Raspberry. Only this type can be played by the Raspberry (perhaps this is the Raw h264 data stream you are talking about?) Operating system: OS X El Capitan 10.11.6. – Amy – 2016-10-29T16:45:21.160
On OS X/macOS, I recommend using Homebrew to install ffmpeg. Also, what command are you using on the Pi to play the movie?
– Daniel B – 2016-10-29T17:39:46.883Oh my, I thought it would be so easy, haha! The thing is, I have no idea. I used it from someone who already arranged/programmed a video loop thing etc on the SD card. The only thing I had to do was to convert my video to .h624. The video on the USB atm is in this format and works obviously as it's playing right now. I shall have a look right now and see what I can find of the SD card. – Amy – 2016-10-29T18:09:04.650