[Ffmpeg-devel-irc] ffmpeg.log.20130822
burek
burek021 at gmail.com
Fri Aug 23 02:05:01 CEST 2013
[00:22] <jangle_> I"m attempting to make my own h264 encoded video, and ship it out over rtsp using live555. I'm having problems, and I'm at the point where I believe that I need to make sure I'm using the h264 encoder correctly, so I want to take the encoded data and put it in a matroska file. Since I'm generating the source video myself, I can't use a cli transform or capture program to make the mkv, I need to make it programmatically. Does the ffmpeg project
[00:22] <jangle_> provide this capability, or am I confused?
[00:23] <sacarasc> IYou should be able to do that, but I don't know how, personally.
[00:24] <sacarasc> And make sure you're using the libx264 encoder, as the h264 codec in ffmpeg is just a decoder.
[00:31] <jangle_> thanks. I am using x264
[00:31] <jangle_> I am modifying a program that currently works, that encodes using xvid
[00:32] <jangle_> but when I put h264 data in the same place, I can crash vlc :-)
[00:32] <jangle_> things happen that shouldn't, and the live555 folks think the already working program is faulty, so I need to confirm the functionality at every step, at least for my own sanity
[00:41] <cbreak> jangle_: libavformat
[00:42] <cbreak> works together with libavcodec if you wan
[00:44] <jangle_> I crash in libavcodec when using vlc, so I've been trying to link vlc with a dev build of libavcoded so I can debug with gdb, but thats proving to be harder for me than I thought it would
[00:45] <jangle_> does that sound sane?
[01:13] <jangle_> http://pastebin.com/ePAEb6WV
[01:14] <jangle_> need some illumination. I am setting up my x264 encoder to operate on rgb data. but apparently, my encoder isn't emmitting this specification, so I've explicitly specified to ffmpeg what the pixel format is, and I am presented with the pasted error
[01:16] <jangle_> I'm pretty sure I've even linked ffmpeg against the same libx264 binary that I'm using for encoding&.
[01:25] <durandal_1707> jangle_: use libx264rgb encoder to encode rgb data as rgb data and not yuv444p
[01:26] <durandal_1707> encoder was split because it caused other users to encoder rgb while in fact they wanted yuv
[01:27] <durandal_1707> so current inconsistency is because of inifinite human stupidity
[01:27] <jangle_> I'm not sure I understand you. in my encoder setup, I specify the input pixel format to be rgb?
[01:27] <jangle_> you're saying there's a fork of libx264 that I should use for this purpose instead?
[01:29] <klaxa> i don't think it's a fork
[01:31] <jangle_> so i would look for this in the ffmpeg project?
[01:45] <durandal_1707> jangle_: there are 2 encoders
[01:46] <durandal_1707> libx264 accepts only yuv and libx264rgb accepts only rgb
[01:46] <durandal_1707> is it now more clear?
[01:51] <danharibo> hi
[01:51] <danharibo> is it possible to use ffmpeg to stream (with as little CPU utilization as possible) to a different machine running ffmpeg which is streaming to some online service?
[02:21] <axorb> RTMP, but VLC might be better at that
[02:26] <jangle_> durandal_1707: no, but I figured out that I specify to ffmpeg to use a different encoder (-vcodec libx264rgb), which abstracts the use of libx264 to accept rgb input, not that I had to add a different block of library code to the build of ffmpeg I was using
[02:26] <jangle_> durandal_1707: and while I don't get an error about being unable to determine the input color format, my output file is still black
[02:30] <jangle_> is there an easy way to specify that no transcoding should be done, that ffmpeg should just stuff the input into the specified container file without modification?
[02:32] <klaxa> jangle_: -c:v copy or with the legacy argument -vcodec copy
[02:32] <klaxa> using -c:v is recommended though afaik
[02:34] <jangle_> thanks, so
[02:34] <jangle_> that looks like, -i infile -pix_fmt rgb24, -vcodec -c:v libx264rgb?
[02:37] <jangle_> or rather -c:v libx264rgb instead of -vcodec
[02:37] <jangle_> so instead of a black screen I get a green one now
[02:37] <jangle_> and the file encoder format according to vlc is still wrong, but at least it is different than what it used to be
[02:38] <jangle_> ahhh.....
[02:39] <jangle_> avcodec in vlc is complaining of an invalid avcodec, gbrp,
[02:39] <jangle_> ffmpeg sees that as the input codec pixel format...
[02:40] <jangle_> thank you all, this has been illuminating
[03:07] <durandal_1707> jangle_: if you see black or green in your player that means your play does not support such profile
[03:07] <durandal_1707> *player
[03:07] <jangle_> ok
[03:07] <jangle_> thanks, tahts good to know
[03:09] <durandal_1707> if vlc crash that means vlc is buggy, perhaps you use very old version
[03:10] <jangle_> I'm using git trunk, and have reported the crash, which lands in avcoded
[03:10] <durandal_1707> and if you want to support many players than you should only use yuv420p format with h264
[03:10] <durandal_1707> git trunk of vlc?
[03:11] <jangle_> I"ve been trying to debug my encoder using this crash, thinking they were related
[03:11] <jangle_> thanks. I was hoping to do a drop-in replacement and see if avoiding the colorspace conversion would clear up a problem I was having
[03:11] <jangle_> yes
[03:11] <jangle_> git trunk of vlc.
[03:12] <jangle_> that was two weeks ago, so I haven't tried it lately, and I know what setting causes the crash so I stopped using it
[03:12] <jangle_> its related to the use of cabac, which I don't yet fully understand, but
[03:12] <durandal_1707> could see if output was correct by playing it with mplayer/ffplay
[03:13] <durandal_1707> but perhaps you mean you modified x264 encoder?
[03:14] <durandal_1707> did you reported crash on vlc bug tracker?
[03:15] <durandal_1707> note i consider crash as serious bugs, so that's why i need clarification it does not happen with ffmpeg itself
[03:17] <jangle_> I reported the crash on the vlc bugtracker
[03:17] <jangle_> I haven't modified the x264 library, just trying to use it
[03:18] <jangle_> so
[03:18] <jangle_> try it with ffplay or mplayer?
[03:19] <jangle_> there is a closed bug of mine I submitted, where it crashes when you play a file I made
[03:19] <jangle_> you can try playing that file yourself
[03:19] <jangle_> that bug was closed because vlc thinks they've fixed it for 2.1.0-pre, but I'm getting trunk now and I'm going to try it again.
[03:29] <jangle_> I still get the crash, unless I"m not updating correctly, or i'm misunderstanding the reason they closed the bug, that it "will be fixed when a feature targeted for 2.1.0 is complete"
[03:33] <jangle_> ok, I'm fetching ffplay
[03:45] <durandal_1707> jangle_: you have link to file/bug?
[03:46] <jangle_> sure one moment
[03:46] <jangle_> https://trac.videolan.org/vlc/ticket/9123
[03:47] <jangle_> and the other 2 bug reports I filed are about the same problem, and have crash dumps in instances I was reading from a stream instead of a file
[04:04] <jangle_> how do I build ffplay?
[05:29] <jangle_> the suspect file plays in ffplay
[05:29] <jangle_> and correctly too, or mostly
[05:32] <jangle_> cant play my newer files yet though
[10:46] <shurnor> why if i --disable-shared and --enable-config, 'file ffmpeg' keeps telling that is 'dynamically linked (uses shared libs)' ?
[10:46] <shurnor> why if i --disable-shared and --enable-*static...
[10:48] <shurnor> maybe are missing some --extra-libs and/or --extra-cflags, according to http://sopues.blogspot.com.es/2007/02/how-to-compile-ffmpeg-statically.html
[11:07] <Mavrik> shurnor, what does ldd say?
[11:12] <ealdeguer> hi everyone
[11:12] <ealdeguer> My goal is to split a XDCAM or a H264 video, frame-accurately, with ffmpeg. I guess that the problem comes from its long GOP structure, but I'm looking for a way to split the video without re-encoding it. I apply an offset to encode only a specific section of the video (let say from the 10th second to the end of the media) Any ideas ?
[11:22] <shurnor> i love you
[11:24] <shurnor> says not a dynamic executable (but is targeted to arm built from x86_64)
[11:25] <shurnor> am making now a try in 5 minutes with the x86_64 targeted build
[11:45] <Mavrik> ealdeguer, well, you will have to split the video on IDR frames, there's no way around it if you don't want to reencode
[11:52] <xlinkz0> how do i change the timebase?
[11:56] <ealdeguer> Mavrik, thank you it makes sense. I saw on google a tutorial with a YUV reencoding, what is your feeling about that choice ?
[11:57] <Mavrik> I don't know what exactly is your use case or your goals
[12:11] <xlinkz0> JEEB: do you know by any chance how to modify the time_base ?
[12:32] <shurnor> am almost done preparing both static and shared versions for a ldd...
[12:37] <shurnor> http://ideone.com/3Ch8aX
[12:37] <shurnor> so my answer would be 'static compile yields yet a dynamic binary'?
[12:42] <shurnor> (but dependant on seven shared objects instedof fourteen)
[13:20] <xlinkz0> could someone please explain how to use the -time_base option?
[13:21] <xlinkz0> wherever i put it i get errors
[13:21] <xlinkz0> i tried putting it between the input and output file, i get
[13:21] <xlinkz0> Codec AVOption time_base () specified for output file #0 (1.mp4) is not an encoding option.
[13:21] <xlinkz0> before the input file doesn't work either, idk what to do
[13:32] <inqb> hello
[14:14] <shurnor> i finally got the 100% static binaries appending -static to extra c cxx and ld flags
[14:16] <shurnor> but i dont really know in which of both c cxx and/or ld extra flags is that mandatory ·_·
[15:42] <mkozjak> hmm
[15:43] <mkozjak> been thinking how to use https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20vides to create a video with multichannel output video, but i don't know where to place amerge
[15:43] <mkozjak> can someone help to get me started?
[15:44] <CentRookie> multi channel or multi stream audio?
[15:45] <mkozjak> multistream audio :)
[15:46] <mkozjak> so i need a clip with one video stream and 4 stream audio, let's say
[15:46] <mkozjak> i'll give it 4 different videos, each of them having one audio and one video stream
[15:48] <CentRookie> i see
[15:48] <CentRookie> and you want to go with mkv?
[15:49] <CentRookie> does your original source have only 1 stream?
[15:49] <mkozjak> i could go with mp4 video container, and aac, mp3, or ac3 audio codec
[15:50] <mkozjak> CentRookie: my source has two streams, one for audio and one for video
[15:50] <mkozjak> possibly it'll have one for subtitles, but i can ignore that
[15:50] <CentRookie> no i meant audio stream
[15:50] <CentRookie> if the original has already 4 audio streams
[15:50] <CentRookie> you can simply copy stream it
[15:50] <CentRookie> dont have to reencode
[15:51] <CentRookie> if you have 4 files with each 1 audio stream, then its probably best to extract the 4 audio streams first
[15:51] <mkozjak> yeah, the latter
[15:51] <mkozjak> 4 files with each 1 audio stream
[15:51] <CentRookie> as audio1.m4a audio2.m4a
[15:51] <CentRookie> yeah
[15:51] <CentRookie> good
[15:51] <CentRookie> you use map
[15:53] <mkozjak> ok
[15:54] <CentRookie> ffmpeg -i video.avi -i video1audiosource.avi -i video2audiosource.avi -i video3audiosource.avi -i video3audiosource.avi -i video4audiosource.avi -map 0:0 -map 1:1 -map 2:1 -map 3:1 -map 4:1 -"now come the video codec, bitrate, audio codec, bitrate parameters" finaloutput.mp4
[15:55] <CentRookie> map options work like this "-map fileID:streamID"
[15:56] <CentRookie> where 0:0 is like : "Take the first file ( id=0 ) and first stream (video stream id=0)
[15:56] <CentRookie> so it is taking the video steam of the first -i inputfile.avi
[15:57] <CentRookie> after that it takes the audio streams (id :1)
[15:57] <CentRookie> of file 0, 1,2,3
[16:00] <mkozjak> video.avi and video1audiosource.avi are files of similar properties? or video1audiosource.avi only having an audio source?
[16:01] <CentRookie> it doenst matter if one of those has multiple streams
[16:01] <CentRookie> you can select the file with -map fileID and the stream with -map fileID:streamID
[16:01] <mkozjak> ok, thank you, i will go try it now :)
[16:02] <CentRookie> IDs are numbered from 0 to n-1
[16:02] <CentRookie> so 0 for first, 3 for forth file
[16:03] <mkozjak> ok
[16:06] <CentRookie> oh you can add different audio properties like aac and mp3 streams too, but just try it with one audio first
[16:08] <mkozjak> CentRookie: can i use '-map' after -filter_complex ?
[16:08] <mkozjak> oh, yes, seems like i can
[16:10] <mkozjak> now it would be nice to name that audio channels so they have same pids all the time
[16:15] <inqb> hello
[16:15] <inqb> can someone help me with libavformat?
[16:16] <inqb> i'm trying to do some demuxing/muxing without transcoding
[16:17] <CentRookie> what do you want to do
[16:18] <inqb> i'm trying to demux h264 video stream from big_buck_bunny_480p_h264.mov
[16:18] <inqb> and then mux it into some other format (like avi)
[16:18] <CentRookie> what did you try until now
[16:19] <inqb> getting stream frames with av_read_frame
[16:19] <inqb> and then writing them with av_interleaved_write_frame
[16:19] <CentRookie> dont you just want to change container?
[16:20] <inqb> yes, i do
[16:20] <CentRookie> from mov to .avi?
[16:20] <inqb> yup
[16:20] <CentRookie> then just do ffmpeg -i bunny.mov -c:v copy -c:a copy bunny.avi
[16:21] <inqb> i need to do this in C
[16:21] <inqb> this is just a first step of POC of bigger project
[16:23] <CentRookie> in C? you want to write a program huh
[16:23] <CentRookie> well thats the command line
[16:23] <CentRookie> you just need to pass that as string to ffmpeg
[16:26] <inqb> ok, my goal is to perform live-stream transcoding with NVENC
[16:26] <inqb> using FFMPEG as demuxer/muxer
[16:30] <inqb> i've managed to demux mpeg4 stream from an avi file and then mux it into new avi container
[16:31] <inqb> so this would indicate that the code is good so far
[16:32] <inqb> what's special about h264/mov stream/container combination, that the stream can't be just copied to another container?
[16:33] <CentRookie> nothing is special
[16:33] <CentRookie> you can put h264 stream into any container
[16:33] <inqb> the mov file contains tmcd stream, but pts/dts values of h264 looks fine
[16:33] <CentRookie> the question is if it is supported by the devices that should read it
[16:34] <CentRookie> are you using jwplayer or something to read the stream?
[16:35] <inqb> vlc
[16:35] <inqb> and when i put the stream to an avi container it says the file lenght is 39min
[16:35] <inqb> when i put it into mp4 it says 1:14
[16:35] <mkozjak> is there a compiled ffmpeg 2.x for ubuntu precise?
[16:37] <inqb> ffmpeg version git-2013-08-22-3819db7 Copyright (c) 2000-2013 the FFmpeg developers
[16:38] <inqb> mkozjak: you can compile it yourself: http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[16:38] <mkozjak> getting libx264.c:562: undefined reference to `x264_encoder_open_135'
[16:38] <mkozjak> so that's why i'm asking :D
[16:38] <mkozjak> i have x264 built and installed
[16:39] <inqb> i've followed the instruction today and it worked...
[16:39] <inqb> how did you install x264?
[16:39] <mkozjak> inqb: from here: https://gist.github.com/faleev/3435377
[16:40] <mkozjak> inqb: probably LD_LIBRARY_PATH is not correct or something
[16:40] <mkozjak> i had to link /usr/lib/x86_64-linux-gnu/libx264.so.120 to /usr/lib/libx264.so for ffmpeg to configure correctly
[18:18] <Guest21326> why do I see a blue icon called ffdshow in taskbar when converting/editing a video?
[18:18] <durandal_1707> maybe because you installed ffdshow
[18:50] <jtriley> anyone know if there's a guide on transcoding for adobe fms 3.5 with ffmpeg? cant seem to find any details but cloudfront rtmp streaming of ffmpeg transcoded mp4s seems to have huge audio sync issues
[18:50] <jtriley> progressive download of same ffmpeg transcoded mp4s works fine..
[21:16] <shurnor> -static only seemed to be mandatory in --extra-ldflags
[21:37] <Case> FFmpeg fails to decode Vorbis file posted here: http://www.hydrogenaudio.org/forums/index.php?showtopic=102350&hl=
[21:37] <Case> the file has nonsensical granulepos info but even after those are fixed by stream rewrite decoding fails
[21:51] <viric> how can I add a silent audio track to a file?
[21:52] <viric> (for concat purposes)
[21:52] <viric> I've a v+a file, then v only, then v+a again.
[21:52] <durandal_1707> by encoding silence
[21:53] <zap0> with the right params you should be able to use /dev/zero as a src.
[21:53] <viric> -f lavfi -i aevalsrc=0 can do it, I saw in stackoverflow
[21:56] <viric> auhm What is:
[21:56] <viric> [Parsed_overlay_4 @ 0x97fd880] Buffer queue overflow, dropping.
[21:56] <viric> ?
[21:56] <viric> (I'm reencoding a video from a file)
[21:57] <durandal_1707> overlay filter tropped some frame because sources have different pts
[21:58] <durandal_1707> *dropped
[21:58] <viric> pts?
[21:58] <durandal_1707> filter use pts to sync both inputs
[21:58] <durandal_1707> packet timestamp
[21:59] <viric> ah.
[21:59] <viric> mh right
[22:00] <durandal_1707> so if that is not wanted, use setpts filter....
[22:01] <viric> I'll read about it
[22:01] <viric> I don't know much what is that of pts :)
[22:03] <viric> setpts to what streams?
[22:03] <viric> I've multiple '-i'
[22:07] <durandal_1707> the one you use with overlay
[22:09] <viric> hm can I know if it's audio requiring that, or video?
[22:09] <viric> simply to the video overlay doesn't solve it :(
[22:09] <durandal_1707> overlay filter buffers video frames
[22:10] <viric> but I think the trouble is with concat
[22:10] <durandal_1707> iirc I already have discussion here about concatenation of silence audio
[22:13] <viric> sorry, I don't see how that is related.
[22:14] <viric> does any line with any loglevel report about pts?
[22:14] <viric> two files have tb:1/90000, one tb:1/1000
[22:14] <viric> can it be that?
[22:14] <durandal_1707> showinfo shows it among others
[22:14] <durandal_1707> that is time base
[22:15] <viric> here is the ffmpeg output: http://sprunge.us/HOPV
[22:16] <viric> showinfo... let me check.
[22:20] <viric> a mistery for me.
[22:21] <viric> durandal_1707: sure isn't the timebase thing?
[22:24] <durandal_1707> viric: pts uses time base
[22:25] <durandal_1707> so both should be same....
[22:26] <viric> I tried adding setpts everywhere, and no success.
[22:26] <viric> well, I added 'setpts' without parameters. Which clearly shows that I don't know what I am doing
[22:29] <beastd> viric: maybe try to find the overlay examples in the ffmpeg docs. i think it mentions setpts too.
[22:30] <viric> ok
[22:32] <viric> hm maybe it has to do with concat + later overlay
[22:32] <durandal_1707> viric: there is documentation, setpts without any arguments does nothing
[22:32] <viric> I'm trying:
[22:32] <viric> movie=portada.mov:loop=1,setpts=PTS-STARTPTS [p];
[22:33] <viric> [0:0] yadif,scale=960:540,setpts=PTS-STARTPTS [deint0];
[22:33] <viric> [1:0] showinfo,yadif,scale=960:540,setpts=PTS-STARTPTS [deint1];
[22:33] <viric> [deint0] [0:1] [deint1] [1:1] concat=n=2:v=1:a=1 [outv] [outa];
[22:33] <viric> [outv][p] overlay [outv3]'
[22:33] <viric> (I've two -i, for [0] and [1])
[22:33] <durandal_1707> if tb is different you should change it with settb
[22:34] <durandal_1707> chaning only pts while tb is different may not work
[22:34] <durandal_1707> but you first need to be sure what you are doing
[22:35] <viric> so the point is that 'pts' should be equal for every input stream to overlay, right? (checking with showinfo)
[22:35] <durandal_1707> i do not know...
[22:36] <durandal_1707> if you want to overlay 1-1 frame from 2 sources than yes, otherwise not
[22:37] <viric> I have the same fps, so I think I want 1-1 frame.
[22:40] <viric> I guess I have to learn about how video works.
[22:45] <viric> I think I got pts equal...
[22:45] <viric> show input at both overlay inputs:
[22:45] <viric> [Parsed_showinfo_2 @ 0x81e8ee0] n:2 pts:14400 pts_time:0.08
[22:45] <viric> [Parsed_showinfo_6 @ 0x81ea620] n:2 pts:14400 pts_time:0.08
[22:50] <viric> mh no idea.
[22:50] <viric> showinfo shows the same for both, now, at every frame. Same pts, same pts_time, same n, ...
[22:51] <viric> this is my showinfo at overlay inputs:http://sprunge.us/DcDT
[22:52] <khali> I have a .avi file of which ffprobe says: 640x360 [SAR 2:1 DAR 32:9], SAR 1:1 DAR 16:9
[22:53] <durandal_1707> so?
[22:53] <khali> the SAR 1:1 is correct and the 2:1 is not... can anyone suggest an ffmpeg command that would remove the wrong SAR 2:1?
[22:54] <durandal_1707> one is from container and other from bitstream
[22:54] <durandal_1707> so if i guessed correct order, remuxing should fix it
[22:54] <khali> durandal_1707: which is whic, BTW?
[22:57] <viric> argh
[22:58] <viric> durandal_1707: do you know what was it? I had *two* output files by error
[22:59] <viric> ffmpeg -i .... file.webm file.wbm
[22:59] <llogan> what do you mean by, "I had *two* output files by error"?
[23:00] <llogan> what is a .wbm file?
[23:00] <viric> in my command line, I didn't notice I wrote *twice* the output file
[23:00] <durandal_1707> viric: same thing is encoded into 2 files
[23:00] <viric> file.webm file.webm
[23:01] <viric> If I type a single file.webm as output, I don't have any buffer overflow
[23:06] <viric> uf. I was almost learning all the pts thing, had all matched... and yet didn't work. Buffer overflow. Good that I noticed the double filename.
[23:06] <llogan> becase the two output files are different. one is using default settings since it has no output options applied to it
[23:06] <llogan> ...i assume. i have no idea what your command is
[23:12] <khali> durandal_1707: I ended up reencoding the file to mp4... avi sucks anyway
[23:13] <durandal_1707> khali: you mean remuxing
[23:13] <durandal_1707> transcoding decrease quality for lossy codecs
[23:14] <khali> durandal_1707: no, I had the original source still available, so I encoded it to x264 in mp4 container
[23:14] <khali> smaller and nice it is
[23:14] <khali> thanks for your support BTW
[23:14] <khali> now is bed time, see you
[23:32] <IamTrying> How can i join 3 mov files to all-in-one.mov file? this is not working: $ mencoder -oac copy -ovc copy -idx -o output.mov Supernova1.mov Supernova2.mov Supernova3.mov
[23:33] <IamTrying> No audio
[23:33] <durandal_1707> IamTrying: this is not mencoder support channel
[23:34] <IamTrying> durandal_1707, OK how do you do it with FFmpeg?
[23:34] <IamTrying> durandal_1707, just need 3 mov file to 1 mov file with video/audio
[23:34] <durandal_1707> if there all have same codecs/fps/timebase/format/order/etc with concat demuxer
[23:35] <IamTrying> durandal_1707, like this ffmpeg -i "concat:input1.mpg|input2.mpg|input3.mpg" -c copy output.mpg ?
[23:36] <durandal_1707> nope, that is concat protocol, same as cat
[23:37] <JennieL> Hello. I have a question about which decoder vcodec to use. For a src file that mediainfo tells me Video:Codec ID: --> "V_MPEG4/ISO/AVC", would I use vcodec== h264, mpeg4, msmpeg4v1, msmpeg4v2 or msmpeg4v3? I think I'd use h264, but they seem to overlap.
[23:38] <JennieL> In case it matters, the stream output format I want is "mpegts"
[23:38] <llogan> IamTrying: http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f
[23:38] <llogan> https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20%28join%2C%20merge%29%20media%20files
[23:39] <durandal_1707> JennieL: libx264
[23:39] <durandal_1707> for encoder, for decoder h264
[23:40] <axorb> JennieL: why not use ffprobe instead of mediainfo?
[23:41] <JennieL> durandal_1707: Ok, thanks
[23:41] <JennieL> axorb: Well, for starters, I hadn't FOUND ffprobe yet ;-p
[23:41] <axorb> :P
[23:41] <JennieL> I have now ...
[23:41] <axorb> ffprobe <input_file> -show_streams
[23:42] <IamTrying> llogan, if i use this then i lose -sameq ? http://stackoverflow.com/a/7333453/285594
[23:42] <JennieL> axorb: much better, thx!
[23:42] <IamTrying> durandal_1707, if i convert mov to mpg and cat mpg to ffmpeg i lose -sameq of mov ?
[23:43] <llogan> sameq no longer exists
[23:43] <axorb> JennieL: and if you have an updated version of ffmpeg, -print_format json
[23:43] <llogan> http://stackoverflow.com/a/7333453/285594
[23:43] <llogan> http://ffmpeg.org/faq.html#Why-was-the-ffmpeg-_002dsameq-option-removed_003f-What-to-use-instead_003f
[23:43] <IamTrying> llogan, will it keep video/audio quality ??? and same .mov format?
[23:43] <llogan> https://trac.ffmpeg.org/wiki/Option%20%27-sameq%27%20does%20NOT%20mean%20%27same%20quality%27
[23:45] <IamTrying> llogan, so use -qscale 0 ?
[23:45] <IamTrying> ffmpeg -i 1.mov -qscale 0 1.mpg ?
[23:45] <JennieL> axorb: Thanks -- those'll be helpful I hope. I've been having a real problem trying to get my stream output responsding to controls, and to troubleshoot I've been trying to make sure everything is "right" step by step. HAving good/easy info output helps.
[23:46] <IamTrying> cat 1.mpg | ffmpeg -f mpeg -i - -qscale 0 -vcodec mov output.mov ?
[23:46] <IamTrying> VAlid? ffmpeg -i 1.mov -qscale 0 1.mpg; ffmpeg -i 2.mov -qscale 0 2.mpg; cat 1.mpg | ffmpeg -f mpeg -i - -qscale 0 -vcodec mov output.mov ?
[23:47] <IamTrying> s/cat 1.mpg/cat 1.mpg 2.mpg
[23:47] <llogan> IamTrying: have you read any of the links i gave you?
[23:47] <IamTrying> VALID or INVALID ? ffmpeg -i 1.mov -qscale 0 1.mpg; ffmpeg -i 2.mov -qscale 0 2.mpg; cat 1.mpg 2.mpg | ffmpeg -f mpeg -i - -qscale 0 -vcodec mov output.mov ?
[23:47] <IamTrying> llogan, yes, and its too much to read i just need 3 files in 1
[23:48] <IamTrying> Can i use not use this to keep same quality for video codec/audio codec? $ ffmpeg -i 1.mov -qscale 0 1.mpg; ffmpeg -i 2.mov -qscale 0 2.mpg; cat 1.mpg 2.mpg | ffmpeg -f mpeg -i - -qscale 0 -vcodec mov output.mov ?
[23:49] <IamTrying> -vcodec for mov is mov or something else?
[23:50] <axorb> libx264 or something
[23:50] <axorb> mov is just a container
[23:51] <IamTrying> while playing with VLC axorb , showing video : H264-MPEG4 AVC, audio: A52 Audio (aka AC3) (a52)
[23:51] <axorb> oh, you can just use copy
[23:51] <axorb> -vcodec copy -acodec copy
[23:51] <IamTrying> axorb, libx264 is open source broken h264 no?
[23:51] <axorb> but that won't rencode
[23:51] <IamTrying> ok copy is good axorb
[23:52] <axorb> it'll literally use the same data as the input file, just wrap it in a mpg instead of a mov
[23:52] <llogan> help vampire
[23:52] <axorb> and yes, x264 is open source h264
[23:53] <axorb> **
[23:53] <IamTrying> OK - axorb then better never ever use it, cause it wasted my 2 year not giving stable quality
[23:53] <axorb> well
[23:53] <axorb> I'm using x264 in production and it's perfectly fine
[23:54] <IamTrying> axorb, x264 with java crash daily like 10 times in my production release
[23:54] <IamTrying> axorb, finally i quit by hating x264 and java
[23:54] <axorb> not sure how java factored into things, but ffmpeg using x264 works completely fine
[23:54] <JennieL> Anyone here by any chance know some ffpmeg magic for getting an output stream's (h264 .mkv -> mpegts conversion) action-controls to work? Like Pause, Skip, FastForward, etc?
[23:55] <axorb> JennieL: you probably want HLS for that
[23:55] <axorb> it's Apple's streaming protocol that splits a video into 10 second long ts files
[23:55] <Mavrik> uh
[23:55] <Mavrik> what's HLS have to do with that_
[23:55] <Mavrik> ?
[23:56] <Mavrik> JennieL, that's player dependent, what is your exact use-case?
[23:56] <axorb> Mavrik: I've had difficulty with ts files
[23:56] <axorb> VLC barely plays them
[23:56] <axorb> at least ones produced by ffmpeg
[23:56] <JennieL> Mavrik: I've been having a nice discussion all by myself about it: http://ffmpeg.org/pipermail/ffmpeg-user/2013-August/016996.html
[23:57] <JennieL> Mavrik: Neither a Panasonic BluRay standalone player or VLC will allow be to control transcoded streams.
[23:57] <JennieL> Native mkvs are fine.
[23:57] <JennieL> That's "allow me"
[23:57] <Mavrik> hmm, I see
[23:57] <axorb> does ts have global headers?
[23:57] <JennieL> axorb: HLS? New one on me. Googling.
[23:57] <Mavrik> axorb, TS is a streaming format
[23:57] <Mavrik> so no.
[23:57] <axorb> so yeah, you won't get stuff like seek support
[23:58] <Mavrik> and TS can be trickplayed and rewinded as well.
[23:58] <Mavrik> axorb, yes you will.
[23:58] <Mavrik> stop saying stuff without support, c'mon :P
[23:58] <axorb> but the player would have to decode everything right?
[23:58] <Mavrik> nop
[23:58] <axorb> hrm, okay
[23:58] <IamTrying> axorb, Failed to set value '0' for option 'qscale' when trying $ ffmpeg -i Supernova1.mov -qscale 0 1.mpg
[23:58] <Mavrik> it's a streaming format, you can start playing it anywhere :)
[23:59] <Mavrik> JennieL, anyway, that seems like a player limitation with TS container
[23:59] <axorb> Mavrik: but you won't know where to seek for a timestamp
[23:59] <axorb> I guess you can guess based on the bitrate
[23:59] <JennieL> Mavrik: I though VLC was the swiss-army-knife of players.
[23:59] <Mavrik> axorb, either the timestamp table is inserted periodically or you guess yeah :)
[00:00] --- Fri Aug 23 2013
More information about the Ffmpeg-devel-irc
mailing list