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

burek burek021 at gmail.com
Sun Aug 16 02:05:01 CEST 2015

[09:19:25 CEST] <Fyr> JEEB, you are a little liar, ffmpeg can't output h265 to mkv.
[09:24:26 CEST] <c_14> Eh, sure it can?
[09:26:51 CEST] <Fyr> [NULL @ 0000000002f7f100] Requested output format 'mkv' is not a suitable output format 1.mkv: Invalid argument
[09:26:51 CEST] <Fyr> ffmpeg version N-72849-g4af9eb4 Copyright (c) 2000-2015 the FFmpeg developers
[09:26:52 CEST] <Fyr> built with gcc 4.9.2 (GCC)
[09:28:07 CEST] <c_14> the output format is called matroska
[09:28:09 CEST] <c_14> not mkv
[09:28:17 CEST] <c_14> So, -f matroska
[09:28:50 CEST] <Fyr> ok
[09:28:54 CEST] <c_14> mkv being the file extension for matroska video
[09:31:07 CEST] <Fyr> I've always omitted that parameter. =)
[09:59:19 CEST] <Fyr> when a WMV is 50 fps, is it truly 25 fps but interlaced?
[10:40:51 CEST] <JEEB> Fyr: although your question was about it being "specified" for something, not whether or not ffmpeg could write it or not. which it most definitely is http://lists.matroska.org/pipermail/matroska-devel/2013-September/004567.html
[11:22:33 CEST] <Fyr> how to find out if a video is interlaced?
[11:38:08 CEST] <techtopia> open it with mediainfo
[11:38:28 CEST] <techtopia> view > text
[11:38:42 CEST] <techtopia> fine this line
[11:38:45 CEST] <techtopia> Scan type                                : Progressive
[11:39:11 CEST] <techtopia> if it's interlaced it won't say progressive, if it isnt it will say progressive
[11:44:27 CEST] <JEEB> ffprobe with -show_frames will output the coding modes for (unfortunately all) frames with the interlaced_frame parameter. and of course if your video is encoded progressive but contains interlaced content there's really no way to know that
[11:53:12 CEST] <Fyr> mediainfo says that it's progressive. =(
[11:53:37 CEST] <Fyr> but I see tearing indicating interlacing.
[11:54:13 CEST] <Fyr> that's why I doubted my own eyes. =(
[11:56:46 CEST] <JEEB> mediainfo isn't always correct but it can be useful, so I will take a wild guess and note that the file is of the type where it's interlaced but nobody cared while making it
[11:57:10 CEST] <JEEB> you can force vf yadif while re-encoding it and see if it helps any
[12:10:05 CEST] <DHE> At the end of the day, your eyes are the only 100% accurate method if the video producer screwed up
[16:24:51 CEST] <Fyr> does NVENC produce comfortable quality?
[16:50:26 CEST] <BtbN> comfortable?
[16:50:32 CEST] <Fyr> right
[17:43:29 CEST] <jim_> Hi., I have an issue with  avcodec_open2() function which returns an error for some values of framerate and works fine for some. I am using CODEC_ID_MPEG1VIDEO.
[17:44:05 CEST] <jim_> mCodecContext->time_base =AVRational{1,m_frameRate}; This is how I set time base. it works fine for m_frameRate=30 but gives an error for 31 for example
[17:44:13 CEST] <jim_> please help.
[18:56:07 CEST] <jim_> http://pastebin.com/jSysGtj7
[18:56:20 CEST] <jim_> Hi I have an issue with avcodec_open2()
[18:56:56 CEST] <jim_> Please see the attached code. It works fine for  AVRational{1,30} but gives an error for AVRational{1,31}
[18:57:00 CEST] <jim_> Any ides?
[18:57:02 CEST] <jim_> idea?
[19:22:45 CEST] <klaxa> i have no idea how to use the api, but what error do you get?
[19:23:44 CEST] <klaxa> jim_: ^
[19:26:09 CEST] <jim_> the error code returned is -1
[19:26:21 CEST] <jim_> av_strerror() doesnt help wither
[19:41:05 CEST] <klaxa> hmm... maybe run it in a debugger and trace where in libavcodec/utils.c it fails
[19:44:21 CEST] <klaxa> the only constant -1 return value i can spot is when avcodec_open2() calls ff_lock_avcodec(), but dunno
[21:25:15 CEST] <Mavrik> jim_, that's just not a valid timebase
[21:25:23 CEST] <Mavrik> You seem to be asking the wrong question.
[21:32:48 CEST] <pauled> Hi, any idea how I can play the video during transcoding a stream? I mean can I transcode and play the file on the fly?
[21:33:40 CEST] <pauled> Using livestreamer and ffmpeg, but I didn't find how I can play during transcoding
[21:33:42 CEST] <BtbN> use a streamable output format and play it right away?
[21:33:58 CEST] <pauled> example livestreamer twitch.tv/%channelname% high -O | %ffmpeg% -re -i - -c:v copy -c:a copy -bsf:a aac_adtstoasc -flags -global_header %channelname%%arg2%-%ldt%.mp4
[21:34:24 CEST] <BtbN> you can't play mp4 before the file is finalized.
[21:34:32 CEST] <BtbN> Use a better container, like mpeg-ts or mkv.
[21:34:44 CEST] <pauled> ah I see.
[21:35:30 CEST] <pauled> the stream is piped to ffmpeg, do you see how I can pipe the stream to a player in same time transcode?
[21:35:40 CEST] <BtbN> just play the output file
[21:36:30 CEST] <BtbN> Or simply open the stream twice?
[21:36:43 CEST] <pauled> bandwidth issue
[21:37:06 CEST] <BtbN> Then re-stream it localy?
[21:37:15 CEST] <zyme_> I was double checking my nickname since i auto configured identifying myself, lol.
[21:37:20 CEST] <BtbN> I'd be surprised if livestreamer can't just do that anyway.
[21:38:20 CEST] <pauled> it can play with a player but not both in the same time or I didn't find how
[21:38:57 CEST] <pauled> I wrote an issue about my goal in github/livestreamer: https://github.com/chrippa/livestreamer/issues/1036
[21:39:32 CEST] <BtbN> found within 5 seconds of googling that livestreamer can just act as http server.
[21:39:51 CEST] <zyme_> I kept hearing beeps because I normally use the name Jim_ on most irc nets since 1995, clients not distinguishing vacations of being mentioned when my "name" is it today on a different server lol.
[21:41:15 CEST] <zyme_> I guess even my second-choice nick was taken if i registered it with an _ at the end.
[21:41:48 CEST] <BtbN> pauled, if you realy can't find it: --player-external-http
[21:42:24 CEST] <pauled> yup, I am seeking in doc what you meant
[21:42:36 CEST] <BtbN> Just run livestreamer with that option
[21:44:00 CEST] <pauled> but I don't understand the workflow
[21:44:37 CEST] <pauled> after I restream, what I have to do to transcode the file
[21:44:56 CEST] <pauled> I use livestreamer twice?
[21:44:57 CEST] <BtbN> ffmpeg understands a http url as input
[21:45:04 CEST] <BtbN> and so does every video player.
[21:45:19 CEST] <pauled> ah I see
[21:45:26 CEST] <pauled> I will try thanks
[22:06:42 CEST] <pauled> trying the following, it doesn't transcode
[22:06:44 CEST] <pauled> start "Start VLC" cmd "/c Timeout /t 10 && %ffmpeg% -re -i http://localhost:55191/ -c:v copy -c:a copy -bsf:a aac_adtstoasc -flags -global_header %channelname%-%ldt%.mp4"
[22:06:44 CEST] <pauled> livestreamer --player-external-http-port 55191 twitch.tv/%channelname% high
[22:07:47 CEST] <BtbN> No idea about windows-shells
[22:08:17 CEST] <BtbN> You propably also have to specify --player-external-http
[22:08:22 CEST] <BtbN> not just the port
[22:08:59 CEST] <pauled> ah you think i have to specify both
[22:10:08 CEST] <pauled> ah you right
[22:10:15 CEST] <pauled> thanks :)
[22:10:30 CEST] <BtbN> And you might want to use source
[22:10:37 CEST] <BtbN> high is not the best one
[22:10:58 CEST] <pauled> yes, but it's enough for my need
[22:11:05 CEST] <pauled> I have a small screen
[22:11:07 CEST] <pauled> :)
[22:17:02 CEST] <pauled> I can't get both vlc playing localhost and ffmpeg transcoding
[22:33:15 CEST] <pauled> I can't get 2 client on the same re-stream
[22:38:37 CEST] <FredrikL> Hello all
[22:40:21 CEST] <FredrikL> I have a question about CLI usage, specifically regarding setting metadata for the different streams in an MP4 container.
[22:40:40 CEST] <eres`loco> hey guys
[22:40:53 CEST] <eres`loco> is there a ffserver built in windows?
[22:41:40 CEST] <FredrikL> I was using -metadata:s:a:0 title="Stereo" to try to add a title to the first audio track, but it doesn't get added. -metadata title="name of movie" works though.
[22:41:51 CEST] <FredrikL> Hello eres`loco
[22:45:31 CEST] <eres`loco> o/
[22:48:25 CEST] <FredrikL> \o
[22:48:52 CEST] <FredrikL> Sorry I can't help you... all I know is that the distibution I use on Windows doesn't ship with an ffserver
[22:52:00 CEST] <eres`loco> all i read is which windows doen't support ffserver, but i came here with hope
[22:52:25 CEST] <FredrikL> Hope is not over :) I'm a n00b when it come sto ffmpeg
[22:53:26 CEST] <eres`loco> well what do you need
[22:53:30 CEST] <eres`loco> im noob too
[22:54:17 CEST] <FredrikL> I posted a question about adding metadata title to for example audio or subtitle streams of an mp4 container. I can only get ffmpeg to add title to the main container, not to the different sub streams
[22:54:38 CEST] <eres`loco> soz i cant help you
[22:55:02 CEST] <FredrikL> .... even tho there are information on how to do that... for example -metadata:s:a0 title="title" to add title metadata to first audio stream.
[22:55:11 CEST] <FredrikL> Just doesn't take.
[22:55:14 CEST] <FredrikL> :)
[22:55:28 CEST] <FredrikL> Well... hopefully someone who can will wake up soon when they see our spam :)
[22:55:52 CEST] <eres`loco> ahah is not a spam
[22:55:56 CEST] <eres`loco> dude
[22:56:09 CEST] <FredrikL> and that should be -metadata:s:a:0...
[22:56:18 CEST] <eres`loco> did you search?
[22:56:23 CEST] <eres`loco> well?
[22:57:00 CEST] <FredrikL> Yeah, I did... I found the info about how to add to substreams... but it just doesn't work.
[22:58:06 CEST] <pauled> do you use the last build?
[22:58:26 CEST] <FredrikL> ffmpeg-20150722-git-0671dc5-win64-static
[22:58:33 CEST] <FredrikL> Updated like a week ago
[22:58:43 CEST] <pauled> I see
[22:58:43 CEST] <eres`loco> for each substream you should have a parameter where you put the metadata
[22:59:44 CEST] <FredrikL> yeah eres for example :s:a:0 to address the first audio stream. :s tells metadata to work on streams ... 'a:0' points it to first audiostream.
[23:02:52 CEST] <FredrikL> Sooo... pauled... I checked any I see there is a newer version out... you think it might work with that version ?
[23:04:08 CEST] <eres`loco> dude
[23:04:21 CEST] <FredrikL> yes ... dude ?
[23:04:50 CEST] <pauled> sorry FredrikL I got conflict with shortcuts in Hexchat that close it
[23:05:41 CEST] <eres`loco> ffmpeg -f dshow -i video="Integrated Camera":audio="Microphone name here" out.mp4
[23:05:46 CEST] <eres`loco> dide you see this command?
[23:06:05 CEST] <eres`loco> video=:audio= may be it is the case
[23:06:11 CEST] <eres`loco> maybe*
[23:06:58 CEST] <eres`loco> a:0="":a:1="" maybe this?
[23:07:01 CEST] <eres`loco> search for it
[23:07:31 CEST] <pauled> about updated version, it was just a thought. I don't really know how to solve your issue
[23:08:36 CEST] Action: FredrikL nods, "Okie...I'll wait for some one else to wake then :) Thanks for suggesting it tho... upgrades to latest versions are almost allways good :)"
[23:10:24 CEST] <pauled> eres loco: ffserver doesn't seems maintained? some suggest to use VLC
[23:11:34 CEST] <pauled> https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=1448
[23:12:49 CEST] <eres`loco> is vlc a server?
[23:13:05 CEST] <pauled> yes
[23:13:23 CEST] <eres`loco> well i'm downloading icecast
[23:14:08 CEST] <pauled> http://www.videolan.org/projects/
[23:16:18 CEST] <eres`loco> arigato ma friend
[23:16:34 CEST] <eres`loco> i will take a look
[23:17:03 CEST] <pauled> http://www.videolan.org/streaming-features.html
[23:20:11 CEST] <eres`loco> thanks man
[23:20:53 CEST] <pauled> if you google "videolan vls" you will get this http://www.videolan.org/vlc/streaming.html
[23:23:06 CEST] <pauled> "Most of the VLS functionality can now be found VLC. Usage of VLC instead of VLS is advised."
[23:26:21 CEST] <pauled> FredrikL: have you saw this http://wiki.multimedia.cx/index.php?title=FFmpeg_Metadata
[23:28:44 CEST] <FredrikL> Yes, I have seen that and I did notice that AAC and mov_text (which are the codecs I use) are not mentioned... but I figured metadata has more to do with the container format than the stream codec.
[23:30:07 CEST] <FredrikL> I'm format shifting files to MP4 container containing AVC video, AAC Audio and mov_text subtitles... in this age of streaming to all our devices... mp4+avc+aac+mov_text seems the best choise
[23:33:05 CEST] <pauled> Usually I download 'mkv' movie, but I convert it to mp4 to be able to play in SmartTV
[23:34:05 CEST] <FredrikL> Ohh... these are not downloaded... format shifting my old DVDs that I did extract to MKV before I started using streaming
[23:34:34 CEST] <pauled> converting mkv to mp4 take 30sec
[23:35:39 CEST] <FredrikL> It's pretty quick. I do 1 dvd in like 8 minute coz I transcode an extra stereo stream per 5.1 stream since my Andrioid device doesn't support 5.1
[23:37:01 CEST] <pauled> here is a sample of the command I use: %ffmpeg% -i %1 -c:v %videocodec% -c:a %audiocodec% %1.to.mp4
[23:37:31 CEST] <pauled> videocodec = copy - audiocodec = copy
[23:37:44 CEST] <FredrikL> Mine is a bit more complicated :)
[23:38:36 CEST] <pauled> yeah I see. Have you tried a gui?
[23:38:53 CEST] <pauled> like handbrake
[23:39:32 CEST] <FredrikL> All that works fine, my problem is to add metadata to for example the audio streams like add the title "Surround 5.1" or "Stereo 2.0"
[23:40:34 CEST] <FredrikL> yeah, too slow... I've written a script that extracts info with ffprobe and then picks the streams I want in the order I want and put them together
[23:44:03 CEST] <pauled> in handbrake you can batch and endit the track name
[23:44:48 CEST] <FredrikL> yeah but it takes time... if you formatshift 300 dvds... let me just say it adds up
[23:45:31 CEST] <pauled> or maybe avidemux
[00:00:00 CEST] --- Sun Aug 16 2015

More information about the Ffmpeg-devel-irc mailing list