Re: [FFmpeg-user] overlay with video offset not starting audio with same offset

2015-08-31 Thread Chad Horton
I ended up taking this route.  Worked like a charm.

Create [s1]: aevalsrc=0:d=N[s1], where N is the number of seconds (to
match video offset (itsoffset))
Concat [s1] and overlayvideo¹s audio (where [s1] is placed before [1:a]):
[s1][1:a]concat=n=2:v=0:a=1[ovrla].
Amix audio from basevideo ([0:a]) with [ovrla]

Ffmpeg -y -i basevideo.mp4 -itsoffset 4 -i overlayvideo.mov
-filter_complex 
"aevalsrc=0:d=4[s1];[s1][1:a]concat=n=2:v=0:a=1[ovrla];[1:v]scale=1280:720[
ovrl];[0:v][ovrl]overlay=eof_action=pass[outv];[0:a][ovrla]amix[outa]"
-map [outv] -map [outa] -c:v mpeg4 -strict experimental -qscale:v 10
finalvideo.mp4









On 8/30/15, 12:48 PM, "ffmpeg-user on behalf of Chad Horton"
 wrote:

>Hi,
>
>I need it to offset the audio of the overlay to match where I offset the
>video of the overlay.  The audio of the underlay video
>(output_2015-08-29_12-53-21.mp4) should not be moved.
>
>
>
>-Original Message-
>From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of
>Paul B Mahol
>Sent: Sunday, August 30, 2015 12:46 AM
>To: FFmpeg user questions 
>Subject: Re: [FFmpeg-user] overlay with video offset not starting audio
>with same offset
>
>On 8/30/15, Chad Horton  wrote:
>> Thanks.
>>
>> Playing around with atrim and while the video processes, not only does
>> the overlay video freeze in places (it^1s choppy), the audio is also
>>off still.
>>  But I don^1t know if it^1s just an artifact of the video not
>> processing correctly.
>>
>> I did notice that if I execute with offset 00:00:00.000 and without
>> using the atrim filter, the video processes, the overlay plays cleanly.
>>
>> The difference in output when I execute with the itsoffset and atrim
>> is in the version with itsoffset > 0 and matching atrim, there^1s what
>> appears to be warnings - for example, "[Parsed_overlay_1 @
>> 0x7fef18c21000] [framesync @ 0x7fef1900b028] Buffer queue overflow,
>>dropping."
>
>Shouldn't you atrim [0:a] and not [1:a] ?
>>
>> Ffmpeg command and full output provided below.
>>
>>
>> ffmpeg -y -i output_2015-08-29_12-53-21.mp4 -itsoffset 2 -i
>> animations/chimp-01.mov -filter_complex
>> "[1:v]scale=1280:720[ovrl];[0v][ovrl]overlay=eof_action=pass[outv];[1:
>> a]atr im=2[1a];[0:a][1a]amix[outa]" -map [outv] -map [outa] -c:v mpeg4
>> -strict experimental -qscale:v 10 final_video_temp.mp4
>>
>>
>> ffmpeg version 2.6.2-tessus Copyright (c) 2000-2015 the FFmpeg
>>developers
>>   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM
>>3.5svn)
>>   configuration: --cc=/usr/bin/clang
>> --prefix=/Users/helmutt/data/ext/ffmpeg/sw --as=yasm
>> --extra-version=tessus --disable-shared --enable-static
>> --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc
>> --enable-libmp3lame --enable-libtheora --enable-libvorbis
>> --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex
>> --enable-bzlib --enable-zlib --enable-libopencore-amrnb
>> --enable-libopencore-amrwb --enable-libxavs --enable-libsoxr
>> --enable-libwavpack --enable-version3 --enable-libvo-aacenc
>> --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm
>> --enable-libopus --enable-libmodplug --enable-fontconfig
>> --enable-libfreetype --enable-libass --enable-libbluray
>> --enable-filters --disable-indev=qtkit --disable-indev=x11grab_xcb
>>--enable-runtime-cpudetect
>>   libavutil  54. 20.100 / 54. 20.100
>>   libavcodec 56. 26.100 / 56. 26.100
>>   libavformat56. 25.101 / 56. 25.101
>>   libavdevice56.  4.100 / 56.  4.100
>>   libavfilter 5. 11.102 /  5. 11.102
>>   libswscale  3.  1.101 /  3.  1.101
>>   libswresample   1.  1.100 /  1.  1.100
>>   libpostproc53.  3.100 / 53.  3.100
>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
>>'output_2015-08-29_12-53-21.mp4':
>>   Metadata:
>> major_brand : mp42
>> minor_version   : 0
>> compatible_brands: isommp42
>> creation_time   : 2015-08-29 19:53:36
>>   Duration: 00:00:13.19, start: 0.00, bitrate: 10149 kb/s
>> Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
>> 1280x720, 10004 kb/s, SAR 1:1 DAR 16:9, 29.98 fps, 30.02 tbr, 90k tbn,
>> 180k tbc (default)
>> Metadata:
>>   creation_time   : 2015-08-29 19:53:36
>>   handler_name: VideoHandle
>>   encoder : MOTO
>> Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
>> stereo, fltp, 128 kb/s (default)
>> Metadata:
>>   creation_time   : 2015-08-29 19:53:36
>>   handler_name: SoundHandle
>> Guessed Channel Layout for  Input Stream #1.1 : mono Input #1,
>> mov,mp4,m4a,3gp,3g2,mj2, from 'animations/chimp-01.mov':
>>   Metadata:
>> major_brand : qt
>> minor_version   : 537199360
>> compatible_brands: qt
>> creation_time   : 2013-02-16 01:09:15
>>   Duration: 00:00:07.67, start: 0.00, bitrate: 18997 kb/s
>> Stream #1:0(eng): Video: png (png  

