[FFmpeg-user] MPD file creation using FFMpeg fails validation check

2016-01-15 Thread Rahul Prasad
TL;DR DASH manifest file (mpd) created using ffmpeg fails the validation
test and also fails to play.

This is what I did:

Step 1: Transcoded 2 video files with different resolution and bitrate
(without audio stream)




*​​ffmpeg -y -i file1.mp4 -c:v libvpx -vf scale=-2:270 -quality good
-cpu-used 0 -b:v 400k -maxrate 400k -bufsize 400k  -keyint_min 150 -g 150
-an -f webm -dash 1 file1-270.webmffmpeg -y -i file1.mp4 -c:v libvpx -vf
scale=-2:360 -quality good -cpu-used 0 -b:v 1200k -maxrate 1200k -bufsize
1200k  -keyint_min 150 -g 150 -an -f webm -dash 1 file1-360.webm*
Step 2: Separately transcoded the audio stream


*​​ffmpeg -y -i file1.mp4 -c:a libvorbis -b:a 128k -vn -f webm -dash 1
file1-audio.webm*
Step 3: Created the Dash manifest file


*​​ffmpeg -f webm_dash_manifest -i file1-270.webm -f webm_dash_manifest -i
file1-360.webm -f webm_dash_manifest -i file1-audio.webm -c copy -map 0
-map 1 -map 2 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1
id=1,streams=2" file1.mpd*
When I run this I get
​this​
 warning "Output file is empty, nothing was encoded (check -ss / -t /
-frames parameters if used)". However, the output file
​gets
 created.

Now when I tried to run this file through DASH validation (
http://dashif.org/conformance.html) it said "MPD validation failed".
Another validation tool (http://www-itec.uni-klu.ac.at/dash/?page_id=605)
threw this error


*​​Line:Col[8:57]:cvc-elt.1: Cannot find the declaration of element
‘MPD’.MPD validation not successful – DASH is not valid!*

​​

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


Re: [FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-15 Thread Marco Pracucci
Carl Eugen,
thanks for your reply.

> I decided to install gas-preprocessor and this issue disappeared.

For the sake of knowledge, I can't understand why I do need a
gas-preprocessor to run the configure. If I create a file containing the
same exact AS code run through "check_as" and run the same exact command to
compile it (I took both from --logfile content), it actually works.

Since there's some discrepancy between the command run by the configure
script and the same exact command run manually on my terminal, I'm
wondering how it could happen and if it's actually an issue related to the
configure script.

> Note that since compilation does not succeed for all files, I
> suggest you use gcc for the time being.

I manually patched the configure script to bypass "check_as" and I also
realized the compilation fails. That's the next thing I will deeply look
into.

Thank you,
Marco


2016-01-15 23:59 GMT+01:00 Carl Eugen Hoyos :

> Marco Pracucci  spreaker.com> writes:
>
> > I'm getting some issues while compiling ffmpeg with Android NDK's clang
> and
> > this is the first one I encounter:
> > *GNU assembler not found, install/update gas-preprocessor*
>
> I can reproduce the error message.
> I decided to install gas-preprocessor and this issue disappeared.
> Why do you believe there is an issue that we can fix?
>
> Note that since compilation does not succeed for all files, I
> suggest you use gcc for the time being.
>
> 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


Re: [FFmpeg-user] dvb_teletext -> .srt fails?

2016-01-15 Thread Marton Balint


On Fri, 15 Jan 2016, Roger Pack wrote:


similar to https://lists.ffmpeg.org/pipermail/ffmpeg-user/2015-June/027029.html
and

https://trac.ffmpeg.org/ticket/3025

My "quest" is to convert an dvb_teletext stream to some human readable
(ex: .srt) format.

Ex: using this file:

https://trac.ffmpeg.org/attachment/ticket/3025/sbs.2.5M.ts

I don't seem to be having much luck (DVBT stream).  Any feedback welcome :)
-roger-


That DVB teletext stream does not seem to contain any subtitles. Try to 
upload a bigger part somewhere if you are sure there should be subtitles.


You can check with ffprobe if there are any actual decoded subtitles:

./ffprobe -of xml -select_streams s -show_frames

With the sample, there are none.

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


Re: [FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-15 Thread Carl Eugen Hoyos
Marco Pracucci  spreaker.com> writes:

> I'm getting some issues while compiling ffmpeg with Android NDK's clang and
> this is the first one I encounter:
> *GNU assembler not found, install/update gas-preprocessor*

I can reproduce the error message.
I decided to install gas-preprocessor and this issue disappeared.
Why do you believe there is an issue that we can fix?

Note that since compilation does not succeed for all files, I 
suggest you use gcc for the time being.

Carl Eugen

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


[FFmpeg-user] dvb_teletext -> .srt fails?

2016-01-15 Thread Roger Pack
similar to https://lists.ffmpeg.org/pipermail/ffmpeg-user/2015-June/027029.html
and

https://trac.ffmpeg.org/ticket/3025

My "quest" is to convert an dvb_teletext stream to some human readable
(ex: .srt) format.

Ex: using this file:

https://trac.ffmpeg.org/attachment/ticket/3025/sbs.2.5M.ts

I don't seem to be having much luck (DVBT stream).  Any feedback welcome :)
-roger-

ffmpeg.exe   -txt_format text -i c:\users\rdp\Downloads\sbs.2.5M.ts
-map 0:i:0x2c -y out.srt
ffmpeg version N-77844-g62051f3 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32
--cross-prefix=/Users/rdp2/dev/ffmpeg-windows-build-helpers2/sandbox/cross_compi
lers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config
--disable-w32threads --enable-gpl --enable-libsoxr --enable-fo
ntconfig --enable-libass --enable-libutvideo --enable-libbluray
--enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_S
TATIC --enable-libzvbi --enable-libcaca --enable-libmodplug
--extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enabl
e-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264
--enable-libxvid --enable-libmp3lame --enable-version3 --en
able-zlib --enable-librtmp --enable-libvorbis --enable-libtheora
--enable-libspeex --enable-libopenjpeg --enable-gnutls --enable
-libgsm --enable-libfreetype --enable-libopus --enable-frei0r
--enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enab
le-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libvo-amrwbenc --enable-libschroedinger --enable-libvp
x --enable-libilbc --enable-libwavpack --enable-libwebp
--enable-libgme --enable-dxva2 --enable-libdcadec --enable-avisynth
--en
able-gray --enable-libopenh264 --extra-libs=-lpsapi --extra-cflags=
--enable-static --disable-shared --prefix=/Users/rdp2/dev/ff
mpeg-windows-build-helpers2/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32
--enable-runtime-cpudetect
  libavutil  55. 12.100 / 55. 12.100
  libavcodec 57. 22.100 / 57. 22.100
  libavformat57. 21.101 / 57. 21.101
  libavdevice57.  0.100 / 57.  0.100
  libavfilter 6. 23.100 /  6. 23.100
  libswscale  4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc54.  0.100 / 54.  0.100
[mpegts @ 054a3860] PES packet size mismatch
Last message repeated 8 times
[mpegts @ 054a3860] probed stream 2 failed
[mpeg2video @ 05564b00] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05d52560] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 0556b7a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 055724a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05d52560] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 0556b7a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05564b00] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05d52560] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 0556b7a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05564b00] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 0556b7a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05d52560] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 055724a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05564b00] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 055724a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05d52560] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 055724a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 0556b7a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 05d52560] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
Last message repeated 1 times
[mpeg2video @ 0556b7a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpegts @ 054a3860] DTS 5653752687 < 14243683679 out of order
[mpeg2video @ 05564b00] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 055724a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 0556b7a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.
[mpeg2video @ 055724a0] Invalid frame dimensions 0x0, or possibly
encountered data before first frame.

