Ffmpeg fix timestamps

Search everywhere only in this topic. Advanced Search. Classic List Threaded.

"error, non monotone timestamps"

Kyle Schwarz. Hi, when trying to encode from a. I tried to do a normal encode: ffmpeg -i 'Infile. Baptiste Coudurier Re: "error, non monotone timestamps". Kevin Oberman.

ffmpeg fix timestamps

In reply to this post by Kyle Schwarz. In reply to this post by Baptiste Coudurier Andy Sheen. In reply to this post by Kevin Oberman.

Can ffmpeg fix Timestamp inconsistencies in mpeg2 files?

There are several bugs in ffmpeg relating to straight copying. There are many times when it could simply use the existing parameters for the output but instead substitutes inane values, then errors. Lazy groidism is rampant. So, the solution is to explicitly code both streams, not using "copy".

I had this problem with a number of streams, because of "-acodec copy". Adding "-acodec libmp3lame" immediately solved the problem. Nicolas George Where are your bug reports?By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It only takes a minute to sign up. When I play this videos with VLC or other players they plays till a certain point and then instantly exits.

Sometimes I can try to skip the bad part but I could meet another bad sector and have an insta-quit again. Can I fix this problems I suppose stream and keyframes related with ffmpeg and maybe in a -c copy fashion so I haven't to recompress everything?

How to Convert / Fix / Repair Video files using FFMPEG (FREE & EASY)

What I want to achieve is a full lenght video where the missing parts are skipped, I prefer a glitch rather than having my videos crash. If parts of the file reside on physically bad sectors, or for whatever reason, the OS cannot serve the whole file to FFmpeg, then naturally FFmpeg can't do anything about that. You should get a utility which can ignore those portions and write the salvageable parts to a new file, like ddrescue.

Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. Asked 3 years, 11 months ago. Active 8 months ago. Viewed 83k times. It happened me many times that I could end up in corrupted video files: video downloaded from official sources but with torrent and for some reason not all the pieces are there in.

Question is: Can I fix this problems I suppose stream and keyframes related with ffmpeg and maybe in a -c copy fashion so I haven't to recompress everything? See also: superuser. Active Oldest Votes. Gyan Gyan This works, but fails without -c copy. Surprising that it doesn't work during recode. Even with that, I'm still getting Invalid data found when processing input -- and ffmpeg gives up. Apr 13 '19 at Nice solution What if it's not even there? In the search of a better answer a possible way could be: ffmpeg -i video.

Works for me every time I have some kind of issue with the meta data, timestamps, or container info. And it's very fast, usually faster than x playspeed. This command saved my butt, to be frankly. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Q2 Community Roadmap.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Super User is a question and answer site for computer enthusiasts and power users.

How to Repair Corrupt Video Files using FFmpeg

It only takes a minute to sign up. Some timestamps are not correct for reasons Can I process the file and have only the timestamps regenerated without reencoding?

I've tried this. As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. I've also tried the suggestion mentioned here at the bottom:. This also doesn't change the timestamps in the outfile. Any other way to perform this task? Timestamps are kind of metadata, so I think it should be possible somehow. It turns out that the -r option only works for raw stream data. This can be an H. The -vsync option is used to control output timestamps, not the -r option.

The drop parameter resets input timestamps and generates new ones. The -r option before the input tells FFmpeg to read the specified number of frames in constant mode.

Sign up to join this community. The best answers are voted up and rise to the top.

ffmpeg fix timestamps

Home Questions Tags Users Unanswered. FFmpeg: recreate timestamps without reencoding Ask Question. Asked 3 years, 3 months ago. Active 2 months ago. Viewed 15k times. I've tried this ffmpeg -r 25 -i infile -c copy outfile but the timestamps in outfile are still like in the original even though the documentation for"-r" says: As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. Show the full console output of your first command.

However, I think it's an abstract question and doesn't require specific material to answer. So, would you say the command line should work? Though, maybe I will try to recreate the scenario to provide the console output. Thanks anyway.

ffmpeg fix timestamps

Adding an extra step by extracting a raw stream and retiming that will work. Finally it worked this way.Note that this filter is not FDA approved, nor are we medical professionals. Nor has this filter been tested with anyone who has photosensitive epilepsy. FFmpeg and its photosensitivity filter are not making any medical claims.

That said, this is a new video filter that may help photosensitive people watch tv, play video games or even be used with a VR headset to block out epiletic triggers such as filtered sunlight when they are outside.

Or you could use it against those annoying white flashes on your tv screen. The filter fails on some input, such as the Incredibles 2 Screen Slaver scene. It is not perfect. If you have other clips that you want this filter to work better on, please report them to us on our trac.