[FFmpeg-user] EPG stream

2015-08-31 Thread Mitja Pirih
Hello,

What are my options for EPG with ffmpeg?
Currently I am grabbing a DVB-T stream (with mumudvb) and encoding it to
x264, but it the process I am loosing EPG.
Is there a method to inserting EPG back into the stream?

Thank you.


Mitja
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Audio/video capture out of synchronisation. Is my fix right?

2015-08-31 Thread MrNice

On 31/08/15 09:46, Carl Eugen Hoyos wrote:
> MrNice  iol.ie> writes:
> 
>> BTW if I add -itsoffset -0.15 and I remove -ts mono2abs 
>> all is sync even if start: of audio and start: of video 
>> are widely different:
> 
> Then this sounds like the best solution to me.
> (although unexpected)
> 
> Carl Eugen
> 

Thanks Carl

Last question:
Did you notice the message
Cliping frame in rate conversion by
in the output?

In the second output, the first is
Cliping frame in rate conversion by 0.08
and the value increases, the last is
Cliping frame in rate conversion by 0.008064
When I capture for few minutes, the value increases more and sometime
stop and restarts later.
As the text is is green, I'd guess this doesn't impact he quality, but I
am not sure.
AFAIK, cliping (I think there is a spelling mistake, right is clipping)
means something cut or saturated/overloaded (this is more audio context)
but I don't know in this case with what I thing is a time value.

Do you have any idea what is it?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] avformat_open_input - "Port missing in uri."

2015-08-31 Thread Chandan Nataraj
Hi Moritz,

Sorry for misspelling your name in previous mail.

Regards,
Chandna

On Mon, Aug 31, 2015 at 6:21 PM, Chandan Nataraj 
wrote:

> Hi Mortiz,
>
> Thanks for quick response. Here is the code...
>
> AVFormatContext* pFormatContext = NULL;
> int err = avformat_open_input(, uri, NULL, NULL);
>
> uri is in the form of
> "http://.../Preview/548.mp4;
>
> I have called av_register_all and avformat_network_init in other thread
> and I'm sure that it is getting called before avformat_open_input.
>
> Regards,
> Chandan
>
>
>
>
> On Mon, Aug 31, 2015 at 5:57 PM, Moritz Barsnick  wrote:
>
>> Hi Chandan,
>>
>> On Mon, Aug 31, 2015 at 17:23:33 +0530, Chandan Nataraj wrote:
>> > I'm trying to open a mp4 file from http. When I call
>> avformat_open_input it
>> > fails with following log.
>>
>> This list is about ffmpeg, the command line tool(s). If you need help
>> with using the libraries, please refer to the libav-user list:
>> https://ffmpeg.org/mailman/listinfo/libav-user
>>
>> > The url does not contain any port number. So it should be using default
>> > port (80).
>> > Same url and code works from another thread where I have initialized my
>> > libavformat.
>> >
>> > Any suggestions  are highly appreciated.
>>
>> Let me suggest that when you ask for such assistance, please show the
>> code you are using to call avformat_open_input(), and the parameters
>> you are passing.
>>
>> Moritz
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] OpenCaster vs. FFmpeg

2015-08-31 Thread Ran Shalit
Hello,

I would please like to ask what is a good choice for muxing ES to mpeg
transport stream which is transffered in ethernet udp.
It is required to do this in linux application which integrates with
video encoder (ES).

I know that both FFmpeg and OpenCaster can support this.

What do you think will be a good choice for this ? (simplicity to
integrate in code, latency, debug, performance, support in community, etc)

Regards,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user