[FFmpeg-user] ffmpeg Buffer - Delphi XE2 Question

2016-01-15 Thread Robert Pyrc
Hi. I have a problem with the buffer and delay the image (MPEG-4) ( PTZ 
Camera) is about 2 seconds delay after PTZ moved positions always. How 
can set the video buffor to 0ms? PTZ Camera is in the LAN - no internet 
. When i change PTZ position the camera from browser then there is no 
delay. I connect to camera protocol RTSP, my link : 
rtsp://root:root@10.0.0.1:554/mpeg4/1/media.amp My camera model is AXIS 
215 PTZ. Best Regards, Robert Pyrc

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


Re: [FFmpeg-user] Compiling ffmpeg with libx264

2016-01-15 Thread Rayden
Sorry for the vague error. Here is the exact error message when I type
"./configure --enable-shared"
The error is "unknown system pc-msys, edit the configure".



--
View this message in context: 
http://ffmpeg-users.933282.n4.nabble.com/Compiling-ffmpeg-with-libx264-tp4674076p4674091.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-15 Thread Davood Falahati
I have not compiled FFMPEG for android using toolchain, however, I had a
tough time doing the same with opencv-JNI. This question, asked in
stackoverflow might help you.
http://stackoverflow.com/questions/34246265/opencv-ann-mlp-training-in-android

I read your ndk building procedure, don't you point Application.mk and
Android.mk files to your toolchain? I mean $NDK-PATH/ndk-build ? Are you
using gradle?


Davood Falahati,

Isfahan University of Technology.
d.falahati.1...@ieee.org

Every 3000 Sheets of paper costs us a tree.. Save trees... Conserve
Trees. Don't print this email or any files unless you really need to!

On Fri, Jan 15, 2016 at 2:21 AM, Marco Pracucci  wrote:

