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

burek burek021 at gmail.com
Wed Jul 9 02:05:01 CEST 2014


[00:02] <Technicus> Thanks
[00:13] <Dark-knight> does it affect the output video at all if i put -copyts in the command line even though the video doesn't have de-sync issues?
[00:18] <sebastiannielsen> What does this mean?
[00:18] <sebastiannielsen> Tue Jul  8 00:17:48 2014 Too large number of skipped frames 70238573637 > 60000 Tue Jul  8 00:17:48 2014 Error writing frame to output
[00:18] <rcombs> so, apparently h264_mp4toannexb sometimes does and sometimes doesn't need to come after dump_extra?
[01:02] <sebastiannielsen> Why do I get this in the log?
[01:02] <sebastiannielsen> Tue Jul  8 00:17:48 2014 Too large number of skipped frames 70238573637 > 60000 Tue Jul  8 00:17:48 2014 Error writing frame to output
[01:06] <BtbN> because there was a too large number of skipped frames.
[01:06] <sebastiannielsen> How can I cure the problem? I stream from a HD-PVR
[01:06] <sebastiannielsen> Hauppauge HD-PVR (driver: hdpvr)
[01:07] <BtbN> does not look like an input problem from the little information you provided.
[01:07] <sebastiannielsen> I guess the HD-PVR does insert too few keyframes so the ffmpeg does not find anything
[01:08] <sebastiannielsen> the HD-PVR does stream raw mpegts data over the USB port
[01:19] <sebastiannielsen> I cant understand this skipped frame error message. Since it spams like millions such lines in the log per second. Why is it "expecting" like 70238753779 frames per second when the streamer is only sending fps=52?
[01:49] <Dark-knight> 2 videos are exactly that same in every aspect but one. the first video has an overall bit rate of 3,890 Kbps and the second video has an overall bit rate of 3,946. which video is better, the first or the second one?
[01:50] <sacarasc> Was the source the same?
[01:50] <Dark-knight> yes
[01:50] <Dark-knight> 2 different torrents
[01:51] <Dark-knight> but the same length
[01:51] <sacarasc> Are you sure that they were encoded the same way?
[01:51] <Dark-knight> both videos are 7 minues and 31 seconds long
[01:52] <Dark-knight> both are 1080p
[01:52] <Dark-knight> im looking at the mediainfo on the videos and the only difference is the overall bit rate
[01:53] <sacarasc> That doesn't show the filters and things that were used, though.
[01:54] <Dark-knight> well the first video has an audio stream with 2 channels, and the second video has an audio stream with 6 channels.
[01:54] <Dark-knight> don't really know what that means
[01:55] <sacarasc> One is stereo, one is 5.1 audio.
[01:55] <Dark-knight> no they are both 5.1
[01:55] <sacarasc> 2 channels is stereo.
[01:55] <sacarasc> 6 channels is 5.1.
[01:56] <Dark-knight> it says high 10 at L5.1 on both of them
[01:56] <sacarasc> (Usually, it could be 6.0)
[01:56] <Dark-knight> well
[01:57] <sacarasc> That's the level on H264, nothing to do with the audio.
[01:57] <Dark-knight> what is usually better? a higher overall bit rate or a lower one?
[01:58] <sacarasc> Depends what you value, but 56kbps difference in almost 4000 is nothing.
[01:59] <Dark-knight> what would you choose?
[01:59] <sacarasc> If it is 24 frames per second, that's like 0.29 bytes per frame difference.
[01:59] <sacarasc> I'd probably get both and see which looked better.
[02:01] <Dark-knight> they look the same
[02:06] <Dark-knight> ok i found a note
[02:07] <Dark-knight> the video with the higher bit rate and audio stream with 6 channels was the first video and the second one had a note on it
[02:07] <Dark-knight> "Note: Dawn II has been re-encoded and can be downloaded through DDL only here"
[02:08] <Dark-knight> does that mean the first one had a problem and the re-encoded one is better or does that mean something else?
[02:08] <sacarasc> Either that or they want you to click on a sketchy link that will infect you, maybe?
[02:09] <Dark-knight> no it wasn't a virus
[02:09] <Dark-knight> i scanned it
[02:09] <Dark-knight> its weird though
[02:10] <Dark-knight> if the second re-encoded video is suppose to be better why does it only have a 2 channel audio stream?
[03:50] <Dark-knight> anybody else been in here long enough to see the previous conversation?
[03:50] <Dark-knight> if you have could you please answer that question?
[03:53] <sacarasc> If they look the same, and you have only a stereo set up, go for the smaller one.
[03:53] <Dark-knight> but i have a surround sound system
[03:54] <sacarasc> And if you want to use it, go for that one.
[03:54] <Dark-knight> im just wondering if a higher bit rate was better
[03:54] <sacarasc> It's a 1.25% difference, pretty much.
[03:55] <Dark-knight> ok thanks man
[04:00] <Dark-knight> oh wow i never noticed this but the first one with the higher bit rate, stutters when playing
[04:00] <Dark-knight> sound is perfect but video was worse then the second one
[04:00] <Dark-knight> w/e it really doesn'
[04:01] <Dark-knight> doesn't matter in the end
[04:11] <Dark-knight> could somebody pm me real quick i need a favor
[04:11] <Dark-knight> actually nvm
[04:12] <Dark-knight> i got it
[07:29] <fweafwaejfo> Is it possible to stream to FFserver using Open Broadcaster Software (OBS)? I'm trying to configure streaming from my computer using OBS to my server running FFserver (default install and config), however when I try to send my stream to the server, it's like it's not receiving anything
[07:30] <fweafwaejfo> Running FFmpeg on localhost, it does seem I'm able to get the server to respond
[07:31] <fweafwaejfo> after disconnecting, i do get these types of responses in the server log: Tue Jul  8 01:26:46 2014 xxx.xxx.xxx.xxx - - [] " " 200 0
[08:39] <Mikk36> Any hints on why ffmpeg forces 25 fps? http://pastebin.com/nKaHJPBk
[10:04] <Mavrik> Mikk36, ugh, that's a horrible way to do that
[10:04] <Mavrik> you're getting 25fps because ffmpeg has no information about hte input and defaults to that
[10:04] <Mavrik> why aren't you using ffmpeg's v4l2 interface?
[10:04] <Mavrik> https://www.ffmpeg.org/ffmpeg-devices.html#video4linux2_002c-v4l2
[10:08] <Mikk36> Mavrik, propably because i don't know about it?
[10:08] <pzich> always worth a google search
[10:09] <Mikk36> i just followed the guides about rpi
[10:10] <Mikk36> input format x264 or h264?
[10:10] <Mikk36> or just copy without specifying it?
[10:10] <Mavrik> uh
[10:10] <Mavrik> you're mixing things up :)
[10:11] <Mavrik> x264 is an encoder that encodes H.264 video format
[10:11] <Mikk36> right
[10:12] <Mikk36> so this should work? ./bin/ffmpeg -f video4linux2 -input_format h264 -i /dev/video0 -vcodec copy -an -f flv -metadata streamName=Wolfstock tcp://localhost:6666
[10:12] <Mikk36> [h264 @ 0x2793cb0] missing picture in access unit with size 27
[10:12] <Mikk36> [h264 @ 0x2793cb0] no frame!
[10:13] <Mikk36> hmm, ok, but it continues though
[10:16] <Mikk36> i'm only getting black image though
[10:27] <Mavrik> does your camera actually have h264 grabbing capabilities?
[10:27] <Mavrik> and flv?
[10:27] <Mavrik> and tcp?
[10:27] <Mavrik> that... just won't work :D
[10:28] <Mikk36> well, the first pastebin i gave
[10:28] <Mikk36> it clearly shows that the input is h264
[10:28] <Mikk36> and it works
[10:28] <Mikk36> just that it starts to lag really quickly
[10:28] <AstralStorm> Hello71: yes, that line was to force the input rate to 800 FPS
[10:29] <AstralStorm> it's a rawvideo input, frame by frame, so this effectively should set the frame rate of the result
[10:29] <AstralStorm> however, it fails for any frame rate > 100 FPS
[10:30] <AstralStorm> seems like it's some built-in limitation
[10:30] <AstralStorm> or a magic undocumented behavior of -r > 100
[10:33] <Mavrik> probably rounding error somewhere
[10:33] <Mavrik> since timebases are usually expressed in 1/fps by default
[10:37] <Mikk36> otherwise, yes Mavrik, the RPi native camera can encode h264 directly on the gpu
[11:03] <AstralStorm> Mavrik: likely, yeah, seems someone used a low precision integer representation somewhere for the timebase - I get 0 FPS
[11:03] <AstralStorm> (ffplay says 0.12 FPS)
[11:07] <Mavrik> hmm
[12:06] <Dark-knight> does it affect the output video at all if i put -copyts in the command line even though the video doesn't have de-sync issues?
[12:20] <c_14> Dark-knight: can you give me an example commandline with what you're trying to do?
[12:21] <Dark-knight> ffmpeg -i input.flv -c copy -copyts output.mp4
[12:22] <c_14> That shouldn't break anything so long as the input file plays correctly.
[12:23] <c_14> AstralStorm: I just created an mp4 with an fps of 800, are you using git head?
[12:24] <Dark-knight> can i include -copyts in all my command line codes just incase the video does have de-sync issues?
[12:24] <Dark-knight> .mkv .avi. flv .mp4
[12:25] <Dark-knight> all the remux and convertion command lines
[12:25] <c_14> As long as you aren't cutting/trimming the video it should be fine.
[12:28] <c_14> And even if you are, you'll probably just get timestamps that don't correspond to the actual playing time.
[12:29] <Dark-knight> so would i even encounter a problem with audio/video de-sync?
[12:29] <Dark-knight> ever*
[12:29] <Dark-knight> doing that
[12:29] <Dark-knight> errr.
[12:29] <Dark-knight> nvm
[12:30] <Dark-knight> would i encounter a problem with the subtitles not matching up after doing that
[12:30] <Dark-knight> if the video didn't have a de-sync problem to begine with
[12:34] <c_14> shouldn't be an issue
[12:38] <AstralStorm> c_14: ok, so you say it's been fixed some time ago; it's possible this version of ffmpeg is way outdated; nice to know it's fixed
[12:38] <AstralStorm> I'll add this to release notes
[14:38] <Dark-knight> is an AVC video stream compatible with a MP4 container.
[14:38] <Dark-knight> ?
[14:40] <c_14> If you mean MPEG-4 AVC, then yes.
[14:42] <Dark-knight> haha nvm
[14:42] <Dark-knight> wait...
[14:43] <Dark-knight> it just says AVC not MPEG-4 AVC
[14:43] <Dark-knight> is there a difference?
[14:45] <c_14> Well, there are plenty of tlas with avc, but I'm pretty sure that as a video codec avc refers to MPEG-4 AVC/H.264
[14:46] <Dark-knight> ok
[14:46] <Dark-knight> sorry i this seems like a noob question but what is tlas?
[14:46] <c_14> Three letter acronyms
[14:47] <Dark-knight> ah
[14:47] <c_14> In this case AVC stands for Advanced Video Coding
[14:47] <Dark-knight> ok
[14:48] <klaxa> omg tmd tla
[14:49] <Dark-knight> I have a video with FLAC audio and ASS subs. will these work with a MP4 container? if not, what should I convert them to?
[14:49] <Dark-knight> the streams i mean
[14:50] <klaxa> ass won't work in mp4
[14:50] <c_14> mp4 only takes mpeg-4 timed text subtitles
[14:50] <klaxa> not sure if flac works
[14:50] <klaxa> if you can use matroska, try that
[14:51] <klaxa> supports pretty much every codec
[14:51] <Dark-knight> ps doesn't work with .mkv
[14:51] <klaxa> ps?
[14:51] <Dark-knight> play station
[14:51] <klaxa> ah
[14:51] <klaxa> are you sure?
[14:51] <Dark-knight> yes
[14:52] <klaxa> because i've seen a lot of people complain about mkv on the ps3 but just as much telling people that it works
[14:52] <Dark-knight> don't get me wrong. i LOVE matroska, but my hardware hates it
[14:52] <Dark-knight> its not even for me really
[14:53] <Dark-knight> my bro-in-law wants some hellsing videos converted to mp4
[14:53] <Dark-knight> i gave him the original .mkv files and he said the ps3 wouldn't recognize them
[14:53] <klaxa> oh wait, those are stupid people who are like "oh i can stream to my ps3, look at how it supports mkv"
[14:54] <Dark-knight> hahaha
[14:54] <klaxa> hmm... maybe hardsub it?
[14:54] <Dark-knight> i don't give a shit about watching the video on my tv. my computer works just fine
[14:54] <c_14> mp4 won't support FLAC or ASS subs. For the subs it'll be easiest to hardsub and the audio you'll have to convert. If you want lossless try apple lossless if you don't care use aac or mp3 or something
[14:55] <Dark-knight> apple lossless?
[14:55] <c_14> alac
[14:55] <Dark-knight> ah
[14:55] <Dark-knight> ya i saw that on some website
[14:56] <klaxa> is your brother in law a lot into tech and has high quality standards? if not he probably won't notice the difference anyway
[14:56] <Dark-knight> nah he really doesn't care. he is a technical idiot
[14:57] <Dark-knight> doesn't even know how to re-format his hard drive
[14:57] <Dark-knight> is me that cares
[14:57] <Dark-knight> i have standards
[14:58] <Dark-knight> what is the commandline to convert FLAC to ALAC and ASS to TTXT?
[14:59] <klaxa> running ffmpeg -codecs on my machine doesn't show ttxt
[14:59] <klaxa> (also, it's xml? who thought that would be a good idea?)
[15:00] <Dark-knight> oh i can just use subrip to convert the subtitles
[15:00] <Dark-knight> but what would i type to inject them into the video file?
[15:01] <c_14> ffmpeg -i file.mkv -i subs -c:a alac -c:v copy out.mp4
[15:01] <c_14> If ffmpeg knows what those subs are.
[15:01] <c_14> Might need to add -c:s copy and a negative mapping for the subs in the mkv
[15:07] <Dark-knight> assuming that ffmpeg knows what the subs are, would this be what i type?
[15:07] <Dark-knight> ffmpeg -i input.mkv -i Englishsub.ttxt -c:a alac -c:v copy output.mp4
[15:08] <c_14> yes
[15:13] <Dark-knight> how do i insert the subtitle stream into the output video while converting the audio stream at the same time? isn't there a few more commands im missing?
[15:13] <c_14> Nah, that should work.
[15:14] <Dark-knight> so i just put the subtitle file in the same folder as the video file and it should work right?
[15:14] <c_14> ffmpeg will by default take one video stream, one audio stream and one subtitle stream. Ie it should take the subtitle stream from the ttxt file and the audio stream from the input.mkv and convert it to alac because of the -c:a and the video stream from input.mkv and copy it because of the -c:v copy.
[15:14] <c_14> Doesn't have to be the same folder so long as Englishsub.ttxt points to the file
[15:17] <Dark-knight> ok, i just looked through my notes and remembered there is a mov_text command. Could i just use that to convert the ASS subs instead of using subrip?
[15:21] <Dark-knight> sorry about asking so many questions
[15:21] <c_14> It should work, but according to: https://trac.ffmpeg.org/ticket/1845 some clients might not like it.
[15:21] <c_14> But it might be fine on the ps, no clue. You'd have to test.
[15:21] <Dark-knight> thats alright i use VLC anyway
[15:28] <Dark-knight> will there be any audio quality loss by converting FLAC to ALAC?
[15:28] <c_14> nah, as long as you don't mess around with the samplerate
[15:37] <Dark-knight> ok should this be the correct commandline?
[15:37] <Dark-knight> ffmpeg -i input.mkv -c:v copy -c:a alac -c:s mov_text -map 0 output.mp4
[15:38] <c_14> That should work although the -map 0 might throw you errors because matroskas sometimes come with embedded font files not supported in mp4. You could probably just get rid of the -map 0 as long as you only need 1 video, 1 subtitle, and 1 audio track.
[15:39] <Dark-knight> what if the video has more then 1 audio track?
[15:40] <Dark-knight> like a video with dual audio streams
[15:40] <c_14> -map 0:a
[15:40] <Dark-knight> eng and jap?
[15:40] <Dark-knight> oh?
[15:41] <Dark-knight> -map 0:a copys all the audio stream?
[15:41] <c_14> That'll be safer in this case as it'll only copy all the audio tracks in addition to 1 video and 1 subtitle track so you don't copy the attachments if you don't want them.
[15:41] <c_14> yep
[15:42] <Dark-knight> well what if all the audio streams are FLAC and i want to keep/convert them all into ALAC?
[15:42] <Dark-knight> im going to be doing some of that after im done with this current file
[15:43] <c_14> -map 0:a -c:a alac <- will take all the audio streams and convert them to alac
[15:43] <c_14> they copy was a bit of a misnomer on my part
[15:43] <c_14> It doesn't actually copy them it just marks them for inclusion in the output
[15:44] <c_14> How the stream is encoded depends on the -c setting for that stream
[15:44] <Dark-knight> oh ok thanks man
[15:45] <Dark-knight> im going to add that to my notes for future reference
[16:02] <Dark-knight> If anybody would like a copy of my notes I would be more then happy to provide you with them.
[16:02] <Dark-knight> they are a work in progress, but are meant to be a beginners guide to ffmpeg.
[16:03] <Dark-knight> it includes a lot of basic commands. and a few advanced ones
[16:50] <termos> is there a requirement for resolution when encoding to x264? should it be divisible by some number?
[16:51] <c_14> It has to be even.
[16:51] <c_14> height and width that is
[16:53] <termos> it doesn't have to be related to macroblocks? because they are usually 16x16 or something
[16:58] <c_14> pretty sure everything's fair game so long as it's even.
[17:01] <Dark-knight> will alac audio work on a windows computer or device?
[17:01] <termos> okey, it's just that I have a weird problem with encoding to 426x236 resolution
[17:01] <sacarasc> There are many pieces of software that will play ALAC on a Windows PC, Dark-knight.
[17:02] <Dark-knight> ok thanks that all i needed to know. good night
[17:02] <sacarasc> Other devices would depend on what you can install on them too, I think.
[18:10] <kz1> is there an official method for dealing with sincos/sincosf on android ?
[18:22] <MarcelvanLeeuwen> can some point me to a script what i can customize to batch encode my movies with FFmpeg?
[18:23] <MarcelvanLeeuwen> i dont have much experience with writing scripts&
[18:23] <MarcelvanLeeuwen> for Linux
[18:32] <Fjorgynn> Wherever there is a man who exercises authority, there is a man who resists authority.
[18:34] <sacarasc> MarcelvanLeeuwen: for cheeses in *.mp4; do ffmpeg -i "$cheeses" [ffmpeg options here] "${cheeses%.mp4}.mkv; done
[18:35] <sacarasc> That will take in all the MP4 files in a directory you do it in, process them however you do the options, then names them as .mkv rather than .mp4 at the end.
[18:37] <MarcelvanLeeuwen> hmm, i like cheese!!!!
[18:37] <MarcelvanLeeuwen> do some testing after diner.., Thanks!
[18:44] <Freakshow> how do I accurately define timebase in my command line for flv streaming output?
[18:44] <Freakshow> whether it be via ffmpeg or via x264opts
[18:45] <Freakshow> I'm seeing this:
[18:45] <Freakshow> [flv @ 0x1e77a40] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[18:45] <Freakshow> but I'm pulling in from a unicast stream from an IRD so I'm not clear on where this message is coming from
[18:47] <c_14> That's been happening in recent ffmpeg git builds for me as well, I'm relatively sure you can ignore it.
[18:48] <c_14> It doesn't break anything anyway.
[18:52] <Freakshow> ok, great& at least it's not me
[18:53] <Freakshow> are you seeing this from builds on HEAD or are you checking out a particular release?
[18:53] <Freakshow> in my case, this is on HEAD
[18:53] <c_14> head
[18:54] <Freakshow> interesting, I may try with a release co just to see if it happens there as well
[20:33] <MarcelvanLeeuwen> Im doing something wrong but i dont know what
[20:33] <MarcelvanLeeuwen> http://pastebin.com/E7mP66mv
[20:34] <MarcelvanLeeuwen> Grafity_(2013).mkv: Invalid data found when processing input
[20:34] <MarcelvanLeeuwen> that is the error&
[20:34] <klaxa> your file is probably corrupted then
[20:35] <c_14> That, and matroska doesn't have moov atoms, so -movflags faststart at best will do nothing and at worst will error out (or b0rk stuff)
[20:35] <sacarasc> MarcelvanLeeuwen: You're trying to overwrite your input file when you do that. :\
[20:35] <c_14> Can you play said mkv?
[20:35] <c_14> That too.
[20:35] <MarcelvanLeeuwen> that is just what i thought&
[20:36] <MarcelvanLeeuwen> im trying at the moment
[20:36] <MarcelvanLeeuwen> no i cant play it
[20:37] <MarcelvanLeeuwen> damn permission problems
[20:37] <MarcelvanLeeuwen> stupid of me
[20:37] <c_14> You also might want to fix the overwriting issue before you destroy your files.
[20:38] <MarcelvanLeeuwen> not sure what you mean
[20:39] <MarcelvanLeeuwen> "${f%.mkv}.mkv"
[20:39] <c_14> yep
[20:39] <MarcelvanLeeuwen> you probably mean this
[20:39] <MarcelvanLeeuwen> okay
[20:39] <c_14> That'll delete the trailing .mkv and add a trailing .mkv
[20:39] <c_14> create an outdir or something
[20:39] <c_14> and just use outdir/$f
[20:40] <MarcelvanLeeuwen> im not follow you
[20:40] <MarcelvanLeeuwen> outdir/$f is what i must use
[20:41] <c_14> If you use that command up there, you will overwrite your input files and probably just corrupt them (if you say y at the prompt)
[20:42] <c_14> to stop this from happening make ffmpeg create new files in a different directory
[20:42] <c_14> ie mkdir out; for f in [..] -t 120 out/"$f";done
[20:44] <MarcelvanLeeuwen> ah, of course
[21:21] <MarcelvanLeeuwen> i corrupted the files thats why they dont played
[21:21] <MarcelvanLeeuwen> very learningful
[21:44] <Nimloth> Hello
[21:45] <Nimloth> can I get help here with CC error ? :)
[21:46] <sacarasc> (Or the compiling error.)
[21:48] <Nimloth> http://pastie.org/private/mv4hby4v2beub96lrio1g
[21:59] <sfan5> Nimloth: pastebin config.log too
[22:01] <Nimloth> http://pastebin.com/kkixnFaH
[22:04] <sfan5> Nimloth: ./configure: 771: ./configure: arm-marvell-linux-gnueabi-gcc: not found
[22:04] <sfan5> make sure it is in your $PATH
[22:05] <Nimloth> ok sec checking
[22:07] <Nimloth> nope didn't helped
[22:07] <Nimloth> export PATH=$PATH:/media/toolchain/arm-marvell-linux-gnueabi/bin
[22:08] <Nimloth> same error
[22:09] <Nimloth> hmm it looks suspicious ... cc1: error: bad value (armv7l) for -march switch
[22:10] <Nimloth> what arch and cpu should be: armadaxp ... maybe someone knows ?
[22:16] <Nimloth> http://pastebin.com/G8k7T7wY
[22:18] <Nimloth> ok progress - removed CPU CC option and it's fine now ... CPU is needed or can be skipped ?
[00:00] --- Wed Jul  9 2014


More information about the Ffmpeg-devel-irc mailing list