I too have the same problem. In the previous version, I could trim mp4
files with pcm audio, but not 4.1. MP4 files with pcm audio are found
in most high end cameras and as such should be supported, even though it
may not be part of the official mp4 spec.
wwaag
On 12/17/2018 2:16 PM, Chris wrote:
ffmpeg -y -i "D:\Videos\Trains\December_6_2018_San_Jose\C0061.MP4" -crf 1
-c:v libx264 -pix_fmt yuv420p -s 1280x720 -r 59.94 -vf
eq=gamma=0.83,lutyuv=y='clip(val,26,220)' -c:a copy processed.mp4
Program output:
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181017
configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab
--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex
--enable-libxvid --enable-libaom --enable-libmfx --enable-amf
--enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
--enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'D:\Videos\Trains\December_6_2018_San_Jose\C0061.MP4':
Metadata:
major_brand : XAVC
minor_version : 16785407
compatible_brands: XAVCmp42iso2
creation_time : 2018-12-06T22:39:45.000000Z
Duration: 00:00:59.06, start: 0.000000, bitrate: 51930 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709/bt709/iec61966-2-4), 1920x1080 [SAR 1:1 DAR 16:9], 49901 kb/s, 59.94 fps,
59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
creation_time : 2018-12-06T22:39:45.000000Z
handler_name : Video Media Handler
encoder : AVC Coding
Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo,
s16, 1536 kb/s (default)
Metadata:
creation_time : 2018-12-06T22:39:45.000000Z
handler_name : Sound Media Handler
Stream #0:2(und): Data: none (rtmd / 0x646D7472), 491 kb/s (default)
Metadata:
creation_time : 2018-12-06T22:39:45.000000Z
handler_name : Timed Metadata Media Handler
timecode : 00:41:58:28
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx264 @ 000001e4d07d3b00] using SAR=1/1
[libx264 @ 000001e4d07d3b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX
[libx264 @ 000001e4d07d3b00] profile High, level 3.2, 4:2:0, 8-bit
[libx264 @ 000001e4d07d3b00] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC
codec - Copyleft 2003-2018 - 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.00 mixed_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=12 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0
rc_lookahead=40 rc=crf mbtree=1 crf=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
ip_ratio=1.40 aq=1:1.00
[mp4 @ 000001e4d10100c0] Could not find tag for codec pcm_s16be in stream #1,
codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Error initializing output stream 0:0 --
Conversion failed!
-----Original Message-----
From: Kieran O Leary <[email protected]>
To: FFmpeg user questions <[email protected]>
Sent: Mon, Dec 17, 2018 1:30 pm
Subject: Re: [FFmpeg-user] Copy Audio
On Mon, Dec 17, 2018 at 9:16 PM Chris <[email protected]>
wrote:
Today I upgraded to ffmpeg v 4.1. The following code used to work but no
longer does. What is the fix?
Please post the full command line you used along with the full uncut
terminal output. The answer will most likely be in there.
Best,
Kieran.
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".