See for yourself. We are not professionals. Please use this in your medical studies to advance epilepsy research. If you decide to use this in a medical setting, or make a hardware hdmi input output realtime tv filter, or find another use for this, please let me know. This filter was a feature request of mine since FFmpeg 4. Some of the highlights:.

We strongly recommend users, distributors, and system integrators to upgrade unless they use current git master. FFmpeg 3. This has been a long time coming but we wanted to give a proper closure to our participation in this run of the program and it takes time. Sometimes it's just to get the final report for each project trimmed down, others, is finalizing whatever was still in progress when the program finished: final patches need to be merged, TODO lists stabilized, future plans agreed; you name it.

Without further ado, here's the silver-lining for each one of the projects we sought to complete during this Summer of Code season:. Stanislav Dolganov designed and implemented experimental support for motion estimation and compensation in the lossless FFV1 codec.

The design and implementation is based on the snow video codec, which uses OBMC. Stanislav's work proved that significant compression gains can be achieved with inter frame compression. Petru Rares Sincraian added several self-tests to FFmpeg and successfully went through the in-some-cases tedious process of fine tuning tests parameters to avoid known and hard to avoid problems, like checksum mismatches due to rounding errors on the myriad of platforms we support.

His work has improved the code coverage of our self tests considerably. He also implemented a missing feature for the ALS decoder that enables floating-point sample decoding.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I would not care if the result was ok, but the sound is out of sync, and the video is "stuttering". Feels like everything is out of sync. Learn more. Asked 8 months ago. Active 8 months ago. Viewed 2k times. I'm trying to go from.

This may result in incorrect timestamps in the output file. I guess it has something to do with the DTS : [mp4 0x7f8b] Invalid DTS: PTS: in output streamreplacing by guess [mp4 0x7f8b] Invalid DTS: PTS: in output streamreplacing by guess I would not care if the result was ok, but the sound is out of sync, and the video is "stuttering".

I've tried a lot of things, including -async 1 -vsync 1but nothing seems to work. The input file has bad timestamps. Do you know how I can fix it? Might be a copy of this question, try this proposed answer: video.

ffmpeg fix timestamps

Does this happen every time with "video generated by tvheadend"? If yes then try to provide a link to some short example clip 30 secs or under 10 megabytes that also gives non-monotonous DTS.

You will get a faster Answer if we can test your input. One Jul 28 '19 at Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. The Overflow How many jobs can be done at home? Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap. Technical site integration observational experiment live on Stack Overflow.

Triage needs to be fixed urgently, and users need to be notified upon…. Dark Mode Beta - help us root out low-contrast and un-converted bits. Related Hot Network Questions.Privacy Terms. Download Forum current. Quick links.

Subscribe to RSS

I am using ffmpeg Windows to re-stream a particular Live TV stream to our edge streaming server, and it works well for a few hours, but then the video begins pausing and freeze. In ffmpeg begin the see the following error repeat: Code: Select all [flv a72a60] Non-monotonous DTS in output stream ; previous:current: ; changing to This may result in incorrect timestamps in the output file.

Code: Select all ffmpeg. I'd probably suggest re-asking your question on the ffmpeg-user mailing list. Sorry to not be of more help. I am awaiting approval to post to that list.

Something interesting I found in the logs, when the error actually starts Also notice the "current" value is negative and then slowly climbs back to positive values. Maybe I need to try a more aggressive approach by dropping frames to catch up?

Thanks for any insight. Have you found the solution to this issue? I'm facing the same problem here To be fair, I am using a nightlybuild of ffmpeg for x, not x but it has actually been great for one particular set of files I'm converting besides one small issue.

I'm expereincing the same problem. Code: Select all Board index All times are UTC.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It only takes a minute to sign up.

I am using below command to push the video to Wowza server, since we are pushing raw H. While executing the FFmpeg command, there is a warning showing as. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered.

Timestamps are unset in a packet for stream 0. Fix your code to set the timestamps properly Ask Question. Asked 1 year, 9 months ago. Active 9 months ago. Viewed 14k times. While executing the FFmpeg command, there is a warning showing as [rtsp 0xbbda0] Timestamps are unset in a packet for stream 0.

Fix your code to set the timestamps properly IS there any option available in FFmpeg to add timestamp in RTP packet and push the video and audio? MarianD 1, 2 2 gold badges 8 8 silver badges 23 23 bronze badges. Active Oldest Votes. Mike Brown Mike Brown 1 1 bronze badge. The resulting file synced up perfectly with the subtitle. If your read speed is different than stream framerate, output playback speed and audio sync will be wrong.

Add -re before both video and audio input to avoid that. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.


thoughts on “Ffmpeg fix timestamps

Leave a Reply

Your email address will not be published. Required fields are marked *