[FFmpeg-user] Cutdetection (dynamic threshold) and Fadedetection with ffmpeg

2015-01-22 Thread Christoph Gerstbauer

Hello

Is it possible to detect cuts with ffmpeg by using a DYNAMIC threshold?
Additionally: Is it possible to detect fades? (Blackfades, Crossfades)

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


[FFmpeg-user] -timelimit not working.

2015-01-22 Thread Jeremy Buseman
I'm trying to limit the amount of time my stream runs for but adding
-timelimit or -t doesn't seem to do anything. Anyone have any suggestions?

ffmpeg -timelimit 30 -r 15 -rtsp_transport tcp -i rtsp://
source.com:557/streaming/channels/0 -an -vcodec copy -f flv rtmp://
127.0.0.1/live/stream
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] dynamic image overlay

2015-01-22 Thread Werner Robitza
On Thu, Jan 22, 2015 at 10:28 PM, Mark Ambler
mwambler-at-yahoo@ffmpeg.org wrote:

 Hi All,Found this thread on the mailing list from back in 2012.  Was it ever 
 implemented?  if yes... any command line samples out there?

 https://ffmpeg.org/pipermail/ffmpeg-user/2012-August/008703.html

It says,

 Is there currently any way to get it to overlay with an image where the image 
 can be updated every so often, during the ffmpeg session?

I don't understand what exactly is wanted here. Can you please
describe that with a more specific example?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] mpeg start code?

2015-01-22 Thread Matt Zagrabelny
Greetings,

I'm looking to get the right name for a hexadecimal number from the
output from ffprobe:

ffprobe -i the_lego_movie.vob
ffprobe version 2.4.3-1 Copyright (c) 2007-2014 the FFmpeg developers
  built on Nov  5 2014 00:18:23 with gcc 4.9.1 (Debian 4.9.1-14)
  configuration: --prefix=/usr --extra-version=1
--build-suffix=-ffmpeg --toolchain=hardened --extra-cflags=
--extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu
--shlibdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared
--disable-stripping --enable-avresample --enable-avisynth
--enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libflite --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmodplug
--enable-libmp3lame --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-librtmp --enable-libschroedinger
--enable-libshine --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab
--enable-libxvid --enable-libdc1394 --enable-libiec61883
--enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264
--enable-libsoxr --enable-openal --enable-libopencv
  libavutil  54.  7.100 / 54.  7.100
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.101 / 56.  4.101
  libavdevice56.  0.100 / 56.  0.100
  libavfilter 5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale  3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  0.100 / 53.  0.100
Input #0, mpeg, from 'the_lego_movie.vob':
  Duration: 00:43:33.83, start: 0.041811, bitrate: 16818 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x480
[SAR 32:27 DAR 16:9], max. 7500 kb/s, 29.97 fps, 59.94 tbr, 90k tbn,
59.94 tbc
Stream #0:1[0x82]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:3[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:4[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s

What would be the right name of the hex number in brackets above:

0x80, 0x1e0, etc.

PES
Stream ID
Substream ID
Startcode

??

I can't quite find definitive info.

Thanks for any help!

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


[FFmpeg-user] can not clip/trim some files made by ffmpeg same version

2015-01-22 Thread S Andreason
After starting with a raw camera file, after I process it by resizing 
and/or cropping etc, using the h264 codec, When I later try to use that 
output file as an input file for further processing, (intending to trim 
the length and starting time) it gives an error and drops the video stream.


Two output logs to show how I can reproduce this bug. Watch the 
beginning and ending tbc and tbn.

Step 1, resize:

ffmpeg version N-68814-gc6bb651 Copyright (c) 2000-2014 the FFmpeg 
developers

  built on Jan  2 2015 12:09:28 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-libx264 --disable-doc 
