[Ffmpeg-devel-irc] ffmpeg.log.20121220
burek
burek021 at gmail.com
Fri Dec 21 02:05:02 CET 2012
[00:00] <ubitux> i'm not motivated to do work for money myself now, but we have a donation system if you're happy with ffmpeg
[00:01] <Zeeflo> ill only donate if you promise to meet up with your mates and eat pizza and drink beer for my donation!
[00:02] <Zeeflo> hah!
[00:02] <cbsrobot> ubitux: you don't have a job and you don't need money - quite intresting livestyle :-P
[00:02] <cbsrobot> dericed: I care once a year and then I forget about it again
[00:03] <Zeeflo> can I make a title for my encode?
[00:03] <ubitux> Zeeflo: i don't drink alcohol and i hate to go out ;)
[00:03] <ubitux> a title? what do you mean?
[00:03] <Zeeflo> is there like a -title="blbabla"
[00:03] <ubitux> -metadata title=blabla
[00:03] <Zeeflo> ah yea. of course.
[00:03] <Zeeflo> metadata
[00:04] <ubitux> cbsrobot: it's not like i don't need money; i just don't want any constraint at the moment :)
[00:04] <ubitux> freedom is precious, so i'm taking some for a while
[00:04] <cbsrobot> ubitux: I undestand
[00:04] <cbsrobot> so I don't give you money for true peak then
[00:04] <ubitux> ;)
[00:04] <Zeeflo> heh
[00:05] <ubitux> it's true that i need to do true peak mmmh
[00:05] <Zeeflo> where do you live?
[00:05] <ubitux> in my appartment
[00:05] <cbsrobot> and I won't give you a job or party or alcohol !
[00:05] <Zeeflo> which is in what country?
[00:05] <ubitux> france
[00:05] <Zeeflo> Putain!!
[00:05] <Zeeflo> en france!
[00:06] <ubitux> oula tu te calmes tout de suite
[00:06] <Zeeflo> oui oui.. pardon!!
[00:06] <ubitux> :)
[00:06] <Zeeflo> calme calme!!
[00:06] <Zeeflo> hehe
[00:06] <ubitux> cbsrobot: thank you
[00:06] <Zeeflo> is it with an s or not?
[00:06] <cbsrobot> ubitux: mais fais gaffe - je pourrais bientôt changer d'avis !
[00:06] <Zeeflo> calmes toi
[00:06] <Zeeflo> calme
[00:07] <ubitux> Zeeflo: without 's' yes since it's imperative, but it's not the correct form anyway
[00:07] <Zeeflo> dacor..
[00:07] <ubitux> i'm french so i'm allowed to write in a crappy way my own language
[00:07] <Zeeflo> hehe yea!
[00:07] <Zeeflo> i know!
[00:08] <Zeeflo> i was once french too ;)
[00:08] <ubitux> that's also what that means to be free
[00:08] <Zeeflo> ubitux: youre GPL!!
[00:08] <Zeeflo> let me modify the shit outta you!
[00:08] Action: ubitux gives its cancer to Zeeflo
[00:08] <ubitux> his*
[00:09] <Zeeflo> is it a bad cancer? :P
[00:09] <ubitux> freedom cancer
[00:09] <Zeeflo> fuck.. we dont got that here in denmark!
[00:09] <ubitux> you're forced to be free
[00:09] <Zeeflo> vive la fraaance!!
[00:09] <Zeeflo> ou en france?
[00:10] <Zeeflo> quelle ville?
[00:10] <ubitux> paris
[00:10] <Zeeflo> oula la!
[00:10] <ubitux> fbi can't reach me
[00:10] <ubitux> i'm not afraid
[00:10] <Zeeflo> its a city getting more and more infected!
[00:10] <Zeeflo> im not fbi!
[00:11] <ubitux> prove it
[00:11] <Zeeflo> http://cdn.memegenerator.net/instances/400x/25144865.jpg
[00:11] <Zeeflo> is that good enough for ya?
[00:11] <Zeeflo> i was kicked out!
[00:11] <Zeeflo> they said i was nuts!
[00:12] <ubitux> i see
[00:12] <Zeeflo> so..
[00:12] <Zeeflo> have you guys seen any aliens lately?
[00:12] <Zeeflo> :D
[00:12] <ubitux> every morning
[00:12] <ubitux> in the mirror
[00:13] <Zeeflo> im coming dude! I know just what to do!
[00:13] <Zeeflo> dont worry! I got your cancer on this!
[00:14] <ubitux> :)
[00:14] <Zeeflo> i miss france..
[00:14] <emerica_> Time to dust off the motobecane
[00:15] <Zeeflo> emerica_: remember to wipe afterwards!
[00:15] <Zeeflo> so you dont slip and fall!
[00:24] <Zeeflo> :P
[00:25] <Zeeflo> gotcha!
[00:25] <Zeeflo> the subtitles works
[00:26] <Zeeflo> how can I change the macros you pastebinned?
[00:26] <ubitux> edit the code :p
[00:26] <Zeeflo> duuuuude
[00:26] <ubitux> as i said, it's not supported
[00:26] <Zeeflo> i know i know
[00:27] <Zeeflo> you also talked something about b:v 0
[00:27] <Zeeflo> what does that do for my encoding?
[00:27] <ubitux> just a simple trick to get decent quality with libvpx (vp8)
[00:28] <Zeeflo> ah ok.. so its not for the mp4
[00:28] <ubitux> indeed
[00:50] <Zeeflo> why so sad!
[00:57] <burek> :)
[01:04] <Zeeflo> if you need powder! Im your man!!
[01:45] <bjrohan_> I have my command line commad written for recording my desktop. I would like to assign it to a hotkey in Ubunut, can anyone help me do this?
[01:48] <sine__> whats a good crf settings for conserving filesize on a crappy iphone video
[01:57] <sine__> i have a 3 minute iphone video that is like 230MB
[01:57] <sine__> i want to reduce the filesize on it to under a 100 at least please
[01:57] <sine__> it uses h264/aac
[02:31] <digitalfiz> hey ubitux I am home now and messing with this again. When i list the files in a text file i get this
[02:32] <digitalfiz> [concat @ 0x25722a0] Line 1: unknown keyword 'unprocessed/encoded/6_min_test-0.mp4'
[02:32] <digitalfiz> files.txt: Invalid data found when processing input
[02:32] <ubitux> lemme read the doc
[02:33] <ubitux> "file path"
[02:33] <cbsrobot> digitalfiz: you need to write: file /path/to/file
[02:33] <ubitux> prefix every file with "file"
[02:34] <digitalfiz> ok
[02:36] <digitalfiz> that works
[02:36] <digitalfiz> thank you for all the help ubitux
[02:41] <fumon> Is anyone aware of a good free DLNA server with ffmpeg transcoding? ps3mediaserver has just lost my vote.
[02:44] <digitalfiz> awww man all that work and the videos skip at the points where they are joined :(
[02:46] <digitalfiz> ubitux: i didnt use the segment stuff to split my videos. would I have better success with that?
[02:46] <ubitux> what do you mean by skip?
[02:46] <ubitux> you can try yes
[02:47] <digitalfiz> i can tell where it was split
[02:47] <digitalfiz> the video jerks and the sound skips
[02:47] <ubitux> ok
[02:47] <ubitux> well, give it a try, you'll see
[05:14] <koturk> Hey guys, I am trying to install ffmpeg on my ubuntu server using the UbuntuCompilationGuide on the ffmpeg site. When I do the configure step for ffmpeg I keep getting ERROR: libaacplus not found and ERROR: fdk-aac not found even though I installed those like the guide said.
[05:14] <koturk> Any thoughts?
[05:22] <klaxa> koturk: what package did you install? fdk-aac-dev ?
[05:23] <koturk> It was just fdk-aac from the git
[05:23] <koturk> not the dev ver
[05:24] <klaxa> did you install it?
[05:24] <klaxa> like, sudo make install ?
[05:25] <koturk> yep, just like the guide said
[05:25] <klaxa> can you point me to the guide?
[05:25] <koturk> https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[05:26] <koturk> although they said to run checkinstall, which said it was installed
[05:26] <klaxa> hmm... weird
[05:26] <klaxa> no idea actually, sorry :S
[05:27] <koturk> thats ok :) I think ffmpeg might not be looking for it in the right dir maybe
[05:27] <koturk> I'm not sure
[05:28] <koturk> I see the libfdk-aac files in the /usr/local/lib/ directory
[06:13] <koturk> gtg, I'll be back later. If anyone has any ideas, please feal free to post them. I also noticed in the configure log its saying "/usr/bin/ld: error: cannot find -laacplus" I think mine is installed in /usr/local/lib/ which could be the issue. Be back later. Thanks in advanced.
[08:40] <elkng> I have a question
[08:40] <klaxa> you may ask it
[08:41] <cbdev> i have a dream
[08:42] <elkng> cbdev: your dream as long as my question ?
[08:43] <cbdev> seeing as you just asked your question, its porbably longer ;D
[08:43] <cbdev> when i dream, i tend to sleep in ;)
[08:44] <elkng> http://sprunge.us/bCQT http://sprunge.us/ehda those are two versions of a command to make 2 pass transcoding from "avi" to "3gp" the commands the same but in first case I use additional "-vf scale=320:240,pad=320:240:0:0 -r 25" for first pass but
[08:44] <elkng> eventually files from both commands are differ, first command took "1m41s" to run and second is "2m34s" to run, first file is 4,035,778 bytes and second file is 3,724,495 bytes, and seems like first video is better quality, how piece "-vf
[08:44] <elkng> scale=320:240,pad=320:240:0:0 -r 25" changing resulting file if its in first pass where there is no encoding ? do I need "-vf scale=320:240,pad=320:240:0:0 -r 25" in first pass ?
[08:47] <klaxa> i would think so, i'm not sure though, did you check the documentation on mutli-pass encoding?
[08:49] <elkng> no
[11:37] <brontosaurusrex> id like to encode to xdcamhd 50 pal 4:2:2 mxf, any good howtos?
[11:40] <mateo`> brontosaurusrex: you can try this video parameters, http://pastie.org/5556528
[11:41] <brontosaurusrex> mateo`: wonderfull, let me try
[11:49] <brontosaurusrex> mateo`: should audio be dual mono? also how do i get upper-field-first? (otherwise it looks ok)
[11:49] <brontosaurusrex> shouldn't *
[11:50] <brontosaurusrex> also it looks like audio should be 24 bit
[11:50] <mateo`> brontosaurusrex: if you want to comply with the rdd9 spec, audio channels should be splited into mono tracks
[11:53] <brontosaurusrex> the map ing horror?
[11:54] <brontosaurusrex> how about 24 bitnes?
[11:57] <sine__> hi guys. i have an iphone 4 video which is h264 and aac its 3 minutes long and is like 230 mb at 720p i want to get the filesizown
[11:58] <sine__> ffmpeg -i iphone.mov -vcodec libx264 -crf 10
[11:58] <sine__> ?
[11:58] <sacarasc> What are you trying to do? Your like got a little cut.
[11:59] <sine__> reduce the file size so i can upload it to youtube
[11:59] <sine__> i want it less than 100mb
[12:00] <sacarasc> You'd need to reduce the overall bitrate to 4544kbps or under, if it is exactly 3 minutes long.
[12:00] <sacarasc> That's video and audio combined.
[12:01] <sacarasc> What is the audio bitrate?
[12:03] <sine__> video is h264 baseline
[12:03] <sine__> aac 63/kbs
[12:04] <sacarasc> You want it to work on computers or devices too?
[12:05] <sine__> just youtube really for small filesize. its not a hd video i just dont want it crappy blocky
[12:05] <sine__> its 720x1280
[12:05] <sine__> i have a notepad where i write down commands for ffmpeg so if you help me it will be saved in my info pad
[12:06] <sacarasc> ffmpeg -i foo.mov -c:v libx264 -preset slow -b:v 4400 -pass 1 -c:a copy -f mp4 /dev/null && ffmpeg -i foo.mov -c:v libx264 -preset slow -b:v 4400 -pass 2 -c:a copy -f mp4 output.mp4
[12:06] <sacarasc> If it is 3 minutes long, it should be under 100MB.
[12:06] <sine__> 3 minutes 10 seconds or something. that will do thanks
[12:07] <sacarasc> Change 4400 to 4200 then.
[12:07] <sine__> on both ?
[12:07] <sacarasc> Yes.
[12:08] <sine__> and im windows so dev null is not a place
[12:08] <sacarasc> I think NUL works as the same thing in Windows.
[12:08] <sine__> ok its enc thanks
[12:09] <sine__> whats the benefits of 2 pass
[12:10] <sacarasc> It more efficiently uses the bitrate where needed.
[12:10] <sine__> ok i got this
[12:10] <sine__> foo.mov no such file or directory (this was after a pass of some kind)
[12:10] <sine__> OH ITS ME
[12:10] <sine__> forget it hhah
[12:11] <sine__> i forgot to rename both
[12:11] <sine__> :d
[12:11] <sacarasc> Heh.
[12:14] <sine__> sacarasc: i get an error at the end. i have cut out the frames enc data for size but http://pastebin.com/JQSmFfwh
[12:14] <sacarasc> Ah!
[12:15] <sacarasc> I messed up the command.
[12:15] <sacarasc> 4200k
[12:15] <sacarasc> For the video bitrates.
[12:15] <sacarasc> Sorry.
[12:15] <sine__> dont be sorry you are helping me dude :D
[12:15] <sine__> thanks
[13:27] <sladen> (I'm been playing with this off and on for a few hours now, trying a combination of -vsync ..., -ar ... -r:a ... )
[13:29] <sladen> I have a camera feed recording (video + audio for sync), and a high-quality feed from the stage microphone (stereo audio)
[13:29] <sladen> after 1.5 hours these are 600 milliseconds out owing to clock/oscillator drift in consistencies
[13:30] <sladen> ideally I'd like to copy both audio and video streams as is, but have the time-stamps adjusted so that the 0.01% error is dealt with at playback, not requring a reencode
[13:31] <cbsrobot> sladen: there's also -async
[13:32] <sladen> cbsrobot: yes, and -async (and several other options/combinations not explictly mentioned. Thus far I've been unsucessful)
[13:34] <sladen> cbsrobot: I haven't been able to convince ffmpeg that the timestamps might actually be inconsistent
[13:34] <cbsrobot> sladen: what bout asyncts filter ?
[13:36] <sladen> cbsrobot: I have tried combinations using this, and delveged into the source (where it is force activated by -async). Again, I haven't been successful, but I'm hoping that there is somebody more familiar than I who may be able to suggest new combinations, or add enlightenment (eg. if it's a case of a specific, exacting ordering on the commandline)
[13:37] <cbsrobot> sladen: kinda hard if nothing worked so far
[13:38] <sladen> cbsrobot: eg. I also have a -itsoffset 00:00:23.00355 in play, which sample aligns the high-quality audio feed to the low-quality camera sync feed
[13:38] <cbsrobot> I guess you're looking for a way to tune the timestamps
[13:38] <sladen> cbsrobot: well, many things work. What I need is a 0 millisecond offset at the start of the file, and a -600 millisecond shift at the end
[13:39] <sladen> cbsrobot: and this is specifically what I have been unable (yet) to achieve
[13:39] <cbsrobot> If I understad it right the timestamps in the audio and video drift away
[13:40] <cbsrobot> so I guess you want a way to compensate this drift
[13:44] <sladen> cbsrobot: yes. (in a nutshell, I want to keep the audible words in-sync with the mouth movements. This drift has ~23 seconds at the start at ~23.6 seconds at the end)
[13:45] <cbsrobot> sladen: normally you'd use atempo filter for it
[13:46] <cbsrobot> but that means tanscoding
[13:46] <cbsrobot> but first:
[13:46] <cbsrobot> just to see if there is nothing else borked
[13:48] <sladen> fflogger: history
[13:49] <sladen> fflogger: history | grep ^ffmpeg -c tells me I have 145 different unique combinations of command I have used. Which one(s) do you want?
[13:49] <cbsrobot> I cant see it
[13:49] <cbsrobot> sladen: fflogger is a bot
[13:50] <cbsrobot> I'm interestet in the input files
[13:50] <cbsrobot> ffmpeg -i file1 -i file2
[13:53] <sladen> cbsrobot: http://pastebin.com/MxLmaUjK
[13:54] <cbsrobot> & and the complete console output.
[13:54] <cbsrobot> just this: ffmpeg -i stage-feed.mp3 -i ../camera-feed.mp4
[13:56] <sladen> cbsrobot: the most interesting bit is probably Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001)
[14:09] <sladen> cbsrobot: http://pastebin.com/rx5K3nm4 with latest git freshly built
[14:14] <sladen> cbsrobot: anything else you need?
[14:15] <cbsrobot> sladen: no but I'm busy now
[14:15] <cbsrobot> sorry
[14:15] <cbsrobot> in general mp3 and mpeg4 are not very well suited for keeping sync
[14:15] <cbsrobot> and if your external clock drifts it's kinda hard
[14:15] <cbsrobot> I have to think about it
[14:17] <cbsrobot> sladen: try with atempo - just to see if it fits
[14:26] <flavioribeiro> I could notice some delay in rtmp connection through ffmpeg.. just saw this thread (http://ffmpeg.org/pipermail/ffmpeg-user/2011-August/001929.html) with no answer. Does anybody here have a trick to solve this?
[14:27] <stulluk> Hi, How can I port FFmpeg to my certain arm-linux system to support video decoder ?
[14:35] <sladen> stulluk: assuming you've already got eg. Ubuntu on your arm board, you can do roughly git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg && ./configure && make
[16:19] <chellist> is libavformat supposed to drop duplicate frames in fraps streams?
[16:22] <Tjoppen> chellist: it should set pkt->duration IIRC
[16:33] <chellist> ffmpeg (libx264): http://pastebin.com/xwkaVB1L
[16:34] <chellist> x264 (ffms): http://pastebin.com/EyeG6FzX
[16:35] <chellist> input is 50 frames. ffmpeg outputs 3, x264 using ffms outputs 50
[16:35] <chellist> x264 using lavf probably outputs 3 too
[16:38] <Tjoppen> try adding -r 25 to the ffmpeg line
[16:38] <Tjoppen> it might be outputing VFR
[16:38] <Tjoppen> (of course, if it is outputing VFR then your player is broken for not handling it correctly)
[16:41] <chellist> did -r 60 (as it's 60fps) but that didn't change anything
[16:42] <chellist> ffprobe reports the encoded video as being .08 seconds (3 frames)
[16:42] <Tjoppen> ffprobe -show_packets test.avi
[16:42] <Tjoppen> see what it says about the packets' durations
[16:43] <chellist> all the same, duration_time=0.016667
[16:43] <chellist> 50 packets
[16:51] <Tjoppen> then that sounds like a bug
[16:58] <sladen> cbsrobot: http://ffmpeg.org/trac/ffmpeg/ticket/694 this is effectly the same request, created by burek. But closed on the basis that 'setpts' should do it (although it doesn't because 'setpts' causes a re-code)
[18:52] <schtinky> Hey guys. Recorded a screencap in ubuntu with recordmydesktop and am desperately trying to get it into cinelerra for editing...
[18:53] <schtinky> problem is, cinelerra crashes when importing the file as-is, so I'm trying to put it into another format. Unfortunately, converting to mov, mjpeg and other formats screws up the video
[18:54] <schtinky> it becomes jumpy and pixelated at points. There are warnings during conversion that the orignal file is bad
[18:54] <schtinky> I was able to convert it to mpeg4 xvid and it plays perfectly in mplayer, but cinelerra won't take the file for some reason. No error... just doesn't take it
[18:55] <schtinky> so in short, cinelerra isn't taking the formats that look correct, and IS taking the formats that are jumpy and pixelated...
[18:55] <schtinky> Can anyone suggest a go-to format they typically use, or something I haven't tried for repairing the original, flawed ogv?
[18:57] <schtinky> at this point I'm just reading the list of codecs and trying ones that sound familiar
[18:57] <schtinky> btw, I know it's not audio. I took it out with "-an". Definitely a video issue
[19:00] <Richter12x2> I've recompiled ffmpeg to include libfaac and encoding seems to go fine, but when I try to play it, I get the message that Python is looking for the audio decoder and there's no sound
[19:01] <Richter12x2> "Python (v2.7) requires to install plugins to play media files of the following type: audio/x-avi-unknown decoder"
[19:04] <Richter12x2> Any ideas on what I can do to get the audio to work?
[19:07] <schtinky> I'd ask that question in a python channel
[19:07] <schtinky> doesn't sound like an ffmpeg issue
[19:08] <Richter12x2> If I right click the video before I open it, it shows that the audio codec is unknown
[19:08] <rosieres> does anybody know how to check if the picture of a stream is blank for a certain amount of time ?
[19:08] <Richter12x2> So Python is trying to open what is being reported
[19:09] <schtinky> rosieres, I tried to find out the answer to that question a few years ago... never did
[19:09] <emerica_> blank as in black?
[19:09] <schtinky> mythtv has a commercial flagging program built in that looks for blankness
[19:09] <rosieres> yes
[19:10] <rosieres> commercial sounds like closed source ;-)
[19:10] <schtinky> ha, no. Like tv commercials
[19:11] <rosieres> *LOL
[19:11] <schtinky> it's called mythcommflag
[19:11] <rosieres> hehe
[19:11] <rosieres> mhh i´ll check the source maybe i´ll get a bit more wise
[19:11] <emerica_> blackframe filter
[19:12] <rosieres> my goal was to check a stream if it´s for a certain amount of time blank and invoke some actions with python if it´s true
[19:12] <emerica_> ya I do the same
[19:12] <emerica_> hold on
[19:13] <emerica_> ffmpeg -threads 16 -i FILE -vf blackframe=99:17 -an -f null test 2>&1 |grep blackframe
[19:13] <emerica_> thats how I use it
[19:14] <emerica_> not sure if threading matters or not
[19:14] <rosieres> mhh cool . . . i´ll try that !! thanks
[19:17] <schtinky> generic ffmpeg question: when you specify an output extension (like avi or mov) without specifying an audio or video codec, how are they chosen?
[19:17] <schtinky> does each output format have its own defaults?
[19:18] <emerica_> rosieres:If you are looking for commercials you will likley have to tweak the filter settings/thresholds. I use it to find larger hunks of black , editor errors, missing content etc.
[19:18] <rosieres> no I want to look if a stream is broken and do some stuff then
[19:19] <Pimp_Rob> Hello
[19:23] <microchip_> hi
[19:45] <user> Hi, I get this error a lot: "v4l2 frame is 290 bytes, but 153600 bytes are expected" Is there are way to tell ffmpeg to ignore this error and keep recording?
[19:46] <user> the 290 value differs between runs, but the rest of the error message is the same, and always fatal
[21:09] <lake> hello all, i'm trying to chop/split an mkv file and output it to another mkv. Obviously, you use "-ss" & "-t" to chop, but it turns out that my audio and video are out of sync.
[21:09] <diegoviola> hi
[21:09] <lake> http://pastie.org/5558674
[21:09] <diegoviola> do you guys know how to fix the position of a srt subtitle, if there is a program for that on linux?
[21:11] <lake> the weird part is this... I play the chopped clip in mplayer and the audio is out of sync. but as soon as a scrub to another place in the video, the audio is magically synced up!
[21:14] <lake> diegoviola: check out srt-delay or srt-shift i guess? not sure
[21:15] <diegoviola> thanks
[21:18] <Zeeflo> can I use presets when I want to encode to webm?
[21:18] <Zeeflo> like you can with mp4
[21:21] <llogan> Zeeflo: ffmpeg does have some libvpx presets. i don't know much about them though.
[21:21] <llogan> you use -vpre instead of -preset
[21:21] <Zeeflo> ok
[21:22] <llogan> because they are text file based presets unlike libx264's presets which are internal
[21:23] <Zeeflo> is it possible to just copy audio and copy video into a webm encoding?
[21:23] <Zeeflo> from an mp4
[21:23] <llogan> probably no
[21:23] <Zeeflo> hmm
[21:23] <llogan> re-encode with libvpx and libvorbis
[21:24] <llogan> libvpx presets are in /usr/(local)/share/ffmpeg
[21:24] <Zeeflo> im using the executable stand alone
[21:24] <llogan> does it have --enable-libvpx?
[21:25] <llogan> just enter "ffmpeg" to see configure settings
[21:32] <llogan> lake: most filters, and probably including volume, are not compatible with stream copy since they often must re-encode
[21:32] <lake> llogan: okay, yes, i should have considered that. Facepalm
[21:33] <lake> i will try without that and see how we do
[21:34] <lake> llogan: which leads me to my next question... how can i reencode in the same format but retain exact quality?
[21:35] <llogan> lake: you can't, unless it's a lossless format, but those can still lead to loss.
[21:35] <microchip_> -sameq?
[21:35] <lake> microchip_: sameq is deprecated
[21:35] <lake> i tried -qscale 1
[21:35] <llogan> you can simply use a high enough bitrate or crf value (i'm talking specifically about libx264) to make it look the same to your eyes
[21:36] <llogan> microchip_: http://superuser.com/a/478550/110524
[21:36] <ubitux> https://www.ffmpeg.org/faq.html#Why-was-the-ffmpeg-_002dsameq-option-removed_003f-What-to-use-instead_003f
[21:36] <llogan> do not use sameq with libx264
[21:36] <lake> llogan: -crf 15 was used when capturing initally.
[21:36] <llogan> ...i meant "qscale", but also do not use sameq
[21:37] <ubitux> -q:v 0
[21:37] <llogan> -qp 0
[21:39] <lake> are -q:v 0 and -qp 0 both needed to ensure highest possible quality?
[21:40] <llogan> lake: -qp 0 will give you lossless output when using libx264.
[21:40] <llogan> note that most non-ffmpeg based players will not be able to properly decode h264 (High 4:2:2), yuv422p
[21:41] <llogan> (what your input is in your paste)
[21:41] <llogan> -q:v is an alias for -qscale:v (which is what plain -qscale used to be, IIRC)
[21:42] <llogan> https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide
[21:44] <lake> llogan: oookay. Thanks. qscale isn't needed then. Thanks!
[21:44] <llogan> what are you trying to do, exactly?
[21:45] <lake> i imported videos from v4l2 device and encoded them to h264/flac mkv files. The source is home videos, where there are gaps of silence/blue screen where the tape is not used and then more video.
[21:46] <lake> I wrote a script using the silencedetect filter to find silence marks and split the videos automatically, leaving out the silent gaps.
[21:46] <lake> and that's where i came in to ask my question because when i used "-v:c copy and -a:c copy", my videos were out of sync.
[21:47] <llogan> with all players?
[21:47] <llogan> that you tried
[21:47] <lake> vlc & mplayer
[21:59] <llogan> lake: since you want to use the filter, try changing -c:a copy to -c:a flac, and see if that works as expected.
[22:04] <lake> llogan: no change :(
[22:08] <lake> llogan: interesting thogh, it does change the sync.
[22:08] <lake> now the video comes befoer audio
[22:08] <lake> shall i try async 1?
[22:20] <lake> llogan: dang, vsync 1 and async 1 don't work
[22:28] <schtinky> when oh when are we going to have a standardized, patent free, one-size-fits-all video format?
[22:28] <schtinky> I've just sunk probably 100 hours over a few days into failed conversions and other bs
[22:29] <schtinky> well 100 is probably a bit of an exaggeration, but still
[22:55] <schtinky> need a little assistance:
[22:55] <schtinky> ffmpeg -i blankets2.wav -i combined.mpg -c:v copy -c:a copy combined_with_audio.mpg
[22:56] <schtinky> trying to combine video with audio. the mpg has no audio. seems like it should be simple, but I'm getting mp2 header missing errors on the output file
[22:56] <schtinky> and there's no audio
[23:06] <schtinky> http://pastebin.com/S7rMRRTW
[23:07] <schtinky> if I convert the wav to mp3 I get it to work, sort of, but the audio and video don't sync
[23:07] <schtinky> when I watch the video and listen to the wav separate, they do
[23:11] <schtinky> please help me
[23:11] <schtinky> I've been at this for soooo many hours
[23:13] <llogan> LPCM in .mpg container might be troublesome. i don't know.
[23:16] <llogan> so try a different container or re-encode the audio
[23:16] <schtinky> just tried avi... same thing. Audio is a few second fast
[23:17] <schtinky> can I introduce audio delay easily?
[23:17] <schtinky> used to be -ad I think
[23:17] <llogan> i've never experienced out of sync outputs as many people seem to report here
[23:18] <llogan> by many, i mean 2 today
[00:00] --- Fri Dec 21 2012
More information about the Ffmpeg-devel-irc
mailing list