i have to append video with a audio and merge the output with anther video mp4 i use this code to append video with audio
ffmpeg -i "out1.mp4" -i "desc1.mp3" -c:v copy -c:a aac -strict experimental "output2.mp4"
its work in windows but in my server lunix i have this error
root@ns:~# ffmpeg -i /var/www/hespress/17/out1.mp4 -i /var/www/hespress/17/desc1.mp3 -c:v copy -c:a aac -strict experimental /var/www/hespress/17/output2.mp4
ffmpeg version 0.8.20-6:0.8.20-0+deb7u1, Copyright (c) 2000-2014 the Libav developers
built on Jan 19 2017 11:13:36 with gcc 4.7.2
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/hespress/17/out1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf53.21.1
Duration: 00:00:20.03, start: 0.000000, bitrate: 1374 kb/s
Stream #0.0(und): Video: h264 (Main), yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], 1371 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
[mp3 @ 0xa06c40] max_analyze_duration reached
Input #1, mp3, from '/var/www/hespress/17/desc1.mp3':
Metadata:
encoder : Lavf53.21.1
Duration: 00:00:19.53, start: 0.000000, bitrate: 192 kb/s
Stream #1.0: Audio: mp3, 44100 Hz, mono, s16, 192 kb/s
Unrecognized option 'c:v'
Failed to set value 'copy' for option 'c:v'
when i went to merge two file i use this code
ffmpeg -i intro.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts '.$dossier.'/intermediate1.ts
in windows its work but in server debian i have this error
root@ns205125:~# ffmpeg -i /var/www/hespress/intro.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /var/www/hespress/17/intermediate1.ts
ffmpeg version 0.8.20-6:0.8.20-0+deb7u1, Copyright (c) 2000-2014 the Libav developers
built on Jan 19 2017 11:13:36 with gcc 4.7.2
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
[aac @ 0x3938ba0] Input buffer exhausted before END element found
Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/hespress/intro.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2017-03-27 23:03:04
Duration: 00:00:12.92, start: 0.000000, bitrate: 2598 kb/s
Stream #0.0(eng): Video: h264 (Baseline), yuv420p, 1280x720, 2479 kb/s, 30 fps, 30 tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 2017-03-27 23:03:04
Stream #0.1(eng): Audio: aac, 48000 Hz, mono, s16, 127 kb/s
Metadata:
creation_time : 2017-03-27 23:03:04
Unrecognized option 'c'
Failed to set value 'copy' for option 'c'
root@ns205125:~#