[FFmpeg-user] Replacing First 90 Seconds of a Video with Silence or with Another Audio Clip

2016-01-19 Thread a...@fumatic.org
On 01/18/2016 10:02 PM, Ryan Williams
wrote:




On Tuesday, 19 January 2016 02:13 Sam Logan  wrote:



I have a video AVI file, "Video.avi", consisting of a video and an 
audio track, and a separate audio file, "Audio.mp3". I want to do the 
following two things:

(1)

First, I want to produce a version of the video, "OutputSilenced.avi", 
which would be identical to the original video except that the first 
90 seconds of the video's audio are replaced with silence (to clarify, 
I want to REPLACE, as in overwrite, the first 90 seconds, NOT insert 
90 seconds of silence to push the audio back 90 seconds).



-af "volume=enable='lte(t,90)':volume=0"

http://ffmpeg.org/ffmpeg-filters.html#volume
http://ffmpeg.org/ffmpeg-filters.html#Timeline-editing



(2)

Second, I want to produce a version of the video, 
"OutputReplaced.avi", which would be identical to the original video 
except that the first 90 seconds of the video's audio are replaced 
with the first 90 seconds of "Audio.mp3" (again, to be clear, I want 
to REPLACE, as in overwrite, the first 90 seconds, NOT insert 90 
seconds of audio to push the original audio back 90 seconds).

How commands would I use to do this with FFmpeg? Ideally, I would like 
to just remux without doing any re-encoding. Thanks in advance.


Only way I can think of is to use a combination of the volume filter above to 
suppress the audio form the video and chain it with 'amix' to create a new 
audio track.

If you run into volume level problems using 'amix' try a combination of 
'amerge' to make it a 4 channel track then 'pan' to change it back into stereo.

http://ffmpeg.org/ffmpeg-filters.html#amix
http://ffmpeg.org/ffmpeg-filters.html#amerge-1
http://ffmpeg.org/ffmpeg-filters.html#pan





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







step 1)  Stop being a tool with the
all caps. be polite
You catch more flies with honey, 
than you do with vinegar.


step 2)
grab just the audio from your video 90 seconds in:
ffmpeg -ss 00:01:30  -i in.mp4 -vn  out.mp3

step 3)
concat your audio.mp3 with the out.mp3 you just made

ffmpeg -i "concat:audio.mp3|out.mp3"   -c copy all.mp3

step 4)
take the video stream from the original video and mux in all.mp3

ffmpeg -i in.mp4 -i all.mp3 -map 0:0 -map 1:0 -c copy done.mp4

step 5) record a blank 90 secs of audio
and repeat the steps 3 and 4 with it instead of audio.mp3.

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


Re: [FFmpeg-user] Invalid data found when processing input

2016-01-07 Thread a...@fumatic.org


- Reply message -
From: "chovy" 
To: "ffmpeg-user@ffmpeg.org" 
Subject: [FFmpeg-user] Invalid data found when processing input
Date: Thu, Jan 7, 2016 4:37 AM

I'm getting an "Invalid data found when processing input" when trying to copy 
this stream:


ffmpeg -i 
http://nflioslivesvg2-i.akamaihd.net/hls/live/221521/nflioslive/2015HackerNow_w99d9_g.m3u8
 -user-agent iPad -c:v copy -c:a copy test.m3u8

ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.3 --enable-shared 
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables 
--enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl 
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid 
--enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
http://nflioslivesvg2-i.akamaihd.net/hls/live/221521/nflioslive/2015HackerNow_w99d9_g.m3u8:
 Invalid data found when processing input
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
I believe the issue may be server side.I got a 500 error off akamai.that link 
is all over the Internet.I often pull my m3u8 files off akamai with: ffmpeg -i 
https://akamai.net/this.m3u8 -c copy that.m3u8If the master m3u8 contains 
multiple bitrate m3u8 files you may want to use one of those instead.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Installationon Debian not working

2015-12-31 Thread a...@fumatic.org


- Reply message -
From: "Thomas Hehl" 
To: "FFmpeg user questions" 
Subject: [FFmpeg-user] Installationon Debian not working
Date: Thu, Dec 31, 2015 6:58 AM

I had exactly this same problem on Ubuntu where my 265 library didn't
build. I ended up going forward and leaving out the 265 libraries. Let me
know if you come up with something different.

On Wed, Dec 30, 2015 at 11:57 PM, Harald  wrote:

>
>
> Hello,
>
> I tried to install ffmpeg on my debian 8 PC, but it doesnt wok and it
> tells me to write to this mailing list. So I write here.
>
> Here is the Log of the installation, but itis just a piece due to the
> limited storage in the terminal.: http://pastebin.com/feVbsPFN
>
> I used this tutorial:
> https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
>
> I think the most important part is
>
> root@AnonymusChaotic:~/ffmpeg_sources/ffmpeg# PATH="$HOME/bin:$PATH"
> PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
> > --prefix="$HOME/ffmpeg_build" \
> > --pkg-config-flags="--static" \
> > --extra-cflags="-I$HOME/ffmpeg_build/include" \
> > --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
> > --bindir="$HOME/bin" \
> > --enable-gpl \
> > --enable-libass \
> > --enable-libfdk-aac \
> > --enable-libfreetype \
> > --enable-libmp3lame \
> > --enable-libopus \
> > --enable-libtheora \
> > --enable-libvorbis \
> > --enable-libvpx \
> > --enable-libx264 \
> > --enable-libx265 \
> > --enable-nonfree
> ERROR: X265 NOT FOUND USING PKG-CONFIG
>
> If you think configure made a mistake, make sure you are using the
> latest
> version from Git. If the latest version fails, report the problem to the
> ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
> Include the log file "config.log" produced by configure as this will
> help
> solve the problem.
>
> When trying to convert it to .ogg it fails, converting to .mp4 works
> well
>
> ###
>
> avconv -i intro.mov -c copy introx.ogg
> avconv version 11.4-6:11.4-1~deb8u1, Copyright (c) 2000-2014 the Libav
> developers
> built on Jun 4 2015 19:39:02 with gcc 4.9.2 (Debian 4.9.2-10)
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'intro.mov':
> Metadata:
> major_brand : qt
> minor_version : 0
> compatible_brands: qt
> creation_time : 2015-11-24 11:15:12
> Duration: 00:03:27.82, start: 0.00, bitrate: 16131 kb/s
> Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080, 15958 kb/s,
> PAR 1:1 DAR 16:9, 29.97 fps, 30k tbn, 50 tbc (default)
> Metadata:
> creation_time : 2015-11-24 11:15:12
> encoder : H.264
> Stream #0.1(und): Audio: aac, 48000 Hz, stereo, fltp, 127 kb/s (default)
> Metadata:
> creation_time : 2015-11-24 11:15:12
> Stream #0.2(und): Data: tmcd / 0x64636D74 (default)
> Metadata:
> creation_time : 2015-11-24 11:15:12
> File 'introx.ogg' already exists. Overwrite ? [y/N] y
> [OGG @ 0X199A400] UNSUPPORTED CODEC ID IN STREAM 0
> Output #0, ogg, to 'introx.ogg':
> Metadata:
> major_brand : qt
> minor_version : 0
> compatible_brands: qt
> creation_time : 2015-11-24 11:15:12
> encoder : Lavf56.1.0
> Stream #0.0(und): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
> q=2-31, 15958 kb/s, 30k tbn, 30k tbc (default)
> Metadata:
> creation_time : 2015-11-24 11:15:12
> encoder : H.264
> Stream #0.1(und): Audio: aac, 48000 Hz, stereo, 127 kb/s (default)
> Metadata:
> creation_time : 2015-11-24 11:15:12
> Stream mapping:
> Stream #0:0 -> #0:0 (copy)
> Stream #0:1 -> #0:1 (copy)
> COULD NOT WRITE HEADER FOR OUTPUT FILE #0 (INCORRECT CODEC PARAMETERS
> ?): OPERATION NOT PERMITTED
>
> Can you please help me? I just want to convert .mov videos to .ogg.
>
> 
>
> The command ffmpeg does not work.
>
> I've tried several programs within the last 5 hours without any chance
> to success.
>
> Yours,
>
> Harald
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


I build on debian weekly,it's not debian.
you need to runpkg-config libx265
why not just apt install x265 libx265-dev libx265-68( stretch debs)for your mov 
to ogg error,you cannot use -c copy in that situation.you need to read the docs.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Using ffmpeg to stream IS desktop.

2015-12-20 Thread a...@fumatic.org
what about sip servers? Most sip clients have the streaming functionality built 
in. that would also help in regards to user mamagement. 
You could maybe get a sip server that uses ffmpeg.

- Reply message -
From: "David Peterson" <dpeterson...@gmail.com>
To: "FFmpeg user questions" <ffmpeg-user@ffmpeg.org>
Subject: [FFmpeg-user] Using ffmpeg to stream IS desktop.
Date: Sun, Dec 20, 2015 8:06 PM

I really appreciate the advice.  I am most certainly a "follower" in this
realm.  I am a firm believer though that, "Where others go, I can
follow"...
My hunch is that the aggregation will be the easier part.  It is the need
to get multiple mobile devices to work.  So it is the IOS transmitter side
that seems to be hard.  I know that if I can use VLC to stream the desktop,
then we can do it with a custom ffmpeg build.
That being said, I am confident that Chromebooks, Android, Windows and
almost every other OS will allow VLC/ffmpeg to record the screen and
therefore stream it to the rtmp aggregation server.  My big problem, I
believe is IOS.  How can I capture an IOS screen so that I can then send it
to the aggregator?
Again, we have devised the system that works (a hardware HDMI transmitter),
and it is really easy.  It is just really ugly (3 or 4 parts), and we don't
have the means to make the transmitter small enough to be useable.

Thanks for the help!

Dave