--disable-htmlpages --disable-podpages --disable-ffserver 
--disable-network --enable-libfreetype --enable-libfontconfig

  libavutil  54. 16.100 / 54. 16.100
  libavcodec 56. 19.100 / 56. 19.100
  libavformat56. 16.102 / 56. 16.102
  libavdevice56.  3.100 / 56.  3.100
  libavfilter 5.  6.100 /  5.  6.100
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with 
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging 
level) with argument '99'.
Reading option '-i' ... matched as input file with argument 
'20150112_0958_rec_5310.MOV'.
Reading option '-c:v' ... matched as option 'c' (codec name) with 
argument 'h264'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or 
abbreviation)) with argument '960x540'.
Reading option '-c:a' ... matched as option 'c' (codec name) with 
argument 'copy'.
Reading option '20150112_0958_rec_5310-h960x540.mov' ... matched as 
output file.

Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file 20150112_0958_rec_5310.MOV.
Successfully parsed a group of options.
Opening an input file: 20150112_0958_rec_5310.MOV.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x93bb9e0] Format mov,mp4,m4a,3gp,3g2,mj2 
probed with size=2048 and score=100

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x93bb9e0] ISO: File Type Major Brand: qt
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x93bb9e0] Before avformat_find_stream_info() 
pos: 147048059 bytes read:83571 seeks:2

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x93bb9e0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x93bb9e0] After avformat_find_stream_info() 
pos: 2689024 bytes read:2536703 seeks:4 frames:31

Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '20150112_0958_rec_5310.MOV':
  Metadata:
major_brand : qt
minor_version   : 0
compatible_brands: qt
creation_time   : 2015-01-12 09:58:08
original_format : DVR-CD
original_format-eng: DVR-CD
comment : HDDVR-Mobius
comment-eng : HDDVR-Mobius
  Duration: 00:01:04.00, start: 0.00, bitrate: 18381 kb/s
Stream #0:0(eng), 30, 1/3: Video: h264 (High) (avc1 / 
0x31637661), yuv420p(left), 1920x1080 (1920x1088), 1/6, 17680 kb/s, 
30 fps, 30 tbr, 30k tbn, 60k tbc (default)

Metadata:
  creation_time   : 2015-01-12 09:58:08
  handler_name: DataHandler
  encoder : h264
Stream #0:1(eng), 1, 1/32000: Audio: pcm_s16le (sowt / 0x74776F73), 
32000 Hz, 1 channels, s16, 512 kb/s (default)

Metadata:
  creation_time   : 2015-01-12 09:58:08
  handler_name: DataHandler
Successfully opened the file.
Parsing a group of options: output file 20150112_0958_rec_5310-h960x540.mov.
Applying option c:v (codec name) with argument h264.
Applying option s (set frame size (WxH or abbreviation)) with argument 
960x540.

Applying option c:a (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: 20150112_0958_rec_5310-h960x540.mov.
Matched encoder 'libx264' for codec 'h264'.
Successfully opened the file.
detected 1 logical cores
[graph 0 input from stream 0:0 @ 0x93bb420] Setting 'video_size' to 
value '1920x1080'

[graph 0 input from stream 0:0 @ 0x93bb420] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x93bb420] Setting 'time_base' to value 
'1/3'
[graph 0 input from stream 0:0 @ 0x93bb420] Setting 'pixel_aspect' to 
value '0/1'
[graph 0 input from stream 0:0 @ 0x93bb420] Setting 'sws_param' to value 
'flags=2'
[graph 0 input from stream 0:0 @ 0x93bb420] Setting 'frame_rate' to 
value '30/1'
[graph 0 input from stream 0:0 @ 0x93bb420] w:1920 h:1080 pixfmt:yuv420p 
tb:1/3 fr:30/1 sar:0/1 sws_param:flags=2

[scaler for output stream 0:0 @ 0x93b3920] Setting 'w' to value '960'
[scaler for output stream 0:0 @ 0x93b3920] Setting 'h' to value '540'
[scaler for output stream 0:0 @ 0x93b3920] Setting 'flags' to value '0x4'
[scaler for output stream 0:0 @ 0x93b3920] w:960 h:540 flags:'0x4' interl:0
[format @ 0x93bb640] compat: called with 
args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16]
[format 

[FFmpeg-user] transcoding mp3 to wav

2015-01-22 Thread jd1008

Hi, I tried to transcode a few mp3 files to wav using the command

for f in *.mp3; do
ffmpeg -i $f -ab 1600k -y ${f%mp3}wav
done

it does the conversion, but does not honour the bitrate param.
How do I force the bitrate param for the ourput?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] transcoding mp3 to wav