> I successfully build and run in production ffmpeg on Android (arm and x86)
> compiled with Android NDK's gcc. Recently, Android deprecated gcc and is
> pushing every dev to migrate to clang.
>
> I'm getting some issues while compiling ffmpeg with Android NDK's clang and
> this is the first one I encounter:
> *GNU assembler not found, install/update gas-preprocessor*
>
> Despite the message, looks that error is more subtle, because it fails
> while running "check_as" but if I run the same exact check command on the
> terminal, *it works*.
>
> Below you can find the full instructions to reproduce it (it fixes with
> --disable-asm but with gcc I'm able to compile with asm support).
>
> Versions:
> - ffmpeg 2.8.4
> - Compile on OSX 10.9.5
>
> *Download Android NDK*
> You can download the Android NDK from here:
> ​http://developer.android.com/ndk/downloads/index.html
>
> *Install Android NDK*
> Follow the installation instructions in the download and then set the
> environment variable NDK_DIR to the directory where you extracted the NDK.
>
> *Build NDK standalone toolchain*
> Define an environment variable TOOLCHAIN_DIR with the full path of the
> directory where the standalone toolchain should be installed. For example:
> export TOOLCHAIN_DIR=/tmp/toolchain
>
> Then build the toolchain:
> ${NDK_DIR}/build/tools/make-standalone-toolchain.sh \
> --toolchain=arm-linux-androideabi-clang3.6 \
> --platform=android-9 \
> --install-dir=${TOOLCHAIN_DIR}
>
> *Compile ffmpeg*
> I use the following configure script:
> ./configure \
> --enable-shared \
> --disable-static \
> --enable-gpl \
> --enable-version3 \
> --enable-nonfree \
> --disable-runtime-cpudetect \
> --disable-all \
> --disable-doc \
> --enable-avcodec \
> --enable-avformat \
> --enable-avutil \
> --enable-swresample \
> --disable-w32threads \
> --disable-os2threads \
> --disable-network \
> --disable-dxva2 \
> --disable-vaapi \
> --disable-vda \
> --disable-vdpau \
> --enable-protocol="file" \
> --enable-decoder="aac" \
> --enable-decoder="cook" \
> --enable-decoder="flac" \
> --enable-decoder="mp3" \
> --enable-decoder="mp3adu" \
> --enable-decoder="mp3adufloat" \
> --enable-decoder="mp3float" \
> --enable-decoder="mp3on4" \
> --enable-decoder="mp3on4float" \
> --enable-decoder="pcm_alaw" \
> --enable-decoder="pcm_bluray" \
> --enable-decoder="pcm_dvd" \
> --enable-decoder="pcm_f32be" \
> --enable-decoder="pcm_f32le" \
> --enable-decoder="pcm_f64be" \
> --enable-decoder="pcm_f64le" \
> --enable-decoder="pcm_lxf" \
> --enable-decoder="pcm_mulaw" \
> --enable-decoder="pcm_s16be" \
> --enable-decoder="pcm_s16be_planar" \
> --enable-decoder="pcm_s16le" \
> --enable-decoder="pcm_s16le_planar" \
> --enable-decoder="pcm_s24be" \
> --enable-decoder="pcm_s24daud" \
> --enable-decoder="pcm_s24le" \
> --enable-decoder="pcm_s24le_planar" \
> --enable-decoder="pcm_s32be" \
> --enable-decoder="pcm_s32le" \
> --enable-decoder="pcm_s32le_planar" \
> --enable-decoder="pcm_s8" \
> --enable-decoder="pcm_s8_planar" \
> --enable-decoder="pcm_u16be" \
> --enable-decoder="pcm_u16le" \
> --enable-decoder="pcm_u24be" \
> --enable-decoder="pcm_u24le" \
> --enable-decoder="pcm_u32be" \
> --enable-decoder="pcm_u32le" \
> --enable-decoder="pcm_u8" \
> --enable-decoder="pcm_zork" \
> --enable-decoder="ra_144" \
> --enable-decoder="ra_288" \
> --enable-decoder="ralf" \
> --enable-decoder="vorbis" \
> --enable-decoder="wmav1" \
> --enable-decoder="wmav2" \
> --enable-decoder="wmavoice" \
> --enable-decoder="wmalossless" \
> --enable-decoder="wmapro" \
> --enable-parser="aac" \
> --enable-parser="flac" \
> --enable-parser="mpegaudio" \
> --enable-parser="vorbis" \
> --enable-demuxer="aac" \
> --enable-demuxer="aiff" \
> --enable-demuxer="asf" \
> --enable-demuxer="flac" \
> --enable-demuxer="ogg" \
> --enable-demuxer="mp3" \
> --enable-demuxer="mov" \
> --enable-demuxer="pcm_alaw" \
> --enable-demuxer="pcm_f32be" \
> --enable-demuxer="pcm_f32le" \
> --enable-demuxer="pcm_f64be" \
> --enable-demuxer="pcm_f64le" \
> --enable-demuxer="pcm_mulaw" \
> --enable-demuxer="pcm_s16be" \
> --enable-demuxer="pcm_s16le" \
> --enable-demuxer="pcm_s24be" \
> --enable-demuxer="pcm_s24le" \
> --enable-demuxer="pcm_s32be" \
> --enable-demuxer="pcm_s32le" \
> --enable-demuxer="pcm_s8" \
> --enable-demuxer="pcm_u16be" \
> --enable-dem

Re: [FFmpeg-user] Let ffmpeg pick correct fps from stdin

2016-01-15 Thread Jean-Marie Baran



On 15/01/2016 10:52, Moritz Barsnick wrote:

On Fri, Jan 15, 2016 at 10:11:09 +0100, Moritz Barsnick wrote:

Would it be worth an attempt to add an option to ffmpeg to take the
timestamps from "arrival time" (time of day)? I'll have a look at this
- sometime.

Oh, sorry, that option does exist: "-use_wallclock_as_timestamps".

If I record my incoming MJPEG multipart/alternative HTTP stream with
"-re -use_wallclock_as_timestamps 1", the timestamps look okay, though
astonishingly quite strictly aligned to full seconds. (My stream can
vary between 1 fps and 5 fps.)


Using "-re -use_wallclock_as_timestamps 1" seems right, but sadly it 
trigger some «Non-monotonous DTS» warning message, and the resulting 
video now plays too slowly. But this time the fps recorded is 16.52 fps 
which is better than the 25 of before :


ffmpeg -y -thread_queue_size 1024 -f s16le -ar -i 
tcp://localhost:5419?listen=1 -re -use_wallclock_as_timestamps 1 -f 
mjpeg -thread_queue_size 1024 -i -c:v libx264 -preset veryfast -crf 28 
-vsync 0 -strict -2 -acodec aac -threads 0 -ar 44100 file.mp4


WARNING: linker: libx264.so has text relocations. This is wasting memory 
and prevents security hardening. Please fix.

ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (GCC)
  configuration: --arch=arm --target-os=android --enable-cross-compile
  libavutil  54. 31.100 / 54. 31.100
  libavcodec 56. 60.100 / 56. 60.100
  libavformat56. 40.101 / 56. 40.101
  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
  libpostproc53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, s16le, from 'tcp://localhost:32112?listen=1':
  Duration: N/A, bitrate: 705 kb/s
Stream #0:0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[mjpeg @ 0xb6427c00] Changeing bps to 8
Input #1, mjpeg, from 'pipe:':
  Duration: N/A, start: 1452870978.041862, bitrate: N/A
Stream #1:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 
720x480 [SAR 1:1 DAR 3:2], 25 tbr, 1200k tbn, 25 tbc

No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0xb6428800] using SAR=1/1
[libx264 @ 0xb6428800] using cpu capabilities: ARMv6 NEON
[libx264 @ 0xb6428800] profile High, level 3.0
[libx264 @ 0xb6428800] 264 - core 148 - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: 
cabac=1 ref=1 deblock=1:-1:-1 analyse=0x3:0x113 me=hex subme=2 psy=1 
psy_rd=1.00:0.15 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 
lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf 
mbtree=1 crf=28.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 
aq=1:1.00