On Sun, Dec 20, 2015 at 7:54 PM, a...@fumatic.org <a...@fumatic.org> wrote:

> would it not be easier to use an rtmp server to "aggregate" and have the
> students stream their desktops to it?
>
> - Reply message -
> From: "David Peterson" <dpeterson...@gmail.com>
> To: "FFmpeg user questions" <ffmpeg-user@ffmpeg.org>
> Subject: [FFmpeg-user] Using ffmpeg to stream IS desktop.
> Date: Sun, Dec 20, 2015 5:57 PM
>
> Thank you.  I have found some documentation with regards to this.  I was
> wondering though, if there might be some example howto's on this.  My goal,
> in our school is to build a way to allow several concurrent mobile devices
> which include iPads to be able to cast their screens to an "aggregator"  PC
> and show them on the overhead projector, kind of like a multiview screen
> for multiple camera's.  We have devised a way using HDMI grabber cards, and
> wireless access points with modified firmware and a USB port, to be able to
> send their screen in the manner I have outlined, but I was hoping there was
> some way to do it without hardware.
> The hardware solution is really cool aside from the fact that their are 3
> or 4 parts to the transmitter.
>
> Dave
>
> On Sun, Dec 20, 2015 at 2:44 PM, Carl Eugen Hoyos <ceho...@ag.or.at>
> wrote:
>
> > dpeterson478  gmail.com> writes:
> >
> > > Does anyone know if there are any ports of FFmpeg that
> > > have any hope of streaming or recording an iOS desktop?
> >
> > Does avfoundation not work on iOS?
> > I thought it does...
> >
> > Carl Eugen
> >
> > ___
> > 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 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 mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Using ffmpeg to stream IS desktop.

2015-12-20 Thread a...@fumatic.org
would it not be easier to use an rtmp server to "aggregate" and have the 
students stream their desktops to it?

- Reply message -
From: "David Peterson" 
To: "FFmpeg user questions" 
Subject: [FFmpeg-user] Using ffmpeg to stream IS desktop.
Date: Sun, Dec 20, 2015 5:57 PM

Thank you.  I have found some documentation with regards to this.  I was
wondering though, if there might be some example howto's on this.  My goal,
in our school is to build a way to allow several concurrent mobile devices
which include iPads to be able to cast their screens to an "aggregator"  PC
and show them on the overhead projector, kind of like a multiview screen
for multiple camera's.  We have devised a way using HDMI grabber cards, and
wireless access points with modified firmware and a USB port, to be able to
send their screen in the manner I have outlined, but I was hoping there was
some way to do it without hardware.
The hardware solution is really cool aside from the fact that their are 3
or 4 parts to the transmitter.

Dave

On Sun, Dec 20, 2015 at 2:44 PM, Carl Eugen Hoyos  wrote:

> dpeterson478  gmail.com> writes:
>
> > Does anyone know if there are any ports of FFmpeg that
> > have any hope of streaming or recording an iOS desktop?
>
> Does avfoundation not work on iOS?
> I thought it does...
>
> Carl Eugen
>
> ___
> 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 mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] convert HLS stream to UDP

2015-11-13 Thread a...@fumatic.org
your 'local' test is not a valid test,
your not using the same container or protocol. 


split your steps for testing maybe.


try writing the file on the server using an mpegts container
ffmpeg -i http://example.com/master.m3u8 -c copy master.ts

and then after you have written the file.

ffmpeg -i master.ts -f mpegts udp://10.10.11.12:1234

and see if it plays

that should make it clearer as to where the issue lies.

- Reply message -
From: "Sorin Esanu" 
To: 
Subject: [FFmpeg-user] convert HLS stream to UDP
Date: Thu, Nov 12, 2015 2:19 PM

Hello,

I am trying to convert (without transcoding) an HLS stream to UDP and 
send it to my computer. For that I use this command, unnder Ubuntu 14.04:

./ffmpeg -i 
http://hls.cdn.flosoft.biz/flosoft/smil:twitStreamAll.smil/playlist.m3u8 
-map 0:1 -map 0:2 -c:v:0 copy -c:a:0 copy -f mpegts udp://192.168.2.227:1234

I am then using VLC on Windows to view that stream (udp://:1234).
It does not work, as the video it's all some random colored squares and 
audio is just some random noise and cracking.

Using same command to save the file local:

./ffmpeg  -i 
http://hls.cdn.flosoft.biz/flosoft/smil:twitStreamAll.smil/playlist.m3u8 
-map 0:1 -map 0:2 -c:v:0 copy -c:a:0 copy test.avi

produces a perfectly readable file that I can view with VLC.

I've tried various options here (with and without transcoding), 
multicast... nothing. I get the same unusable video and audio.

Could you tell me what am I missing here? There is no packet loss 
between my Windows computer (the one with VLC) and the Ubuntu server.
I've also tried other computers with same result.


Thank you and sorry if this is a trivial question! I do not have 
experience playing with video streams, or at least not more than viewing 
them in VLC.

Sorin
___
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