2015-01-22 Thread Moritz Barsnick
On Thu, Jan 22, 2015 at 10:08:35 -0700, jd1008 wrote:
 it does the conversion, but does not honour the bitrate param.
 How do I force the bitrate param for the ourput?

You didn't show us the output of your ffmpeg command.

Anyway, your approach is wrong. The bitrate of a WAV file is defined by
its sample format, sample rate, and number of channels (except for
non-PCM WAV, which is not selected by default).

The default is probably pcm_s16le, which means 16 bits per sample per
channel. Therefore you can mathematically influence this with -ac M
and -ar N, or by actually selecting the desired sample format.

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


Re: [FFmpeg-user] transcoding mp3 to wav

2015-01-22 Thread jd1008


On 01/22/2015 10:23 AM, Moritz Barsnick wrote:

On Thu, Jan 22, 2015 at 10:08:35 -0700, jd1008 wrote:

it does the conversion, but does not honour the bitrate param.
How do I force the bitrate param for the ourput?

You didn't show us the output of your ffmpeg command.

Anyway, your approach is wrong. The bitrate of a WAV file is defined by
its sample format, sample rate, and number of channels (except for
non-PCM WAV, which is not selected by default).

The default is probably pcm_s16le, which means 16 bits per sample per
channel. Therefore you can mathematically influence this with -ac M
and -ar N, or by actually selecting the desired sample format.

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


Sorry!! I did not know that info was needed. Here it is for track1.
I tried with the params:  -ac 2  -ar 44.1k -ab 1600k   but to no avail.
--

ffmpeg version N-51556-ge278500 Copyright (c) 2000-2013 the FFmpeg 
developers

  built on Apr  4 2013 05:11:43 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 
--extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' 
--extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' 
--extra-libs='-lxml2 -lexpat -lfreetype' --enable-static 
--disable-shared --disable-ffserver --disable-doc --enable-bzlib 
--enable-zlib --enable-postproc --enable-runtime-cpudetect 
--enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis 
--enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype 
--enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc 
--enable-libvo-amrwbenc --enable-version3 --enable-libvpx

  libavutil  52. 24.100 / 52. 24.100
  libavcodec 55.  2.100 / 55.  2.100
  libavformat55.  1.100 / 55.  1.100
  libavdevice55.  0.100 / 55.  0.100
  libavfilter 3. 49.100 /  3. 49.100
  libswscale  2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc52.  2.100 / 52.  2.100
[mp3 @ 0x98b4700] max_analyze_duration 500 reached at 5015510 
microseconds

Input #0, mp3, from 'trak1.mp3':
  Metadata:
album   : none
title   : track1
genre   : instructional
artist  : me
track   : 01
date: 2014
  Duration: 00:08:54.57, start: 0.00, bitrate: 321 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
Stream #0:1: Video: mjpeg, yuvj444p, 600x600 [SAR 100:100 DAR 1:1], 
90k tbr, 90k tbn, 90k tbc

Metadata:
  title   :
  comment : Cover (front)
Output #0, wav, to 'trak1.wav':
  Metadata:
IPRD: trak1
INAM: trak1
IGNR: Instructional
IART: me
IPRT: 01
ICRD: 2014
ISFT: Lavf55.1.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 
stereo, s16, 1411 kb/s

Stream mapping:
  Stream #0:0 - #0:0 (mp3 - pcm_s16le)
Press [q] to stop, [?] for help
size=   15075kB time=00:01:27.53 bitrate=1410.8kbits/s^Msize= 
30114kB time=00:02:54.83 bitrate=1411.0kbits/s^Msize=   45162kB 
time=00:04:22.19 bitrate=1411.1kbits/s^Msize=   60201kB 
time=00:05:49.49 bitrate=1411.1kbits/s^Msize=   75245kB 
time=00:07:16.81 bitrate=1411.1kbits/s^Msize=   90257kB 
time=00:08:43.96 bitrate=1411.1kbits/s^Msize=   92084kB 
time=00:08:54.56 bitrate=1411.1kbits/s^M
video:0kB audio:92084kB subtitle:0 global headers:0kB muxing overhead 
0.000320%


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