Output #0, mp4, to '/storage/emulated/0/DCIM/AMA/NP/record/./test.mp4':
  Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), 
yuvj420p(pc), 720x480 [SAR 1:1 DAR 3:2], q=-1--1, 25 fps, 12800 tbn, 25 tbc

Metadata:
  encoder : Lavc56.60.100 libx264
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono, 
fltp, 128 kb/s

Metadata:
  encoder : Lavc56.60.100 aac
Stream mapping:
  Stream #1:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
[libx264 @ 0xb6428800] non-strictly-monotonic PTS
Last message repeated 1 times
frame=8 fps=0.0 q=0.0 size=   0kB time=00:00:00.00 bitrate=N/A
[libx264 @ 0xb6428800] non-strictly-monotonic PTS
Last message repeated 1 times
frame=   16 fps= 15 q=0.0 size=   0kB time=00:00:00.00 bitrate=N/A
[libx264 @ 0xb6428800] non-strictly-monotonic PTS
frame=   24 fps= 15 q=32.0 size=   0kB time=00:00:00.12 bitrate=   
3.2kbits/s
[mp4 @ 0xb643d600] Non-monotonous DTS in output stream 0:0; previous: 
2560, current: 2560; changing to 2561. This may result in incorrect 
timestamps in the output file.

[libx264 @ 0xb6428800] non-strictly-monotonic PTS
Last message repeated 1 times
[mp4 @ 0xb643d600] Non-monotonous DTS in output stream 0:0; previous: 
6656, current: 6656; changing to 6657. This may result in incorrect 
timestamps in the output file.
[libx264 @ 0xb6428800] non-strictly-monotonic PTS q=30.0 size= 43kB 
time=00:00:00.68 bitrate= 521.5kbits/s

Last message repeated 1 times
[mp4 @ 0xb643d600] Non-monotonous DTS in output stream 0:0; previous: 
11776, current: 11776; changing to 11777. This may result in incorrect 
timestamps in the output file.

[libx264 @ 0xb6428800] non-strictly-monotonic PTS
[mp4 @ 0xb643d600] Non-monotonous DTS in 

Re: [FFmpeg-user] Reading directly from .iso DVD image

2016-01-15 Thread Etienne Desautels

On 2016-01-13, at 11:22, Nicolas George wrote:

> Le duodi 22 nivôse, an CCXXIV, Etienne Desautels a écrit :
>> After more tests I hit some problems with some videos:
>> ffmpeg -hide_banner  -i /mnt/archivescollection/test_file.iso -f null -af 
>> ebur128=peak=true:framelog=verbose -vf idet,cropdetect=0.12:2:1 -y /dev/null 
>> /mnt/archivescollection/test_file.iso: Invalid data found when processing 
>> input
> 
> The ".iso" format is not a multimedia format, it is the octet-per-octet
> image of a ISO 9660 / UDF file system with files in it. Since most of the
> payload is MPEG-PS, a format without global headers and enough resync code,
> reading the file directly will likely find some near the beginning and treat
> the rest of the data as garbage, but that is pure luck.
> 
> If you mount the filesystem, you can observe that the payload is fragmented
> in large-but-not-huge files, and the payload in these file contains program
> and menus together, possibly out of order.
> 
> There is a script in the tools directory that can generate a concat script
> file for a given DVD title, with quite a few limitations. It could be
> extended to work with ISO images from the outside.

Hi Nicolas,

I already know all that, partly thanks to you and I already use dvd2concat. 
But, as I have written, by accident I passed an .iso file directly to ffmpeg 
and it works. It was a surprise for me. I didn't did a lot of tests, but I can 
extract images, convert some parts with seek, etc. I didn't check the time 
exactitude of those extractions. ffprobe reports the correct complete time of 
the DVD (as lsdvd). But, for at least one .iso, I have an error that I don't 
have when mounting the .iso manually.

