[Ffmpeg-devel-irc] ffmpeg.log.20200117

burek burek at teamnet.rs
Sat Jan 18 03:05:02 EET 2020


[00:35:52 CET] <midn> Does this place help with constructing commands for newbies?
[06:44:24 CET] <joules> hi, can anyone recommend a ppa for 4.1? really wanna check out the tmix filter ;)
[06:44:56 CET] <joules> (ubuntu, sorry if off topic - big ffmpeg user so i don't have any "how to" questions)
[12:02:31 CET] <Shezi> Hi, I am converting an mp4 video with h264 codec and aac audio. While converting it throws error like "invalid NAL unit size". Is there a way to fix such video? Thank you
[12:03:06 CET] <joules> paste the command.
[12:03:23 CET] <joules> if it's long use a paste site.
[12:03:48 CET] <joules> Shezi: also get the orignal video specs with ffprobe.
[12:04:04 CET] <joules> you need to actively convert FROM that.
[12:05:26 CET] <Shezi> ok. Let me gather all the information.
[12:09:55 CET] <Shezi> This is ffprobe of file. https://pastebin.com/tUVaL7V8
[12:10:26 CET] <joules> that's for you though.
[12:10:34 CET] <furq> invalid nal unit size is a decoder error
[12:10:42 CET] <joules> -vf <insert stuff>
[12:10:47 CET] <furq> there's not really much you can do about that other than upgrade, and you're already on a recent version
[12:11:46 CET] <Shezi> joules, I didn't get it. Do you need detailed json information of video?
[12:11:59 CET] <joules> no the video looks fine.
[12:12:08 CET] <Shezi> Actually the video has some issue and i am trying to convert the video to fix those issues.
[12:12:27 CET] <Shezi> But it seems it throws tons of invalid NAL unit size error at specific timemark.
[12:12:34 CET] <joules> oh
[12:12:39 CET] <joules> how big is the file?
[12:12:42 CET] <furq> yeah the video is probably bitrotted around that mark
[12:13:02 CET] <Shezi> Its 1.3 GB
[12:13:16 CET] <Shezi> Is there some flags that can be passed to fix these issues?
[12:13:23 CET] <furq> probably not
[12:13:28 CET] <furq> most likely it's just a broken input video
[12:13:42 CET] <furq> the workaround would be to just ignore the errors but you'll obviously get some garbled frames at that point
[12:14:00 CET] <Shezi> Ok. how do i ignore this.
[12:14:11 CET] <furq> is it actually stopping the conversion when it happens
[12:14:21 CET] <furq> that message is just a warning iirc
[12:14:25 CET] <Shezi> No, but the video does not play after that time mark.
[12:14:31 CET] <furq> after conversion?
[12:14:37 CET] <joules> so it doesn't play?
[12:14:41 CET] Action: joules dies
[12:14:52 CET] <Shezi> Yes, it does not play after that specific time mark.
[12:14:58 CET] <Shezi> I tried even handbrake tool.
[12:15:05 CET] <Shezi> but to no avail. :\
[12:15:06 CET] <joules> ok. then it that's that.
[12:15:21 CET] <joules> decoders use the same decoders.
[12:15:59 CET] <Shezi> Is it possible to replace those broken frames with something like blank frames
[12:16:00 CET] <furq> can you seek past the error in the source file
[12:16:08 CET] <Shezi> No.
[12:16:24 CET] <furq> yeah it sounds like it's completely broken from that point on
[12:16:26 CET] <joules> maybe just dump it all to pngs.
[12:16:57 CET] <furq> if you can't seek to like five minutes past that timestamp then i assume the whole thing is messed up
[12:16:59 CET] <Shezi> So if the file is seekable after that specific timemark, then there is some hope?
[12:17:04 CET] <furq> yeah
[12:17:33 CET] <Shezi> Ok, great. What is the flag that can be passed to replace those broken frames with some garbled frames? Its for my information.
[12:17:43 CET] <furq> if it's just a few corrupt packets then it should be fine after the next idr frame
[12:18:01 CET] <Shezi> I mean if the file is seekable after specific broken frames timemark.
[12:18:35 CET] <furq> it should just drop those frames by default
[12:19:17 CET] <Shezi> Ok, but is there a way to replace those frames? I mean for streaming some times it fails.
[12:19:40 CET] <Shezi> ffmpeg just exits, if it sees those broken frames during streaming to rtmp server.
[12:19:50 CET] <furq> maybe force -vsync cfr
[12:20:10 CET] <Shezi> Ok Great. I will try that.
[12:20:25 CET] <Shezi> Thank you very much joules and furq and all the ffmpeg community. :)
[12:22:11 CET] <joules> im just a grifter furq is long time dude ;)
[12:23:40 CET] <joules> i remember the ffmpeg avconv wars of ..some year.
[12:46:50 CET] <Shezi> :)
[17:23:31 CET] <TanaPanda> anyone familiar with dvblast?
[00:00:00 CET] --- Sat Jan 18 2020


More information about the Ffmpeg-devel-irc mailing list