Using:
I end up with:Code:ffmpeg -y -threads 8 -analyzeduration 100M -probesize 100M -i "h:\Outp ut\cut.m2ts" -map 0:1 -vn -filter_complex "aevalsrc=0:0:0:0:0:0::d=0.138:sample_ rate=48000[silence];[silence][0:a]concat=n=2:v=0:a=1[out]" -map [out] -c:a ac3 -ab 384000 -map_metadata -1 "H:\Output\iId_3_aid_4352_15_30_47_8910_01.ac3"
Problem there is the mismatch between "5.1(side)" and "5.1" does anyone know to tell ffmpeg to use the same layout that the input uses?Code:ffmpeg version N-58971-g945a440 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 11 2013 15:17:28 with gcc 4.8.2 (rev0, Built by MinGW-W64 project) configuration: --arch=x86_64 --prefix=/local64 --extra-cflags='-DPTW32_STATIC_LIB -DLIBTWOLAME_STATIC' --extra-libs='-lxml2 -lz -liconv -lws2_32 -lstdc++ -lpng -lm -lpthread -lwsock32' --disable-debug --enable-gpl--enable-version3 --enable-postproc --enable-w32threads --enable-runtime-cpudetect --enable-memalign-hack --disable-shared --enable-static --enable-avfilter --enable-bzlib --enable-zlib --enable-librtmp --enable-gnutls --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-libbluray --enable-libcaca --enable-libopenjpeg --enable-fontconfig --enable-libfreetype --enable-libass --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libsoxr --enable-libtwolame --enable-libutvideo --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvo-aacenc --enable-libopus --enable-libvidstab --enable-libvpx --enable-libxavs --enable-libx264 --enable-libxvid --enable-libzvbi libavutil 52. 58.100 / 52. 58.100 libavcodec 55. 45.100 / 55. 45.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 92.100 / 3. 92.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 000000000043f340] SEI type 1 size 56 truncated at 53 [h264 @ 000000000043f340] mmco: unref short failure Last message repeated 1 times [h264 @ 000000000043f340] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one [h264 @ 000000000043f340] SEI type 1 size 56 truncated at 53 Last message repeated 38 times Input #0, mpegts, from 'h:\Output\cut.m2ts': Duration: 00:00:30.11, start: 4292.050000, bitrate: 7719 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s [Parsed_aevalsrc_0 @ 000000000043d7a0] This syntax is deprecated. Use '|' to separate the list items. [ac3 @ 00000000070e41e0] ac3 files have exactly one stream Output #0, ac3, to 'H:\Output\iId_3_aid_4352_15_30_47_8910_01.ac3': Metadata: encoder : Lavf55.22.100 Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:1: Audio: ac3, 48000 Hz, 5.1, fltp, 384 kb/s Stream mapping: Stream #0:1 (ac3) -> concat:in1:a0 (graph 0) Stream #0:1 -> #0:0 (ac3 -> ac3) concat (graph 0) -> Stream #0:1 (ac3) Could not write header for output file #0 (incorrect codec parameters ?): Error number -22 occurred
btw. for those curious the 'filter_complex'-part encodes 138ms of silence and appends them before the original stream, which is used to compensate a 138ms delay in the input stream.
Cu Selur
Ps.: no, I do not want/can't to use another tool.
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
ffmpeg - Override/Set ISFT Metadata?
By Ruler2112 in forum Video ConversionReplies: 11Last Post: 27th Oct 2013, 03:01 -
set FFMPEG so it encode all but without the first 10 frames
By marcorocchini in forum Newbie / General discussionsReplies: 33Last Post: 26th Oct 2013, 20:08 -
How to set ReFrames in ffmpeg
By wycklk in forum Video ConversionReplies: 1Last Post: 26th Sep 2013, 09:31 -
Layout of mediainfo
By pooksahib in forum Newbie / General discussionsReplies: 4Last Post: 27th Feb 2012, 09:30 -
DVD with .layout and .LAY files
By Case in forum MacReplies: 1Last Post: 9th Sep 2010, 03:00