I have searched ffmpeg's code to check for .iso support but didn't found 
anything? But I don't know well the ffmpeg's code so my search is not optimal.

I decided to continue to mount .iso manually and using dvd2concat for 
production.

Regards,

Etienne Desautels

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


Re: [FFmpeg-user] Arvato proxy file

2016-01-15 Thread Bouke (VideoToolShed)
- Original Message - 
From: "Carl Eugen Hoyos" 

To: 
Sent: Friday, January 15, 2016 11:06 AM
Subject: Re: [FFmpeg-user] Arvato proxy file



Bouke (VideoToolShed  videotoolshed.com> writes:


This file comes from an Arvato asset management system.


Does the Arvato asset management system allow
playback of the file 39014.mxf you uploaded?


Hi Carl,
I'm not the one behind that system. I've asked the guy who is if he can 
confirm this is indeed 'good'.
(It was created for me to toy with, so I take it this is indeed 'as it is', 
but you never know...)
I'll let you know when I've got a definite answer. Here, direct or on the 
Develop list?


Thanks for looking into it!
Bouke



Carl Eugen

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




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

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


[FFmpeg-user] mp4 encode 1 frame out of sync

2016-01-15 Thread Kevin Wells
Hi, I am encoding a Quicktime Prores file to mp4 using the below settings. In 
the resulting file, the audio is 1 frame out of sync, audio comes in 1 frame 
early, cutting off the first frame and adding 1 silent frame to the end (see 
attached screen grab)."F:\ffmpeg 
copy\ffmpeg-20160115-git-b58cfa6-win32-static\ffmpeg-20160115-git-b58cfa6-win32-static\bin\ffmpeg.exe"
 -i small_test.mov -c:v libx264 -crf 23 -preset medium -vsync 1 -pix_fmt 
yuv420p -c:a aac -strict -2 -b:a 128k -y"\\10.0.1.103\Studio Canal 
1_1\KEVS_TEMP\small_test.mp4" -report
And here is the output:"F:\ffmpeg 
copy\ffmpeg-20160115-git-b58cfa6-win32-static\ffmpeg-20160115-git-b58cfa6-win32-static\bin\ffmpeg.exe"
 -i small_test.mov -c:v libx264 -crf 23 -preset medium -vsync 1 -pix_fmt 
yuv420p -c:a aac -strict -2 -b:a 128k -y"\\10.0.1.103\Studio Canal 
1_1\KEVS_TEMP\small_test.mp4" -report
ffmpeg started on 2016-01-15 at 12:54:22
Report written to "ffmpeg-20160115-125422.log"
ffmpeg version N-77870-gb58cfa6 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype 
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger 
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid 
--enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil  55. 13.100 / 55. 13.100
  libavcodec 57. 22.100 / 57. 22.100
  libavformat57. 21.101 / 57. 21.101
  libavdevice57.  0.100 / 57.  0.100
  libavfilter 6. 24.100 /  6. 24.100
  libswscale  4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc54.  0.100 / 54.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0029ea60] ignoring 'frma' atom of 'in24', stream 
format is 'in24'
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small_test.mov':
  Metadata:
major_brand : qt
minor_version   : 537199360
compatible_brands: qt
creation_time   : 2016-01-15 11:40:41
com.apple.finalcutstudio.media.uuid: 3BA55888-679C-4D73-8159-6EBA831BB0EC
com.apple.quicktime.player.movie.audio.gain: 1.00
com.apple.quicktime.player.movie.audio.treble: 0.00
com.apple.quicktime.player.movie.audio.bass: 0.00
com.apple.quicktime.player.movie.audio.balance: 0.00
com.apple.quicktime.player.movie.audio.pitchshift: 0.00
com.apple.quicktime.player.movie.audio.mute:
com.apple.quicktime.player.movie.visual.brightness: 0.00
com.apple.quicktime.player.movie.visual.color: 1.00
com.apple.quicktime.player.movie.visual.tint: 0.00
com.apple.quicktime.player.movie.visual.contrast: 1.00
com.apple.quicktime.player.version: 7.6.6 (7.6.6)
com.apple.quicktime.version: 7.7.3 (2943) 0x7738000 (Mac OS X, 10.11.2, 
15C50)
timecode: 00:00:00:00
  Duration: 00:00:05.01, start: 0.00, bitrate: 183947 kb/s
Stream #0:0(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, 
s32 (24 bit), 2304 kb/s (default)
Metadata:
  creation_time   : 2016-01-15 11:40:41
  handler_name: Apple Alias Data Handler
Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
  creation_time   : 2016-01-15 11:40:41
  handler_name: Apple Alias Data Handler
  timecode: 00:00:00:00
Stream #0:2(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709), 
1920x1080, 174712 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 
23976 tbc (default)
Metadata:
  creation_time   : 2016-01-15 11:44:53
  handler_name: Apple Alias Data Handler
  encoder : Apple ProRes 422 HQ
  timecode: 00:00:00:00
