I want to convert an elementary stream(.264) to container format(.mp4). Can someone please help me on this? How can I use ffmpeg to do this task? What are all the other methods that could accomplish the same task?
This is easy with
ffmpeg -framerate 24 -i input.264 -c copy output.mp4
This simply stream copies (re-muxes) the video so there is no unnecessary re-encoding occurring; therefore the quality is preserved and the whole process is quick.
Frame rate is by default assumed to be 25. You can change this with the
-framerateinput option. Typical values are
24, or frame rate aliases such as
Try these commands :
sudo apt-get install x264 x264 raw_stream.264 -o playable_video.mp4
Run the MP4 files in VLC