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

burek burek021 at gmail.com
Fri Jul 22 03:05:01 EEST 2016


[00:00:48 CEST] <CFS-MP3> the windows version? While ffmpeg is running in linux, what I'm personally using is windows. Anyway you guys can take a look at the stream with any player you want
[00:01:02 CEST] <CFS-MP3> http://54.73.134.173/live/ngrp:Mosaic.stream_all/playlist.m3u8
[00:01:20 CEST] <CFS-MP3> it should be obvious to notice the problem
[00:01:30 CEST] <furq> the windows version can open that url
[00:05:33 CEST] <furq> this looks fine to me
[00:05:45 CEST] <furq> aside from the fact that nigel farage is on my screen now
[00:06:17 CEST] <CFS-MP3> furq watch for 30 seconds or so
[00:06:24 CEST] <furq> i was watching for about two minutes
[00:06:29 CEST] <furq> i didn't notice any playback issues
[00:06:33 CEST] <CFS-MP3> mpv has the same problem, but it complains a bit
[00:06:35 CEST] <CFS-MP3> V: 00:00:22 Dropped: 1 Cache:  8s+0KB
[00:06:35 CEST] <CFS-MP3> [ffmpeg] skipping 1 segments ahead, expired from playlists
[00:06:35 CEST] <CFS-MP3> V: 00:00:52 Dropped: 1 Cache:  6s+0KB
[00:06:35 CEST] <CFS-MP3> [ffmpeg] skipping 1 segments ahead, expired from playlists
[00:06:35 CEST] <CFS-MP3> V: 00:00:59 Dropped: 1 Cache:  0s+0KB
[00:06:35 CEST] <CFS-MP3> [ffmpeg] http: Stream ends prematurely at 429240, should be 5935912
[00:06:35 CEST] <CFS-MP3> V: 00:00:59 Dropped: 1 Cache:  0s+0KB
[00:06:36 CEST] <CFS-MP3> [ffmpeg/demuxer] mpegts: PES packet size mismatch
[00:06:36 CEST] <CFS-MP3> V: 00:01:09 Dropped: 1 Cache: 10s+0KB
[00:06:37 CEST] <CFS-MP3> [ffmpeg/video] h264: Invalid NAL unit 0, skipping.
[00:06:37 CEST] <CFS-MP3> [ffmpeg/video] h264: corrupted macroblock 65 26 (total_coeff=-1)
[00:06:38 CEST] <CFS-MP3> [ffmpeg/video] h264: error while decoding MB 65 26
[00:06:41 CEST] <furq> huh
[00:06:48 CEST] <furq> i didn't get any mpv messages
[00:07:13 CEST] <CFS-MP3> did you play it for a bit, like 30 seconds or so?
[00:07:20 CEST] <furq> 23:06:24 ( furq) i was watching for about two minutes
[00:07:25 CEST] <CFS-MP3> damn
[00:11:13 CEST] <furq> have you got wowza doing adaptive bitrate transcoding or something
[00:11:26 CEST] <furq> maybe that's the culprit
[00:11:43 CEST] <CFS-MP3> furq yes... I'd love to blame wowza here, but it's running the rest of the streams perfectly
[00:12:02 CEST] <furq> i take it you've got plenty of bandwidth client-side
[00:12:20 CEST] <CFS-MP3> yes, it's obscene
[00:12:34 CEST] <furq> although i'd expect a better message if mpv was dropping you to the next bitrate
[00:13:02 CEST] <kepstin> I wonder if you might be hitting issues with blocking writes to the pipes between the ffmpeg processes (raw video frames are often larger than the pipe buffer)
[00:14:33 CEST] <furq> i'll leave it idle for a while and see if mpv shows any warnings
[00:14:45 CEST] <CFS-MP3> kepstin it happened without the pipes as well ... the pipes are an attempt to split the work between several ffmpeg processes if that was the problem, that's all
[00:15:06 CEST] <CFS-MP3> I think the "expired for playlists" could be some kind of clue
[00:15:18 CEST] <thebombzen> how often is the stuttering?
[00:15:21 CEST] <CFS-MP3> This seems somewhat related: https://trac.ffmpeg.org/ticket/3483
[00:15:27 CEST] <CFS-MP3> thebombzen like every 15-20 seconds
[00:15:33 CEST] <thebombzen> okay lemme watch a bit more than
[00:15:35 CEST] <thebombzen> then*
[00:16:51 CEST] <thebombzen> CFS-MP3: I just watched it with VLC on Linux for 1 minute w/o seeing stuttering
[00:17:09 CEST] <thebombzen> I did File->Open network stream, and copy/pasted the URL
[00:17:28 CEST] <thebombzen> VLC version is 3.0.0-git, i.e. I compiled it myself from source
[00:17:46 CEST] <thebombzen> sounds like a client/network transmission error
[00:24:12 CEST] <furq> i've had it running for ~10 mins and not got any warnings from mpv
[00:24:59 CEST] <furq> also i don't think i've seen this episode of room 101
[00:36:41 CEST] <CFS-MP3> thanks for checking furq
[01:09:19 CEST] <CFS-MP3> OK the new problem is that the DAR is going to shit in the composed mosaic :-) And setdar doesn't fix it
[01:10:43 CEST] <CFS-MP3> ignore, I'm just too tired, sorry
[06:54:55 CEST] <ferdna> guys whats a recommended bitrate for a ip camera?
[06:55:06 CEST] <ferdna> i need to stream decent vp9 video
[08:18:14 CEST] <Ashish_> hi all
[08:18:26 CEST] <Ashish_> we installed ffmpeg on our centos server.
[08:18:42 CEST] <Ashish_> we forgot to configure libfreetype module with it.
[08:18:56 CEST] <Ashish_> can anyone help us to do it ?
[08:33:41 CEST] <soulshock> https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
[08:34:08 CEST] <soulshock> when running ./configure remember to include --enable-libfreetype
[08:38:23 CEST] <Ashish_> i have alreday installed ffmpeg
[08:38:45 CEST] <Ashish_> do you have any idea how to compile it on installed version ?
[08:48:18 CEST] <soulshock> no. you would have to recompile it from scratch
[08:50:59 CEST] <Ashish_> ok
[08:51:28 CEST] <Ashish_> do you have idea from where i can get source directory of libfreetype ?
[09:01:57 CEST] <soulshock> I am guessing you can install the freetype2-devel package?
[09:07:33 CEST] <Ashish_> is libfreetype and freetype are same ?
[09:07:41 CEST] <Ashish_> libfreetype and freetype are same ?
[09:20:07 CEST] <soulshock> yes
[09:20:14 CEST] <soulshock> I should think sop
[09:21:04 CEST] <Ashish_> ok
[10:13:26 CEST] <DelphiWorld> yo guys!
[10:13:32 CEST] <DelphiWorld> question guys...
[10:13:41 CEST] <DelphiWorld> when should i use H.264 base, main or high profile?
[10:13:46 CEST] <DelphiWorld> how could i chouse bethwan?
[10:39:43 CEST] <dv_> are a52 and ac-3 really the same? why are there two names?
[10:41:16 CEST] <dv_> iirc a52 is an atsc standard, and describes the use of ac-3 in atsc?
[15:44:10 CEST] <netw1z> I compiled FFMPEG from src on raspberry pi 3 but im getting relocation error: /usr/local/lib/libavfilter.so.5 when i try to run it
[15:50:20 CEST] <furq> netw1z: are you sure that's the library you compiled
[15:51:20 CEST] <netw1z> i see the file in /usr/local/lib/libavfilter.so.5
[17:09:25 CEST] <platzhirsch> FFMPEG posts progress and also outputs progress metadata in verbose mode. Where can I read about the meaning of.. time, quality, speed?
[17:16:28 CEST] <JEEB> not quality
[17:16:34 CEST] <JEEB> that is something you can't calculate
[17:17:00 CEST] <JEEB> it's most probably some sort of quantizer value that you shouldn't try to derive anything out of esp. since I'm not sure if it works with various library-based encoders nowadays
[17:17:08 CEST] <platzhirsch> what does it then mean JEEB ? You get a q value for each variant
[17:17:51 CEST] <platzhirsch> https://ffmpeg.org/pipermail/ffmpeg-user/2012-December/011978.html
[17:24:14 CEST] <JEEB> platzhirsch: as I said it's whatever the avcodec stuff has as the quantizer value
[17:24:33 CEST] <JEEB> I wouldn't base too much if anything on it, esp. if library-based stuff can be completely incorrect with it
[17:43:36 CEST] <platzhirsch> still would be nice to understand it. Probably best to write to the mailing list
[17:43:43 CEST] <platzhirsch> JEEB:
[17:45:01 CEST] <JEEB> it's the quantizer value as noted by the avcodec struct. not sure if it's the last coded sample's or average. also if audio affects it or not
[17:45:15 CEST] <JEEB> i guess you could only read the fabulous sauce
[17:45:37 CEST] <JEEB> or ask on the ml if you don't know hpw to read the sauce
[17:47:46 CEST] <platzhirsch> JEEB: but what about speed and progress/time?
[17:49:37 CEST] <JEEB> that you might get some stats out of. also i think ffmpeg can nowadays output the stats to something specific so you don't have to parse the terminal output
[17:50:25 CEST] <platzhirsch> JEEB: yeah, it's the -progress option, but still without proper documentation what each key means it's a bit blurry
[18:01:11 CEST] <Jpacker> hello, I'm mixing two audio files together Using FFmpeg and it's working perfectly. I'm modifying the audio in it and allow the user to run the mixing code again, but am getting this error on the exact same files that work the first time. Any thoughts?
[18:01:25 CEST] <Jpacker> [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf7163000] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[18:01:29 CEST] <Jpacker> [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf7163000] moov atom not found
[18:17:37 CEST] <Sashmo_> hey guys, I cant seem to get two different channel map layouts in my command, can anyone point out what I am missing? http://pastebin.com/tQSZGHLk
[18:18:44 CEST] <Sashmo_> if I run only one audio, I can choose whichever layout I need, but when adding the second one, it always uses the last audio as the maping
[18:47:31 CEST] <soulshock> Sashmo_: you are remapping the same channels twice
[18:47:39 CEST] <soulshock> with only one input file?
[18:47:44 CEST] <Sashmo_> right
[18:47:46 CEST] <xx_pk_xx> subt
[18:48:00 CEST] <Sashmo_> I want to make two outputs from the same source of 6 channels
[18:48:25 CEST] <soulshock> ah
[18:49:00 CEST] <soulshock> try -filter_complex "[0:1][0:2][0:3][0:4][0:5][0:6]amerge=inputs=6,split=2[aout1][aout2]"
[18:49:52 CEST] <Sashmo_> soulshock: hmmm ok I'll try that
[18:50:29 CEST] <soulshock> hm maybe that's a video only filter. I'm not sure
[18:50:56 CEST] <soulshock> -filter_complex "[0:1][0:2][0:3][0:4][0:5][0:6]amerge=inputs=6, asplit=2[aout1][aout2]"
[18:51:00 CEST] <soulshock> asplit being the key
[18:51:09 CEST] <Sashmo_> yeah
[18:51:11 CEST] <Sashmo_> its video only
[18:51:14 CEST] <soulshock> https://ffmpeg.org/ffmpeg-filters.html#split_002c-asplit
[18:51:38 CEST] <soulshock> "asplit works with audio input, split with video."
[18:53:35 CEST] <Sashmo_> still getting the same
[18:53:53 CEST] <Sashmo_> http://pastebin.com/7hpGRqn2
[18:55:44 CEST] <soulshock> need someone with a bit more ffmpeg knowledge than me then
[19:21:18 CEST] <Sashmo_> still nothing.... http://pastebin.com/uNAGEHqm no matter where I put the map option, its still only using one
[19:23:04 CEST] <kepstin> Sashmo_: what's ffmpeg's output with that command?
[19:23:23 CEST] <Sashmo_> http://pastebin.com/v8apDmbh
[19:23:26 CEST] <Sashmo_> kepstin: http://pastebin.com/v8apDmbh
[19:24:27 CEST] <kepstin> ok, so it's making a single output file containing one video track and 2 audio tracks right now
[19:25:08 CEST] <kepstin> what was your original goal?
[19:26:50 CEST] <Sashmo_> kepstin: yup thats right, but one audio needs to be 5.1 mapping, and the other needs to be stereo
[19:27:07 CEST] <kepstin> i guess your source has a 5.1 (6-channel) of audio, and you want the result to have two audio tracks - one 5.1, one stereo?
[19:27:19 CEST] <Sashmo_> kepstin: 6 sepearte PCM audio
[19:27:30 CEST] <kepstin> right, since it's mfx :/
[19:29:50 CEST] <Sashmo_> kepstin: it works fine normally, just mapping two different maps doesnt work, I must be missing something, I just cant figure out where it is
[19:30:28 CEST] <kepstin> how do you want to convert the input audio to stereo? just grab front left/front right or use some downmixing?
[19:32:56 CEST] <kepstin> i'm kind of confused by the fact that you're getting two stereo channels with that command, it looks like they should both be 5.1
[19:38:42 CEST] <kepstin> I suspect you probably don't want to use the '-channel_layout' option at all, but rather do all of the manipulation in filters
[19:39:13 CEST] <kepstin> have the filterchain generate two outputs, one 5.1 and one stereo (perhaps downmixed via the pan filter), then the ffmpeg audio encoders will handle the rest
[19:41:57 CEST] <kepstin> (probably makes sense to use the 'join' filter rather than 'amerge' too, so you have more control over the channel layout of the result)
[20:01:34 CEST] <t4nk299> Apologies - ffmpeg n00b here until 2 days ago - I'm streaming the video display on my pinball game to twitch but dont have the CPU do do the x264 encoding.  Can anyone recommend an appliance that could take a raw stream and reasonably run it through the codec and stream it?  I know I can build a whitebox but I was looking for a decent appliance like an Intel NUC?   I'd like 30FPS x264, with a lot of extra juice to resize windows an
[20:03:19 CEST] <Sashmo_> kepstin: hmm, you think that will fix the mapping?
[20:03:33 CEST] <Sashmo_> kepstin: I can get 2 audio outputs, just the mapping is incorrect,
[20:04:07 CEST] <kepstin> well, as it is you'll get two outputs but both will have the same number of channels in the same order
[20:04:23 CEST] <kepstin> if you want one to be 5.1 and one to be stereo, you'll have to use a filter to downmix
[20:04:49 CEST] <kepstin> (and then have two outputs in the filter graph; one with the 5.1 and one with the stereo)
[20:21:07 CEST] <shincodex> uh
[20:21:15 CEST] <shincodex> does your shit compile in 64 bit mingw
[20:28:20 CEST] <JEEB> shincodex: if you mean FFmpeg, yes. you can see how it gets built for both win32 and win64 with mingw-w64 on FATE
[20:28:27 CEST] <JEEB> http://fatebeta.ffmpeg.org/
[20:30:44 CEST] <DelphiWorld> hi friends
[20:30:49 CEST] <DelphiWorld> thank you kepstin
[20:30:56 CEST] <DelphiWorld> vaapi is working
[20:33:29 CEST] <Sashmo_> kepstin: but isnt filter complex allowing me to downmix?  I get the output that i need, so I even did it as two seperate lines like "[0:1][0:2][0:3][0:4][0:5][0:6]amerge=inputs=6[aout1]" and then another "[0:1][0:2][0:3][0:4][0:5][0:6]amerge=inputs=6[aout2]"
[20:44:17 CEST] <DelphiWorld> can't we stream a webm live? VP8 + OPUS?
[20:45:19 CEST] <kepstin> the webm (matroska) format is streamable. Not one of the best choices for live streaming, since you need a header at the start to decode it - which means having a streaming media server that remuxes for each client.
[20:45:29 CEST] <kepstin> probably better to use a segmented format or mpeg-ts.
[20:45:54 CEST] <DelphiWorld> kepstin: thanks dude
[20:46:04 CEST] <kepstin> (webm can be used with dash for livestreaming)
[20:51:58 CEST] <DelphiWorld> kepstin:  i could just push from ffmpeg to a dash remuxing server like nimble streamer
[20:54:11 CEST] <wouter__> Hi, I tried following https://trac.ffmpeg.org/wiki/HWAccelIntro to use Quick Sync to encode a video track (command: ffmpeg -i crowd_run_1080p50.y4m -c:v h264_qsv -preset:v faster out.qsv.mp4) but I get the very descriptive error message "[h264_qsv @ 0x2afc3e0] Error initializing an internal MFX session"[
[20:54:52 CEST] <DelphiWorld> wouter__: hi dude
[20:55:01 CEST] <DelphiWorld> i recomand you to forget qsv at this time, and use vaapi
[20:55:04 CEST] <DelphiWorld> i am using it
[20:55:11 CEST] <DelphiWorld> i tryed a lot but no luck with qsv
[20:55:43 CEST] <wouter__> DelphiWorld: ok Ill try that
[20:56:17 CEST] <DelphiWorld> wouter__: a lot easyer, and if you have the intel media server sdk just clean it cause it'll create a driver conflict
[20:58:43 CEST] <wouter__> DelphiWorld: I am not using the intel media server SDK, but the libva and libdrm libraries
[20:59:07 CEST] <DelphiWorld> wouter__: good for you so, and try libva ... you'll get happy like i did today
[20:59:17 CEST] <wouter__> DelphiWorld: Replacing my command with ffmpeg -i crowd_run_1080p50.y4m -c:v h264_vaapi -preset:v faster out.qsv.mp4 gives me the error Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto-inserted scaler 0'
[21:00:18 CEST] <fujisan> ello i have a question i downloaded the snapshot of ffmpeg but now i see it after extraction on the desktop as exec how do i extract the codecs now im on OS X btw
[21:00:34 CEST] <DelphiWorld> wouter__: hold on let me give my cmd:
[21:01:27 CEST] <fujisan> hoi wouter
[21:02:12 CEST] <DelphiWorld> LOL
[21:02:37 CEST] <fujisan> what's so funny
[21:02:48 CEST] <DelphiWorld> whois
[21:02:54 CEST] <fujisan> Del phi world
[21:03:11 CEST] <DelphiWorld> wouter__: see this: ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i input.mp4 -an -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi output.mp4
[21:03:11 CEST] <fujisan> wablief
[21:03:33 CEST] <wouter__> DelphiWorld: I just found that same command on the internet and it works :D thanks alot!
[21:03:36 CEST] <fujisan> i need your codecs to make my nomachine faster VP 8 is slow -_-
[21:03:39 CEST] <fujisan> H.264
[21:03:52 CEST] <DelphiWorld> wouter__: lulz, awesome!
[21:03:57 CEST] <fujisan> wouter hoi
[21:03:58 CEST] <DelphiWorld> thank to kepstin
[21:04:11 CEST] <DelphiWorld> hold on wouter__ rebooting
[21:04:32 CEST] <fujisan> (>".)> help me please someone if it's not too much trouble
[21:04:47 CEST] <fujisan> ObsidianX:
[21:07:17 CEST] <fujisan> Coderjoe: speak spicypixel for the Orphis spaceinvader s are going cuz of the flux  spaam & SpaceManiac telex and telepathically ocrete d by K1rk Fletcher into a squarecircle kanzure friki insane codehero s Coderjoe  and Chloe they also have a CounterPillow codebam fling
[21:07:58 CEST] <fujisan> creative listening music while i wait for a reply
[21:08:03 CEST] <fujisan> im good at these
[21:08:11 CEST] <fujisan> if they annoy please tell me and i 'll stop
[21:08:21 CEST] <DelphiWorld> hey guys
[21:08:23 CEST] <DelphiWorld> back
[21:08:25 CEST] <fujisan> also if you have an answer that would be cool :)
[21:08:27 CEST] <Chloe> can you not mass highlight please.
[21:08:31 CEST] <DelphiWorld> wouter__: good vappi so?
[21:08:36 CEST] <fujisan> you missed my creative listening highlight
[21:08:42 CEST] <fujisan> Chloe:  okay stopped
[21:08:50 CEST] <fujisan> thanks for the feedback
[21:09:21 CEST] <fujisan> you are a hero tho Chloe
[21:09:33 CEST] <fujisan> i really can tell since you replied the first
[21:09:39 CEST] <fujisan> =]
[21:10:07 CEST] <fujisan> i will pray for you when i have my campfire ritual tonight with my friends by the beach
[21:10:13 CEST] <fujisan> and bless your name
[21:10:24 CEST] <Chloe> fujisan: what are you trying to do?
[21:11:01 CEST] <fujisan> im trying extract or download codecs from ffmpeg to put into a dir for nomachine to use with decoding
[21:11:24 CEST] <fujisan> to save bandwidth and decrease my latency by 30%
[21:12:41 CEST] <Chloe> fujisan: dont you just need to follow these instructions? https://www.nomachine.com/DT02L00065#4
[21:13:46 CEST] <fujisan> yes my issue is with the extractions of ffmpeg i did that and then i get an exec on OS X and run it and then i dont know what to do
[21:14:12 CEST] <DelphiWorld> fujisan: ffmpeg isn't graphical interface
[21:15:01 CEST] <Chloe> fujisan: then you need to install the codec license presumably. This doesn't look like an FFmpeg issue though
[21:15:19 CEST] <fujisan> then i need to read the man page perhaps
[21:15:27 CEST] <fujisan> arent there any binary downloads?
[21:15:52 CEST] <fujisan> im a newb  at commandline stuff
[21:16:03 CEST] <DelphiWorld> fujisan: you want to convert video?
[21:17:00 CEST] <Chloe> DelphiWorld; some program they're using needs FFmpeg codecs, they just need to follow the guide for that program, it's not an FFmpeg issue.
[21:18:01 CEST] <fujisan> http://pastebin.com/iqG15vav this is my output after i run the extracted exec on OS X
[21:18:31 CEST] <DelphiWorld> Chloe: ok, got your point now
[21:18:48 CEST] <fujisan> Delphiworld it's for nomachine to make the overall experience smoother
[21:18:53 CEST] <Chloe> fujisan: contact the nomachine support
[21:19:16 CEST] <fujisan> no i dont need to all i need is to get the ffmpeg codecs
[21:19:26 CEST] <fujisan> im not a paying customer
[21:19:32 CEST] <fujisan> it's free software
[21:19:46 CEST] <DelphiWorld> Chloe: maybe not good question, but is a 720P stream taking 7% of the CPU a good value?
[21:20:12 CEST] <DelphiWorld> 7% of a core only
[21:20:23 CEST] <Chloe> fujisan: they have a forum, ask there.
[21:20:30 CEST] <Chloe> DelphiWorld: it depends
[21:20:40 CEST] <DelphiWorld> Chloe: depand on what?
[21:20:53 CEST] <Chloe> on a lot of things
[21:20:58 CEST] <DelphiWorld> source  = a 1080P and out a 720P
[21:21:39 CEST] <fujisan> i found the binaries thanks
[21:26:02 CEST] <fujisan> libavutil     libavcodec
[21:26:18 CEST] <fujisan> i need these ffmpeg files i only get the exec
[21:26:33 CEST] <DelphiWorld> ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i udp://@239.100.1.2:1234 -acodec libfdk_aac -ab 64k -ar 48k -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi -vb 8000k -s 640x360 -aspect 16:9 -f mpegts udp://@239.100.100.2:1234
[21:26:34 CEST] <fujisan> and then they are listed where are they stored?
[21:26:37 CEST] <DelphiWorld> any commant guys?
[21:29:31 CEST] <fujisan> CHloe this is an ffmpeg question tho
[21:29:38 CEST] <fujisan> i need ffmpeg files
[21:29:43 CEST] <fujisan> thats all i need now
[21:29:50 CEST] <DelphiWorld> you can compile it yourself
[21:29:53 CEST] <fujisan> not help with how to set up nomachine
[21:30:05 CEST] <DelphiWorld> ffmpeg build is static, mean that the libs are integrated in the binary
[21:30:17 CEST] <fujisan> oh okay
[21:30:24 CEST] <fujisan> thanks
[21:30:41 CEST] <DelphiWorld> so you can just take the step and compile it yourself, or maybe install brew
[21:33:40 CEST] <fujisan> okay ty and how would brew help me
[21:33:44 CEST] <fujisan> i already have brew installed
[21:34:14 CEST] <DelphiWorld> maybe brew search ffmpeg and install the required lib?
[21:34:20 CEST] <DelphiWorld> i never used brew on a mac
[21:34:26 CEST] <fujisan> oh okay ty
[21:35:37 CEST] <Chloe> fujisan: probably just: brew install ffmpeg
[21:37:12 CEST] <jpacker> Hello, i'm working on mixing two audio files together with ffmpeg and have that working correctly, but if I run the same command on the exact same files twice, it gives me this error: http://pastebin.com/AmFgSX4S
[21:37:15 CEST] <jpacker> Any thoughts?
[21:39:15 CEST] <furq> jpacker: pastebin the command line as well
[21:40:18 CEST] <DelphiWorld> see here, the -s arg is ignored,and giving me the original stream size 704x576!
[21:40:29 CEST] <DelphiWorld> ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i udp://@239.100.1.2:1234 -acodec libfdk_aac -profile:a aac_he_v2 -b:a 96k -ar 48k -vf 'format=nv12|vaapi,hwupload' -s 640x360 -r 29.97 -c:v h264_vaapi -vb 800k -aspect 16:9 -f flv rtmp://cdn.mybox.net/live/almajd03
[21:41:08 CEST] <jpacker> Hey furq here is the command i'm using a Java wrapper to run it
[21:41:09 CEST] <jpacker> http://pastebin.com/GwiCiFis
[21:42:05 CEST] <furq> "-ac -2" looks wrong
[21:42:14 CEST] <DelphiWorld> furq: me ?
[21:42:50 CEST] <furq> no?
[21:42:59 CEST] <DelphiWorld> ok
[21:43:01 CEST] <DelphiWorld> rebooting
[21:50:08 CEST] <jpacker> Furq that just sped up my processing time but am still having that issue.
[22:00:43 CEST] <DelphiWorld> so guys
[22:00:57 CEST] <DelphiWorld> why my cmdline is ignoring my -s arg?
[22:01:05 CEST] <jkqxz> DelphiWorld:  "-s" there isn't going to do anything because the data is in GPU surfaces at that point, not in normal memory where a scale instance can see it (not sure why it doesn't fail, actually).  Try adding ",scale_vaapi=640:360" to the end of your filer chain instead.
[22:02:15 CEST] <DelphiWorld> jkqxz: -scale or ,scale?
[22:03:23 CEST] <jkqxz> ",scale", as part of the filter argument ("hwupload,scale_vaapi")
[22:04:27 CEST] <DelphiWorld> jkqxz: see it now?
[22:04:27 CEST] <DelphiWorld> ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i udp://@239.100.1.2:1234 -acodec libfdk_aac -profile:a aac_he_v2 -b:a 64k -ar 48k -vf 'format=nv12|vaapi,hwupload,,scale_vaapi=640:360' -c:v h264_vaapi -vb 800k  -f mpegts udp://@239.100.100.2:1234
[22:05:15 CEST] <DelphiWorld> not working...
[22:05:23 CEST] <DelphiWorld> [AVFilterGraph @ 0x35131c0] No such filter: ''
[22:05:33 CEST] <jkqxz> You put two commas...
[22:05:45 CEST] <DelphiWorld> Lol... hahaha!
[22:06:23 CEST] <DelphiWorld> jkqxz:  this is crazy tts... misspelling the "cola"
[22:07:18 CEST] <DelphiWorld> coma... crap
[22:07:23 CEST] <DelphiWorld> jkqxz: ok, it works!
[22:07:33 CEST] <DelphiWorld> now how to specify the aspect ratio?
[22:07:42 CEST] <DelphiWorld> should the "aspect" be enough?
[22:07:57 CEST] <DelphiWorld> and the fps?
[22:11:36 CEST] <DelphiWorld> also why can't i specify a H.264 profile?
[22:11:46 CEST] <DelphiWorld> ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i udp://@239.100.1.2:1234 -acodec libfdk_aac -profile:a aac_he_v2 -b:a 64k -ar 48k -vf 'format=nv12|vaapi,hwupload,scale_vaapi=640:360' -c:v h264_vaapi -vprofile baseline -level 3.1 -vb 800k  -f mpegts udp://@239.100.100.2:1234
[22:12:05 CEST] <DelphiWorld> [h264_vaapi @ 0x2558320] [Eval @ 0x7ffcae5726b0] Undefined constant or missing '
[22:12:05 CEST] <DelphiWorld> (' in 'baseline'
[22:12:13 CEST] <DelphiWorld> [h264_vaapi @ 0x2558320] Unable to parse option value "baseline"
[22:12:22 CEST] <DelphiWorld> [h264_vaapi @ 0x2558320] Error setting option profile to value baseline.
[22:13:18 CEST] <jkqxz> -profile:v 66
[22:13:34 CEST] <DelphiWorld> LOL... what's 66?
[22:13:47 CEST] <DelphiWorld> jkqxz: now another issue... lot  of hw encoding issue
[22:13:53 CEST] <DelphiWorld> ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i udp://@239.100.1.2:1234 -acodec libfdk_aac -profile:a aac_he_v2 -b:a 64k -ar 48k -vf 'format=nv12|vaapi,hwupload,scale_vaapi=640:360' -c:v h264_vaapi -vb 800k  -f flv rtmp://cdn.mybox.net/live/almajd03
[22:13:56 CEST] <DelphiWorld> see the result here:
[22:14:08 CEST] <DelphiWorld> Input stream #0:0 frame changed from size:704x576 fmt:yuv420p to size:704x576 fmt:vaapi_vld
[22:14:25 CEST] <DelphiWorld> and it stop
[22:17:09 CEST] <DelphiWorld> -profile:v 66 fail
[22:17:11 CEST] <DelphiWorld> not found
[22:18:10 CEST] <jkqxz> Why do you want baseline profile anyway?  Nothing actually supports it.  (You probably meant constrained baseline, which is -profile:v 576.)
[22:18:21 CEST] <DelphiWorld> if i send to mcast mpegts udp it works, but if i send to rtmp i get that error.
[22:18:49 CEST] <DelphiWorld> jkqxz: why do you think the flv container is refusing my stream?
[22:19:51 CEST] <DelphiWorld> ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i udp://@239.100.1.2:1234 -acodec libfdk_aac -profile:a aac_he_v2 -b:a 64k -ar 48k -vf 'format=nv12|vaapi,hwupload,scale_vaapi=640:360' -c:v h264_vaapi -vb 800k  -f  flv rtmp://mybox.net/live/almajd03
[22:21:22 CEST] <DelphiWorld> Input stream #0:0 frame changed from size:704x576 fmt:yuv420p to size:704x576 fmt:vaapi_vld
[22:22:04 CEST] <furq> he really needs a better computer
[22:26:00 CEST] <DelphiWorld> back
[22:26:08 CEST] <DelphiWorld> jkqxz: did you got any point on that flv issue?
[22:27:14 CEST] <furq> DelphiWorld: -hwaccel_output_format yuv420p
[22:27:28 CEST] <furq> or scale_vaapi=1280:720:format=yuv420p
[22:27:50 CEST] <DelphiWorld> furq: where to put that format bro
[22:28:14 CEST] <furq> -hwaccel_output_format goes before -i
[22:28:17 CEST] <furq> the other one should be obvious
[22:31:37 CEST] <DelphiWorld> jkqxz: even 576 profile not found
[22:33:03 CEST] <DelphiWorld> furq: result:
[22:33:08 CEST] <DelphiWorld> ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i udp://@239.100.1.2:1234 -acodec libfdk_aac -profile:a aac_he_v2 -b:a 64k -ar 48k -vf 'format=nv12|vaapi,hwupload,scale_vaapi=640:360:format=yuv420p' -c:v h264_vaapi -vb 800k  -f flv rtmp://cdn.mybox.net/live/almajd03
[22:33:34 CEST] <DelphiWorld> ffmpeg: i965_gpe_utils.c:345: i965_gpe_set_surface2_state: Assertion `obj_surface->fourcc == 0x3231564E' failed. Aborted (core dumped)
[22:33:34 CEST] <furq> that looks right
[22:33:41 CEST] <furq> nice
[22:33:50 CEST] <DelphiWorld> but core dump
[22:33:51 CEST] <furq> i copied that off the libav wiki so i'm not sure how much it applies to ffmpeg
[22:34:04 CEST] <furq> try with just one or the other
[22:34:10 CEST] <DelphiWorld> i copied everything from ffmpeg
[22:34:25 CEST] <DelphiWorld> i might try the hw one
[22:34:26 CEST] <DelphiWorld> hold on
[22:34:31 CEST] <DelphiWorld> send me the second please?
[22:34:48 CEST] <jpacker> I just realized I had my call wrong furq, do you see anything wrong with this one? http://pastebin.com/h42bC8G2
[22:36:41 CEST] <DelphiWorld> furq: send me back the hwaccell one? or give me the page?
[22:36:47 CEST] <DelphiWorld> pretty less doc
[22:37:07 CEST] <furq> https://wiki.libav.org/Hardware/vaapi#Surface_Formats
[22:37:18 CEST] <furq> the second code box
[22:37:29 CEST] <DelphiWorld> ok
[22:40:58 CEST] <DelphiWorld> furq: ok got it
[22:41:24 CEST] <DelphiWorld> ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format yuv420p -i udp://@239.100.1.2:1234 -acodec libfdk_aac -profile:a aac_he_v2 -b:a 64k -ar 48k -vf 'format=nv12|vaapi,hwupload,scale_vaapi=640:360' -c:v h264_vaapi -vb 800k  -f flv rtmp://mybox.net/live/almajd03
[22:41:30 CEST] <DelphiWorld> but publishing is not working
[22:42:23 CEST] <DelphiWorld> all i get at the end is Press [q] to stop, [?] for help
[22:42:31 CEST] <DelphiWorld> and it shutdown
[22:46:18 CEST] <furq> pastebin the full output i guess
[22:46:34 CEST] <DelphiWorld> furq: no problem. how to capture the entire output please
[22:47:14 CEST] <furq> -report
[22:47:29 CEST] <DelphiWorld> -report what will do?
[22:47:39 CEST] <furq> -report
[22:47:40 CEST] <furq>     Dump full command line and console output to a file named program-YYYYMMDD-HHMMSS.log in the current directory.
[22:47:54 CEST] <DelphiWorld> haha, good idea
[22:47:54 CEST] <DelphiWorld> hold on
[22:49:22 CEST] <DelphiWorld> furq: http://paste.ubuntu.com/20358926/
[22:54:21 CEST] <furq> looks like it's still outputting vaapi_vld and not yuv420p
[22:54:42 CEST] <DelphiWorld> so what must we do...
[22:55:05 CEST] <DelphiWorld> ffmpeg -v verbose -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format yuv420p -i h.mp4 -acodec libfdk_aac -profile:a aac_he_v2 -b:a 64k -ar 48k -vf 'format=nv12|vaapi,hwupload,scale_vaapi=640:360' -c:v h264_vaapi -vb 800k  -f mp4 out.mp4
[22:55:13 CEST] <DelphiWorld> i'm trying this local files, let's see the change
[22:56:01 CEST] <DelphiWorld> using that cmdline i can see the outputed format in mp4 is yuv 420p
[22:59:00 CEST] <DelphiWorld> duno what to do...
[22:59:56 CEST] <furq> it sure would be nice if this was documented somewhere
[23:00:06 CEST] <DelphiWorld> yep
[23:00:12 CEST] <DelphiWorld> but when i get it i'll write a doc
[23:04:56 CEST] <DelphiWorld> back
[23:06:17 CEST] <DelphiWorld> furq: fyi, if i output to a mpeg2ts i wont get that issue
[23:07:22 CEST] <jkqxz> The way a hwaccel works is that it first initialises as if using the software decoder (so yuv420p output), then initialises the hwaccel which changes to its own output format.  That gives you the "Input stream ... changed ..."  message, though really it didn't actually change because there were no frames of the first form.
[23:08:37 CEST] <jkqxz> And is also the reason for the strange 'format=nv12|vaapi,hwupload' setup, because the filter graph gets that same initialisation.
[23:08:47 CEST] <furq> http://vpaste.net/6FLYC
[23:08:52 CEST] <furq> that's the bit i assume is to blame
[23:09:04 CEST] <furq> but if it works with other output formats then i have no idea
[23:10:13 CEST] <DelphiWorld> furq, jkqxz: so what's your suggestions guys
[23:10:32 CEST] <DelphiWorld> i am fetching from mcast, encoding then pushing to rtmp but no *LUCK*
[00:00:00 CEST] --- Fri Jul 22 2016


More information about the Ffmpeg-devel-irc mailing list