<p>I'm using the following command to record videos from a camera:</p>

<pre><code>ffmpeg -framerate 30 -video_size 1280x720 -t 00:58:00 -i /dev/video0 /home/myuser/my_video.mp4
</code></pre>

<p>The problem is that the resulting video plays normally but does not allow seeking (i.e. I can't rewind or fast forward). The video progress indicator appears at the end, the timestamp is off and if you try to move it, it just restarts the entire video.</p>

<p>How can I solve this?</p>

<p>Additional information:</p>

<ul>
<li>If I do <code>ffmpeg -i my_video.mp4 -acodec copy -vcodec copy my_video_fixed.mp4</code> the resulting video is fixed.</li>
<li>If I grab from screen using X11grab, this problem does not show up.</li>
<li>I'm using Linux. </li>
</ul>

CC BY-SA 4.0
2019-09-30T17:55:00.540Z
Share full log.
Gyan
CC BY-SA 4.0
2019-09-30T19:00:26.813Z
Where do I find the logs? This was running as a cron task.
A R
CC BY-SA 4.0
2019-09-30T20:33:52.727Z
Where did you tell it to direct the stderr output in the cronjob? If you don't know then show your cronjob.
llogan
<ffmpeg><linux>
Video seeking doesn't work for files recorded from a camera using ffmpeg
A R
# Video seeking doesn't work for files recorded from a camera using ffmpeg

(Asked by: username_0 on 2019-09-30)

I'm using the following command to record videos from a camera:
ffmpeg -framerate 30 -video_size 1280x720 -t 00:58:00 -i /dev/video0 /home/myuser/my_video.mp4

The problem is that the resulting video plays normally but does not allow seeking (i.e. I can't rewind or fast forward). The video progress indicator appears at the end, the timestamp is off and if you try to move it, it just restarts the entire video.
How can I solve this?
Additional information:

If I do ffmpeg -i my_video.mp4 -acodec copy -vcodec copy my_video_fixed.mp4 the resulting video is fixed.
If I grab from screen using X11grab, this problem does not show up.
I'm using Linux.

**Tags:** ffmpeg, linux

> **Comments:**
> **username_1**: Share full log.  
> **username_0**: Where do I find the logs? This was running as a cron task.  
> **username_2**: Where did you tell it to direct the stderr output in the cronjob? If you don't know then show your cronjob.  

---

## 0 answers

