recordmydesktop icon indicating copy to clipboard operation
recordmydesktop copied to clipboard

Keyframe not correctly marked

Open Enselic opened this issue 4 years ago • 4 comments

From https://sourceforge.net/p/recordmydesktop/bugs/95/

I had some problems when I edited ogv files from recordmydesktop in Openshot. Because of that I converted the files to mp4 using ffmpeg. This gave me the warning:

[ogg @ 0x298e040] Header parsing failed for stream 0
[ogg @ 0x298e040] Broken file, keyframe not correctly marked.

So I guess recordmydesktop is not marking keyframes correctly.

In case you want to reproduce the ffmpeg output here is the command I used:

ffmpeg -i desktop.ogv -b:a 128k -b:v 4096k -s 1280x720 -vcodec libx264 -acodec copy -threads 0 desktop.mp4

I also reported the issue here: https://bugs.launchpad.net/ubuntu/+source/recordmydesktop/+bug/1589853

Enselic avatar Mar 13 '21 07:03 Enselic

I confirm it. Using recordmydesktop-0.3.8.1 and ffmpeg-3.0.1. The same errors appear and the quality of the result of ffmpeg transcoding is very low.

ID-ima avatar May 26 '21 14:05 ID-ima

I have a workaround for using ffmpeg to convert a file from ogv to mp4.
The following works:

ffmpeg -discard nokey -i original_file.ogv -max_muxing_queue_size 9999 converted_file.mp4

and the resulting file had no audio or video issues.

AJRepo avatar Sep 11 '21 22:09 AJRepo

i'm also seeing this problem. I think the workaround is even simpler: just feed it through a simple ffmpeg passthrough:

ffmpeg -i original.ogv -c copy cleaned.ogv

dkg avatar Jun 06 '22 11:06 dkg

Please, none of these solved the issue for me.

juniorohanyere avatar Mar 31 '23 07:03 juniorohanyere