I have a video file (with no audio stream) taken from a Lorex CCTV DVR. The video file has a suffix of ".264" which I assume means its format is raw h264. I cannot play this video on certain media players including the default player on an Apple tablet. I would like to convert the file to another format that is more universally useable, for example mp4. I tried the following command at Linux terminal:
avconv -i ~/somePath/foo.264 -vcodec libx264 -f mp4 ~/somePath/foo.mp4
but the output mp4 file was basically empty, with a total size of 285 bytes. Furthermore, when I tried to play it using the Ubuntu Videos application the application returned a widow containing the error message: "An error occurred This file contains no playable streams."
file --mime-type ~/somePath/foo.264 ~/somePath/foo.264: application/octet-stream mediainfo ~/somePath/foo.264 ... Format:AVC; Format profile:Baseline@L2; Width:352 pixels; Height:240 pixels ...
Would somebody instruct me how to convert the .264 file to a .mp4?