[Ffmpeg-devel-irc] ffmpeg.log.20140905
burek
burek021 at gmail.com
Sat Sep 6 02:05:01 CEST 2014
[00:16] <relaxed_> ogrgkyle: yes
[00:22] <relaxed_> well, I assume so :)
[00:25] <ogrgkyle> relaxed_: yeah, i hope so :) But do you know how I might try it?
[00:26] <relaxed_> ogrgkyle: ffmpeg -i input -vsync vfr ... output
[00:28] <ogrgkyle> Thanks, I'll try it!
[00:43] <ogrgkyle> relaxed_: I encoded a file, and it's still constant frame rate. Any other ideas/
[00:43] <ogrgkyle> ?
[00:44] <sacarasc> Was the input VFR?
[00:45] <ogrgkyle> Here's what I did: http://pastebin.com/4hmNwnLK
[00:48] <ogrgkyle> Did I do it correctly?
[01:05] <jehar_work> Heyo. I just made a change to some old scripts that serialized images into h264. It used to use the image2 input filter, but I noticed recent examples bypass that completely.
[01:06] <jehar_work> I noted that removing image2 resulted in a significant encoding speed boost. Is there still a reason to use image2 other than the special options it provides?
[01:07] <llogan> you mean you just removed "-f image2"?
[01:08] <jehar_work> Yeah
[01:08] <jehar_work> 50% speed gain
[01:09] <jehar_work> And the output looks to be identical - so I'm just wondering if there's some pitfall I'm missing.
[01:10] <llogan> hard to say what might be the difference without before/after commands and console outputs.
[01:11] <ogrgkyle> Hey, don't know if there's an answer to the VFR question. At any rate, why won't this make my audio mono? It's still stereo, even when I set ac to 1. http://pastebin.com/4hmNwnLK
[01:11] <llogan> however, i often see users adding -f image2 for the input when it is superfluous and image2 image file demuxer is going to be used anyway by default
[01:11] <llogan> you can view the console output to see if image2 is used: Input #0, image2, from '%03d.png'
[01:12] <jehar_work> Ah, you're absolutely right.
[01:12] <jehar_work> So specifying it was just passing it through twice, it seems.
[01:12] <jehar_work> That would seem to match up with the speed gain.
[01:12] <jehar_work> Commute time.
[01:13] <llogan> it shouldn't matter if -f image2 is used or not if that is going to be the default without adding it
[01:15] <llogan> ogrgkyle: you forgot the console output, as per tradition
[01:19] <ogrgkyle> llogan: you mean this? http://pastebin.com/PwQhhji0
[01:20] <llogan> no, the complete ffmpeg console output (hopefully without -v verbose)
[01:22] <ogrgkyle> i'll have to redo the encode
[01:24] <llogan> if it's an audio problem you can probably omit the video with -vn. and add -t so you don't have to encode the whole thing. -t 30 for 30 seconds, for example.
[01:27] <ogrgkyle> How's this? http://pastebin.com/KHtCcHm6
[01:28] <ogrgkyle> And no, I need video with the audio... but -ac 1 doesn't work
[01:30] <llogan> yes, you may need video later, but i meant that you can omit encoding the video for testing purposes
[01:31] <llogan> the console output indicates that the output is mono. what makes you believe it is not mono?
[01:32] <ogrgkyle> mediainfo and vlc
[01:33] <llogan> and apparently it does not like "auto" for -threads
[01:33] <llogan> i would believe ffmpeg before mediainfo
[01:34] <ogrgkyle> mediainfo: Channel(s): 2 channels , Channel(s)_Original: 1 channel
[01:34] <ogrgkyle> Okay
[01:34] <llogan> does it sound mono?
[01:34] <ogrgkyle> The stereo itself was dual mono, as far as i know
[01:34] <ogrgkyle> so i can't tell
[01:35] <ogrgkyle> but maybe it worked
[01:35] <ogrgkyle> What should I set threads to? Or should I just remove it?
[01:37] <llogan> does "ffmpeg -h encoder=libx265" show any threading capabilities?
[01:37] <ogrgkyle> no :/
[01:37] <llogan> then i guess you can remove it
[01:38] <ogrgkyle> okay
[01:38] <ogrgkyle> Any insight into the VFR question?
[01:38] <llogan> i don't know anything about that
[01:38] <ogrgkyle> all righty
[01:38] <ogrgkyle> thanks
[01:52] <Dark-knight> Flac Audio doesn't work on consoles. What is the next best thing?
[01:58] <llogan> Dark-knight: can you explain in more detail?
[02:00] <Dark-knight> I have a video file with flac audio. FLAC audio does not work on the ps3 or 360. What is the next best alternative?
[02:05] <llogan> Dark-knight: you could always use MP3 with a high enough bitrate/quality level to reach transparency. WAV probably wouldn't preserve metadata, so the console will probably not display title, author, etc.
[02:07] <c_14> Dark-knight: http://manuals.playstation.net/document/en/ps3/current/video/filetypes.html && http://support.xbox.com/en-US/xbox-360/system/audio-video-playback
[02:08] <Dark-knight> whats better aac or ac3?
[02:11] <Dark-knight> im not asking very hard questions. or at least i think im not
[02:12] <c_14> I'd probably go with AC3, just because then you can get 5.1 support and because the devices would limit you to AAC LC, but I'm not an expert when it comes to that. It also depends on what format/video codec you want to use since the devices are rather picky when it comes to that.
[02:12] <c_14> Which codec to use (especially with lossy codecs) is often a personal question.
[02:12] <c_14> There's often no absolute answer.
[02:19] <Dark-knight> thanks
[04:45] <rcombs> anyone know how ffmpeg's builtin RTMP support compares with rtmpdump?
[04:47] <rcombs> i.e., is it still worth building ffmpeg against librtmp?
[05:31] <ogrgkyle> Greetings
[05:31] <ogrgkyle> Anyone care to comment on my ffmpeg command here? http://pastebin.com/7wF5G9NP
[05:32] <ogrgkyle> See, I copied and pasted some of the parameters. Now I want to make the output file size smaller, so obviously I have to reduce the quality somehow. It seems, in my command, there are a few ways to do this.
[05:33] <ogrgkyle> So what should I adjust to make the file size smaller?
[06:29] <reactormonk> How do I set the interval for images when converting videos to images?
[06:31] <reactormonk> -r
[06:59] <Kirito> Is OpenCL worth bothering with? Would I get any realistic improvement utilizing it with a Nvidia GTX 680M GPU on top of an i7 processor, or would the improvement be negligible at best?
[07:54] <fling> Which format to encode? :P
[08:00] <Kirito> x264
[08:46] <fling> K4T: what about mkv + vp9 + libopus?
[08:46] <fling> Kirito: ^
[08:46] <fling> K4T: Hello. :>
[09:04] <K4T> :P
[09:28] <fling> What is the best method to fix shifted audio?
[09:28] <fling> I have few videos with audio shifted forward or backward
[10:50] <Mavrik> mornin.
[13:18] <anshul_mahe> What is the best way to pause webcam livestram for x seconds
[13:21] <anshul_mahe> just now I calculate number of frames for x duration and those frames I paint all with 0
[13:22] <anshul_mahe> but this approch is quite time taking, so I was looking for an approch which is more efficient then mine
[14:58] <anshul_mahe> Is there any way to do overlay only for perticular duration
[15:13] <mistawright> thats where the timeline would come into play. i dont know how to use it though. complete noob to ffmpeg
[15:22] <anshul_mahe> mistawright, I did it using eof_action ffmpeg -y -i ~/test_videos/1.mp4 -vcodec libx264 -vf "color=duration=3:s=90x90[bg];[1][bg]overlay=eof_action=pass" out.ts
[15:32] <termos> how to properly access individual pixels in an AVFrame of format RGB24?
[15:33] <termos> Something to do with frame->data without a doubt, but I'm not sure how to index it
[15:34] <anshul_mahe> http://ffmpeg.org/pipermail/ffmpeg-devel/2006-September/020773.html if this help
[15:54] <anshul_mahe> termos,function avpicture_fill do the actual part
[16:02] <termos> hm not really, since I need to access one pixel say a function uint8_t GetPixel(int x, int y, AVFrame *frame)
[16:03] <saste> termos, frame->data[0][y*linesize + x*3]
[16:03] <termos> ah thanks!
[16:26] <avantus> when using drawtext (from file) i get errors when text contains characters such as %
[16:26] <avantus> [Parsed_drawtext_1 @ 0000000002be8880] Stray % near '' any idea how to fix it?
[16:31] <c_14> Try escaping it?
[16:36] <saste> avantus, yes % is a special character for drawtext, use %%
[16:37] <saste> or you can disable string expansion so the text will always be interpreted literally, check the fine docs for the gory details
[16:38] <avantus> i think the latter applies to me, since i dont have control over the text file
[16:39] <avantus> one more question:
[16:40] <avantus> how do i prevent read errors, when ffmpeg tries to read my file when its being written?
[16:41] <saste> avantus, what file is written?
[16:41] <avantus> my txt file iam reading from is being written by third app
[16:42] <avantus> "Error occured in CreateFileMapping()"
[16:42] <saste> avantus, when you are writing the file is locked, at least so i think
[16:43] <saste> uh so you're on windows...
[16:43] <avantus> yes
[16:43] <saste> but again, in *theory* this shouldn't happen, because you can't read a file when it is being written
[16:44] <saste> or the other way, you can't write when another process is reading
[16:44] <saste> the OS should handle the lock
[16:44] <saste> if not i can't help
[16:45] <avantus> could i tell ffmpeg to wait for it instead of throwing the error?
[16:54] <saste> avantus, can you test the same thing on linux? if you don't have that problem, probably is an av_map_file() bug which affects windows
[17:01] <avantus> cant at the moment
[18:02] <luc4> Hello! Im using the segment muxer. What I notice is that if I output to mkv files, the files resulting from the segmentation have wrong duration. The duration is actually what should be the end of the segment in the original stream. Anyone who experiences the same?
[18:15] <c_14> luc4: try -reset_timestamps 1 ?
[18:18] <ViDau> i have an avi like this: 0.0 video || 0.1 audio 2ch stereo - and I want to put left channel to one -aid and the other channel to another aid
[18:24] <luc4> c_14: ah thanks, works perfectly now.
[18:24] <ViDau> It should be something like this, I guess... : 'ffmpeg -i input.avi -map 0.1 -map 0.1 -c:v copy -c:a LEFT_CHANNEL_to_aid_128 -c:a RIGHT_CHANNEL_to_aid_129 output.avi
[18:25] <ViDau> but howto take only left or right channel? and howto assign to aid s or alang?
[18:26] <c_14> You're trying to split a stereo audio track into two mono tracks?
[18:28] <c_14> https://trac.ffmpeg.org/wiki/AudioChannelManipulation#stereo2monostreams
[18:29] <ViDau> c_14: that's right - there're two different languages - one in each channel
[18:33] <ViDau> c_14: what is 'channelsplit' supposed to do? does it transform 0.1 2ch stereo -> 0.1 mono AND 0.2 mono?
[18:33] <ViDau> problem is - my ffmpeg seems to be lacking filter_complex ;)
[18:33] <ViDau> ;(
[18:33] <c_14> https://ffmpeg.org/ffmpeg-filters.html#channelsplit
[18:36] <c_14> Hmm, since Burek's builds haven't been updated since July 16, should someone update fflogger's static dl message?
[18:36] <ViDau> this might work: 'ffmpeg -i input.avi -map_channel 0.0.0 left.mp3 -map_channel 0.0.1 right.mp3' and then remux - but how about the sync?
[18:37] <ViDau> ffmpeg -i input.avi -i right.mp3 -i left.mp3 .... -newaudio ??
[18:38] <c_14> I'd just download the static build and use the channelsplit filter, you don't want to be using outdated builds anyway.
[18:39] <c_14> You could, however split like above and then ffmpeg -i avi -i right -i left -map 0:v -map 1 -map 2 [options] outfile
[18:39] <c_14> s/however/however,
[18:41] <ViDau> there is no such thing as an -af channel in ffmpeg?
[18:41] <c_14> A what?
[18:42] <ViDau> audio filter for channel manipulation
[18:43] <c_14> iirc there are at least 10 audio filters in ffmpeg that can modify channels
[18:43] <c_14> https://ffmpeg.org/ffmpeg-filters.html#Audio-Filters
[18:48] <ViDau> haven't found the right opts yet, but using map I could double the stereo to 0.1 and 0.2 and then use afilter to map right ch to left on one stream and vice versa on the oterh!?
[19:07] <Dark-knight> Off-topic: Does anybody here have Kaspersky. If yes, does it scan items as you download them?
[19:07] <Dark-knight> a simple, yes or no, shall suffice.
[19:41] <llogan> c_14: unfortunately, AFAIK, only burek can update fflogger.
[19:42] <llogan> but i did update the download page to remove his builds link (at least until he returns)
[20:02] <c_14> llogan: hmm, ah well then. I'll just have to keep it in mind.
[21:03] <rule_2> if I type **ffmpeg -f v4l2 -s 1920x1080 -i /dev/video2 -vcodec rawvideo rawvideo.mov** I can record video from an HDMI capture device, if I type **ffmpeg -f alsa -i hw:2 out.wav** I can record audio from that same HDMI capture device, but I am running into trouble finding a command line that will output/mux them bvoth to the same file
[21:04] <c_14> ffmpeg -f v4l2 -s 1920x1080 -i /dev/video2 -f alsa -i hw:2 -c:v rawvideo -c:a pcm_s16le outfile
[21:06] <rule_2> c_14: would i specify the video codec the same way i did before o rno?
[21:06] <rule_2> :vnevermind
[21:06] <rule_2> just misread your line
[21:06] <rule_2> thank you c_14
[21:08] <rule_2> that returns Unknown encoder 'pcm_s161e' which is strange because I am able to record a WAV file by itself
[21:08] <rule_2> hmm
[21:08] <c_14> That's an 'l' not a '1'. (ell not one)
[21:08] <c_14> You wrote a '1' not an 'l'. (one not ell)
[21:09] <rule_2> ell six one e?
[21:09] <rule_2> one six ell e?
[21:10] <klaxa> one six ell eee
[21:10] <klaxa> 16 bit little endian
[21:10] <rule_2> i got it thanks :) :)
[21:11] <c_14> You might want to get a font where you can differentiate between ones and ells though...
[21:11] <rule_2> another strange point is i can only record video in 1 of every 18 tries
[21:12] <rule_2> it looks something like this http://bpaste.net/show/4a4f77635d81
[21:12] <rule_2> is there a way to resolve the buffer issue before starting a new recording?
[21:13] <rule_2> I can't tell if that is user error or the result of buying a Chinese USB3 capture card for $300
[21:15] <c_14> Maybe with v4l2-ctl ?
[21:16] <rule_2> v4l2-ctl --list-devices always sees it, even when that error shows up
[21:18] <c_14> Hmm, I have no idea.
[21:18] <c_14> Just unplugging it and plugging it back in doesn't help?
[21:19] <rule_2> with video yeah, i can do it after plugging it back in after about 5-15 tries
[21:19] <rule_2> weird thing is when i use the command for video and audio i can never get both at a time
[21:19] <rule_2> sometimes i get audio, sometimes i get nothing, but never video & audio
[21:19] <c_14> driver issues?
[21:19] <rule_2> it's this thing, supposedly needs no drivers http://www.magewell.com/hardware/dongles/xi100dusb-hdmi/xi100dusb-hdmi_features.html?lang=en
[21:20] <c_14> Does dmesg say anything interesting?
[21:20] <c_14> When you plug it in, unplug it, plug it in the first time, etc?
[21:22] <rule_2> http://bpaste.net/show/19f9bbaa36b8
[21:22] <rule_2> nothing to interesting
[21:22] <rule_2> **too
[21:26] <rule_2> i was just able to use guvcview to record audio & video to one file but I'd rather use ffmpeg
[21:26] <rule_2> more options
[21:26] <rule_2> and less junk
[21:26] <c_14> So guvcview does not have that issue?
[21:26] <rule_2> correct, I just recorded a 10 second sample with audio and video
[21:27] <rule_2> it records from pulse not alsa, which is the only difference I can see, for audio
[21:27] <rule_2> for video, it never gives an error about a buffer being in use, the video always works on first try
[21:27] <c_14> Hmm, maybe guvcview is requesting a different format/standard
[21:27] <rule_2> camera output is set to RGB3
[21:27] <rule_2> there is no V4L2 in the drop down menu
[21:28] <c_14> Try using ffmpeg -f v4l2 -list_formats all -i /dev/video2
[21:28] <c_14> and the same with -list_standards all
[21:28] <c_14> you can also try recording the audio with pulse with -f alsa -i pulse
[21:28] <rule_2> also guvcview recorded video is terrible, ffmpeg's is clean
[21:29] <rule_2> guvcview video is a slideshow, ffmpeg's is realtime motion with no glitches
[21:30] <rule_2> c_14: http://bpaste.net/show/58fd9e8c61e9
[21:30] <rule_2> c_14: also, thank you for the help
[21:32] <rule_2> let me try rebooting
[21:34] <rule_3> alrighty
[21:35] <rule_3> if I try to run that script twice, I get the error device or resource busy for both audio and video
[21:36] <rule_3> [alsa @ 0x168f140] cannot open audio device hw:2 (Device or resource busy)
[21:36] <rule_3> hw:2: Input/output error
[21:36] <rule_3> [video4linux2,v4l2 @ 0x168dd20] Some buffers are still owned by the caller on close.
[21:36] <c_14> While the script is already running?
[21:36] <rule_3> i ended it, then tried to start up again to record another video
[21:36] <rule_3> and i only had audio to begin with :(
[21:37] <rule_3> if i could get audio and video i wouldn't mind rebooting everytime i wanted to do another segment, but not being able to record video unless i try the command 18 times without audio is going to be a tough sell
[21:37] <c_14> Does ffmpeg spit out any warnings when it can't get the video?
[21:39] <rule_3> c_14: video is working every time now >[
[21:39] <rule_3> go figure, i need an error code and it never dies..
[21:39] <rule_3> ffmpeg -f v4l2 -s 1920x1080 -i /dev/video1 -vcodec rawvideo output154.mov is the cmdline for that
[21:40] <c_14> So it works if you only have video?
[21:40] <c_14> And that other thing worked and used pulse?
[21:40] <rule_3> correct
[21:41] <c_14> try replacing -i hw:2 with -i pulse
[21:41] <c_14> That'll use the pulse device.
[21:41] <sfan5> alsa is very strict about who uses a device
[21:42] <rule_3> it is working at 26 kbps
[21:42] <rule_3> let's see what this is talking about
[21:42] <rule_3> holy crap, audio and video
[21:42] <rule_3> god bless you c_14
[21:43] <rule_3> i am posting this on the forum thread so that if anyone else drives themselves nuts they can solve it
[21:43] <rule_3> c_14 are you an ffmpeg dev or just a really savvy end user?
[21:44] <c_14> Mostly just an end user.
[21:44] <c_14> I have sent minor patches for things that were annoying me when I was helping somebody.
[21:48] <rule_3> let's see if the resulting file is good
[21:59] <rule_3> gah,the video captured is laggy as hell
[21:59] <rule_3> camcorder to the television has no lag
[21:59] <rule_3> let's see
[22:00] <rule_3> ffmpeg uses 65% CPU. now this 1987471 kbit reocrding stream...
[22:01] <rule_3> 248 MBps, damn.
[22:01] <c_14> You might want to use something other than rawvideo as the output format.
[22:01] <c_14> Rawvideo will kill your io.
[22:04] <rule_3> that is right at the limit of what my cheapo samsung evo is capable of
[22:08] <c_14> Maybe with -c:v libx264 -crf 0 -preset ultrafast ?
[22:16] <rule_3> my goal is something lossless for capture
[22:17] <rule_3> i am goign to try mpeg2video just to confirm that the issue is with the I/O & not with the dongle/capturing process
[22:19] <rule_3> [video4linux2,v4l2 @ 0x7a5d20] The v4l2 frame is 0 bytes, but 4147200 bytes are expected
[22:19] <rule_3> /dev/video1: Invalid data found when processing input
[22:19] <rule_3> gah, back to the drawking board...
[22:19] <rule_3> 0 kbps video capture
[22:20] <rule_3> this is what i get for getting lunch in the middle of something working.
[22:28] <louis__> what was that superfast option you gave c_14
[22:28] <louis__> ?
[22:29] <c_14> -c:v libx264 -crf 0 -preset ultrafast ?
[22:29] <c_14> That'll use libx264 in lossless mode
[22:30] <c_14> With minimal compression.
[22:31] <rule_2> i'm back to the drawing board where it records video 1 in every 20 tries
[22:31] <rule_2> i have no idea how that fixed itself,then died because iwalked away from the laptop
[22:32] <c_14> Murphy's Law?
[22:33] <rule_2> i hate murphy
[22:37] <sacarasc> Murphy's Law: It will never be as popular as Guinness.
[22:39] <rule_2> :(
[22:41] <rule_2> c_14: that lossless option works great
[22:52] <llogan> sacarasc: i just had a guinness. and it's just after lunch time here.
[22:55] <relaxed_> guinness is lunch
[23:25] <rule_2> hopefully someone on the mailing list can tell me what i am doing wrong with this buffer silliness
[23:33] <dvdvideobug> looking for some help
[23:33] <dvdvideobug> there is a program that uses ffmpeg as a backend
[23:33] <dvdvideobug> I need to always apply the option -target dvd
[23:34] <dvdvideobug> is there a config file option for this thanks
[23:35] <c_14> I'm pretty sure FFmpeg does not have a configuration file.
[23:37] <dvdvideobug> i couldnt find any .INI or .RC files or anything in the docs so that is what I thought, thanks for the help saved me wasting time
[23:38] <dvdvideobug> be trying to cut a video with dvdvideosoft and it corrupts the sound on direct stream copy ...
[23:39] <dvdvideobug> Im sure it is ffmpeg bug #2160 #1720
[23:40] <llogan> that software is spammed all over the place on forums, mailing lists, etc.
[23:40] <llogan> in the same shitpile as faasoft, firecoresoft, idealshare, etc
[00:00] --- Sat Sep 6 2014
More information about the Ffmpeg-devel-irc
mailing list