[libx264 @ 00a1b0e0] using SAR=1/1
[libx264 @ 00a1b0e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX 
LZCNT
[libx264 @ 00a1b0e0] profile High, level 4.0
[libx264 @ 00a1b0e0] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 
psy_rd=1.00:0.00mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 
deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1b_bias=0 direct=1 weightb=

Re: [FFmpeg-user] Let ffmpeg pick correct fps from stdin

2016-01-15 Thread Moritz Barsnick
On Fri, Jan 15, 2016 at 09:56:43 +, Carl Eugen Hoyos wrote:
> You should not use the input option "-r" unless you 
> know exactly what you do, always use "-framerate".

I don't think all demuxers have implemented "-framerate" yet:

$ ffmpeg -framerate 1 -probesize 100k -i https://localhost/cgi-bin/nph-mjprox?1
ffmpeg version N-77840-gcc538e9 Copyright (c) 2000-2016 the FFmpeg developers
  built with icc (ICC) 14.0.3 20140422
  configuration: --prefix=/usr/new/tools/video/install/ffmpeg/2016-01-14 
--cc=icc --cxx=icpc --enable-gpl --enable-version3 --enable-nonfree 
--disable-shared --enable-gnutls --enable-libcdio --enable-libfreetype 
--enable-libx264 --enable-libvpx --enable-libmp3lame --enable-openal 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtwolame 
--enable-libopenjpeg --enable-librtmp --enable-libass --enable-libv4l2 
--enable-libvidstab --enable-libfdk-aac --enable-libsmbclient --enable-libquvi 
--enable-libzvbi --enable-libtesseract --enable-libzmq
  libavutil  55. 13.100 / 55. 13.100
  libavcodec 57. 22.100 / 57. 22.100
  libavformat57. 21.101 / 57. 21.101
  libavdevice57.  0.100 / 57.  0.100
  libavfilter 6. 23.100 /  6. 23.100
  libswscale  4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc54.  0.100 / 54.  0.100
Option framerate not found.
$ ffmpeg -r 1 -probesize 100k -i https://localhost/cgi-bin/nph-mjprox?1
ffmpeg version N-77840-gcc538e9 Copyright (c) 2000-2016 the FFmpeg developers
  built with icc (ICC) 14.0.3 20140422
  configuration: --prefix=/usr/new/tools/video/install/ffmpeg/2016-01-14 
--cc=icc --cxx=icpc --enable-gpl --enable-version3 --enable-nonfree 
--disable-shared --enable-gnutls --enable-libcdio --enable-libfreetype 
--enable-libx264 --enable-libvpx --enable-libmp3lame --enable-openal 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtwolame 
--enable-libopenjpeg --enable-librtmp --enable-libass --enable-libv4l2 
--enable-libvidstab --enable-libfdk-aac --enable-libsmbclient --enable-libquvi 
--enable-libzvbi --enable-libtesseract --enable-libzmq
  libavutil  55. 13.100 / 55. 13.100
  libavcodec 57. 22.100 / 57. 22.100
  libavformat57. 21.101 / 57. 21.101
  libavdevice57.  0.100 / 57.  0.100
  libavfilter 6. 23.100 /  6. 23.100
  libswscale  4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc54.  0.100 / 54.  0.100
[mjpeg @ 0xb889280] Changing bps to 8
Input #0, mpjpeg, from 'https://localhost/cgi-bin/nph-mjprox?1':
  Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x480 
[SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn, 25 tbc
At least one output file must be specified

(Shouldn't is report "1 fps" instead of "25 fps" if I specify "-r 1" as
input option?)

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


[FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-15 Thread Marco Pracucci
I successfully build and run in production ffmpeg on Android (arm and x86)
compiled with Android NDK's gcc. Recently, Android deprecated gcc and is
pushing every dev to migrate to clang.

I'm getting some issues while compiling ffmpeg with Android NDK's clang and
this is the first one I encounter:
*GNU assembler not found, install/update gas-preprocessor*

Despite the message, looks that error is more subtle, because it fails
while running "check_as" but if I run the same exact check command on the
terminal, *it works*.

Below you can find the full instructions to reproduce it (it fixes with
--disable-asm but with gcc I'm able to compile with asm support).

Versions:
- ffmpeg 2.8.4
- Compile on OSX 10.9.5

*Download Android NDK*
You can download the Android NDK from here:
​http://developer.android.com/ndk/downloads/index.html

*Install Android NDK*
Follow the installation instructions in the download and then set the
environment variable NDK_DIR to the directory where you extracted the NDK.

*Build NDK standalone toolchain*
Define an environment variable TOOLCHAIN_DIR with the full path of the
directory where the standalone toolchain should be installed. For example:
export TOOLCHAIN_DIR=/tmp/toolchain

Then build the toolchain:
${NDK_DIR}/build/tools/make-standalone-toolchain.sh \
--toolchain=arm-linux-androideabi-clang3.6 \
--platform=android-9 \
--install-dir=${TOOLCHAIN_DIR}

*Compile ffmpeg*
I use the following configure script:
./configure \
--enable-shared \
--disable-static \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--disable-runtime-cpudetect \
--disable-all \
--disable-doc \
--enable-avcodec \
--enable-avformat \
--enable-avutil \
--enable-swresample \
--disable-w32threads \
--disable-os2threads \
--disable-network \
--disable-dxva2 \
--disable-vaapi \
--disable-vda \
--disable-vdpau \
--enable-protocol="file" \
--enable-decoder="aac" \
--enable-decoder="cook" \
--enable-decoder="flac" \
--enable-decoder="mp3" \
--enable-decoder="mp3adu" \
--enable-decoder="mp3adufloat" \
--enable-decoder="mp3float" \
--enable-decoder="mp3on4" \
--enable-decoder="mp3on4float" \
--enable-decoder="pcm_alaw" \
--enable-decoder="pcm_bluray" \
--enable-decoder="pcm_dvd" \
--enable-decoder="pcm_f32be" \
--enable-decoder="pcm_f32le" \
--enable-decoder="pcm_f64be" \
--enable-decoder="pcm_f64le" \
--enable-decoder="pcm_lxf" \
--enable-decoder="pcm_mulaw" \
--enable-decoder="pcm_s16be" \
--enable-decoder="pcm_s16be_planar" \
--enable-decoder="pcm_s16le" \
--enable-decoder="pcm_s16le_planar" \
--enable-decoder="pcm_s24be" \
--enable-decoder="pcm_s24daud" \
--enable-decoder="pcm_s24le" \
--enable-decoder="pcm_s24le_planar" \
--enable-decoder="pcm_s32be" \
--enable-decoder="pcm_s32le" \
--enable-decoder="pcm_s32le_planar" \
--enable-decoder="pcm_s8" \
--enable-decoder="pcm_s8_planar" \
--enable-decoder="pcm_u16be" \
--enable-decoder="pcm_u16le" \
--enable-decoder="pcm_u24be" \
--enable-decoder="pcm_u24le" \
--enable-decoder="pcm_u32be" \
--enable-decoder="pcm_u32le" \
--enable-decoder="pcm_u8" \
--enable-decoder="pcm_zork" \
--enable-decoder="ra_144" \
--enable-decoder="ra_288" \
--enable-decoder="ralf" \
--enable-decoder="vorbis" \
--enable-decoder="wmav1" \
--enable-decoder="wmav2" \
--enable-decoder="wmavoice" \
--enable-decoder="wmalossless" \
--enable-decoder="wmapro" \
--enable-parser="aac" \
--enable-parser="flac" \
--enable-parser="mpegaudio" \
--enable-parser="vorbis" \
--enable-demuxer="aac" \
--enable-demuxer="aiff" \
--enable-demuxer="asf" \
--enable-demuxer="flac" \
--enable-demuxer="ogg" \
--enable-demuxer="mp3" \
--enable-demuxer="mov" \
--enable-demuxer="pcm_alaw" \
--enable-demuxer="pcm_f32be" \
--enable-demuxer="pcm_f32le" \
--enable-demuxer="pcm_f64be" \
--enable-demuxer="pcm_f64le" \
--enable-demuxer="pcm_mulaw" \
--enable-demuxer="pcm_s16be" \
--enable-demuxer="pcm_s16le" \
--enable-demuxer="pcm_s24be" \
--enable-demuxer="pcm_s24le" \
--enable-demuxer="pcm_s32be" \
--enable-demuxer="pcm_s32le" \
--enable-demuxer="pcm_s8" \
--enable-demuxer="pcm_u16be" \
--enable-demuxer="pcm_u16le" \
--enable-demuxer="pcm_u24be" \
--enable-demuxer="pcm_u24le" \
--enable-demuxer="pcm_u32be" \
--enable-demuxer="pcm_u32le" \
--enable-demuxer="rm" \
--enable-demuxer="wav" \
--enable-cross-compile \
--toolchain=clang-usan \
--cross-prefix=${TOOLCHAIN_DIR}/bin/arm-linux-androideabi- \
--cc=${TOOLCHAIN_DIR}/bin/arm-linux-androideabi-clang \
--cxx=${TOOLCHAIN_DIR}/bin/arm-linux-androideabi-clang \
--sysroot=${TOOLCHAIN_DIR}/sysroot \
--target-os=android \
--extra-cflags="-I${TOOCHAIN_DIR}/sysroot/usr/include -ffast-math
-funroll-loops -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16" \
--extra-ldflags="-L${TOOCHAIN_DIR}/sysroot/usr/lib" \
--arch="arm" \
--logfile="/tmp/ffmpeg.log"

*The configure script fails with*:
GNU assembler not found, install/update gas-preprocessor

It fails while running check_as (extracted from the fail of ffmpeg.log):
check_as
BEGIN /var/folders/zn/45tzvzd15tnfvp4g5847x2dmgn/Tffconf.a7

Re: [FFmpeg-user] Arvato proxy file

2016-01-15 Thread Carl Eugen Hoyos
Bouke (VideoToolShed  videotoolshed.com> writes:

> This file comes from an Arvato asset management system.

Does the Arvato asset management system allow 
playback of the file 39014.mxf you uploaded?

> can someone please post this on the Develop list?

Thank you for uploading the sample and sending this 
email, no need to post on the development mailing list.

Carl Eugen

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


Re: [FFmpeg-user] Let ffmpeg pick correct fps from stdin

2016-01-15 Thread Carl Eugen Hoyos
Jean-Marie Baran  ama.bzh> writes:

> > The mjpeg demuxer understands the "framerate" option,
> > you can use it to specify a framerate.
> >
> Just to make sure, this means that I have no other choice 
> than to specify "-r myfps" before the input video stream ?

You should not use the input option "-r" unless you 
know exactly what you do, always use "-framerate".

Carl Eugen

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


Re: [FFmpeg-user] Let ffmpeg pick correct fps from stdin

2016-01-15 Thread Moritz Barsnick
On Fri, Jan 15, 2016 at 10:11:09 +0100, Moritz Barsnick wrote:
> Would it be worth an attempt to add an option to ffmpeg to take the
> timestamps from "arrival time" (time of day)? I'll have a look at this
> - sometime.

Oh, sorry, that option does exist: "-use_wallclock_as_timestamps".

If I record my incoming MJPEG multipart/alternative HTTP stream with
"-re -use_wallclock_as_timestamps 1", the timestamps look okay, though
astonishingly quite strictly aligned to full seconds. (My stream can
vary between 1 fps and 5 fps.)

(Why is "-use_wallclock_as_timestamps" documented as an integer [0,
INT_MAX-1] when it's use as a bool? I will submit a documentation
patch and an optional source patch to make it a bool.)

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


Re: [FFmpeg-user] Let ffmpeg pick correct fps from stdin

2016-01-15 Thread Moritz Barsnick
On Fri, Jan 15, 2016 at 09:32:17 +0100, Jean-Marie Baran wrote:
> Just to make sure, this means that I have no other choice than to 
> specify "-r myfps" before the input video stream ?

Which is annoying if you don't know the frame rate or if it's VFR.

Would it be worth an attempt to add an option to ffmpeg to take the
timestamps from "arrival time" (time of day)? I'll have a look at this
- sometime.

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


Re: [FFmpeg-user] Compiling ffmpeg with libx264

2016-01-15 Thread Moritz Barsnick
On Thu, Jan 14, 2016 at 07:14:26 -0500, Krishnan Unni wrote:
> successfully. But when I try to compile x264 lib based on the guide
> provided in ffmpeg wiki it's failing saying "could not identify os"

I can't even find that string or a similar one in the libx264 source
tree. (Using 0c21480 from 20150901.)

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


Re: [FFmpeg-user] Let ffmpeg pick correct fps from stdin

2016-01-15 Thread Jean-Marie Baran



Input #1, mjpeg, from 'pipe:':
Duration: N/A, bitrate: N/A
  Stream #1:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown),
720x480 [SAR 1:1 DAR 3:2], 25 tbr, 1200k tbn, 25 tbc

mjpeg has no timestamps and therefore no framerate,
25fps is the default.
The mjpeg demuxer understands the "framerate" option,
you can use it to specify a framerate.

Just to make sure, this means that I have no other choice than to 
specify "-r myfps" before the input video stream ?


--
*Jean-Marie Baran*

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


Re: [FFmpeg-user] [FFMPEG] Audio/Video Syncing

2016-01-15 Thread Guillermo Martinez

Hi Carl,

Good afternoon.

Thank you very much for the reply.

On 1/13/2016 9:49 PM, Carl Eugen Hoyos wrote:

Guillermo Martinez <94dlve1izy52e5t  gmail.com> writes:

ffmpeg -y -ihttp://192.168.0.11:8090/VIDEO_CAM1.mpg  
-itsoffset 1.0 -ihttp://192.168.0.11:8090/AUDIO.mp2  
-map 0:0 -map 1:0 test.mp4

Complete, uncut console output missing.
Sorry about that. The following are console outputs from the client with 
and without the "*itsoffset*" option:

==
*1. **ffmpeg -y -i **http://192.168.0.11:8090/VIDEO_CAM1.mpg**-i 
**http://192.168.0.11:8090/AUDIO.mp2**-map 0:0 -map 0:0 -t 15 test.mp4 
2> ffmpeg_client_without_itsoffset.txt*

- without the "itsoffset" option
- 
https://www.dropbox.com/s/hfo2newv7x4o12t/ffmpeg_client_without_itsoffset.txt?dl=0


***2. **ffmpeg -y -i 
**http://192.168.0.11:8090/VIDEO_CAM1.mpg**-itsoffset 1.0 -i 
**http://192.168.0.11:8090/AUDIO.mp2**-map 0:0 -map 0:0 -t 15 test.mp4 
2> ffmpeg_client_with_itsoffset.txt*

- with the "itsoffset" option
- 
https://www.dropbox.com/s/dirfkb3yndwtjni/ffmpeg_client_with_itsoffset.txt?dl=0

==

I would also like to share my "*ffserver.conf*" and "*input ffmpeg 
commands*"

==
*1. ffserver.conf
* https://www.dropbox.com/s/cf3kgyfimq6dgcr/ffserver.conf?dl=0*
*
*2. ffmpeg input commands (to ffserver)*
https://www.dropbox.com/s/mdl5gufzuc59wmz/start.ffmpeg.sh?dl=0
==

Hope this helps in getting further insight.

Unfortunately, I suspect your http sources do not provide timestamps, 
so there is no easy solution;-( 

I see. The stream that seems to always start at *dts=0* is the audio stream.

Please refer to the following outputs of ffprobe:
==
*1. ffprobe -i http://192.168.0.11:8090:AUDIO.mp2 -show_frames*
- https://www.dropbox.com/s/xb5t88rc3vdyc0y/ffprobe_audio.txt?dl=0
- pkt_dts and pkt_pts always start at 0

*2. ffprobe -i http://192.168.0.11:8090:VIDEO_CAM1.mpg -show_frames*
- https://www.dropbox.com/s/ywxgznv8xjbqozj/ffprobe_video.txt?dl=0
- pkt_dts and pkt_pts always start non-zero
==

I think that the solution is to add timestamp to the audio stream. But I 
already tried
using the "*use_wallclock_as_timestamp*" option in ffmpeg audio feed. 
Nothing happened.

Is there any other way to do this?

I am very sorry for the inconvenience. I am not much of a programmer, 
but more
of an enthusiast. I am using FFmpeg in my home for personal security and 
surveillance.


Regards,

Guillermo Martinez


Carl Eugen

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




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user