Actually I have an device that record the audio and video. when the recording is started the video file also started to persist into the hard drive.
But if device goes off unfortunately between the recording. The video file get corrupted and gives an error: This file not contain playable stream
I am using the
Ubuntu system and record the video using
Any one can help me..!!!
I am using the webcam for recording the video and bluetooth mic for audio using the ffmpeg. Following are the command that I am using to store the audio and video recording on other device(hard drive):
ffmpeg -loglevel warning -y -i /home/prakash/../../output/2013-10-07T22-39-05/right_cam.mp4 -i /home/prakash/../.. output/2013-10-07T22-39-05/left_cam.mp4 -filter_complex '[1:0] pad=108:28:5:2:black [padvidleft]; [0:0] setpts=PTS+0.8786787543577881/TB [right_cam_pts]; [padvidleft][right_cam_pts] overlay=544:0 [mergedvid] ; [1:2] channelsplit [ll][lr]; [ll][lr] amix [leftmix]; [1:3] channelsplit [rl][rr]; [rl][rr] amix [rightmix]; [leftmix][rightmix] amix [cam_all]; [1:4] channelsplit [btl][btr] ; [btl][btr] amix [btmix] ; [btmix][cam_all] join [bt_mixcam]' -f mp4 -crf 20 -r 24 -pix_fmt yuv420p -vcodec libx264 -vprofile baseline -map [mergedvid] -map [bt_mixcam] -map 1:2 -map 1:3 -map 1:4 /home/prakash/../../output/combos/combo-2013-10-07T22-39-05_dgrt6546533w471567f880abf287a855c_1088x288.mp4
If the recording is started and in the middle we turns off the recording device the recorded video and audio get persisted on hard drive but it is not able to play. When we try to play this recording the vlc gives the error
this files contains no playable stream