[FFmpeg-user] Intermittent error when segment files from concat
Tung Tran
tung.tran at v247.com
Mon Jan 16 22:52:09 EET 2017
Hello
I am trying to concat the segments files from previous transcoding (using
-ss option) and fragment it for hls, but sometime I got this error
*Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argumentStream mapping:*
but sometime it worked just fine, same command,
Please give me some hits how to make it more stable.
Thank you very much
Below is my command
/opt/ffmpeg/ffmpeg -i
'concat:/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_part0.3696.kbps.ts|/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_part1.3696.kbps.ts|/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_part2.3696.kbps.ts|/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_part3.3696.kbps.ts'
-c copy -hls_time 5 -hls_key_info_file
/farm/files/key/587d0488bb4262d21c8b4577.keyinfo -hls_playlist_type vod
-hls_segment_filename
'/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_3696kbps_%d.ts'
'/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_3696kbps.m3u8'
Log:
*ffmpeg stderr: ffmpeg version 3.2.2-static
http://johnvansickle.com/ffmpeg/ <http://johnvansickle.com/ffmpeg/>
Copyright (c) 2000-2016 the FFmpeg developers*
* built with gcc 5.4.1 (Debian 5.4.1-4) 20161202*
* configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gray --enable-libass --enable-libfreetype
--enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxvid --enable-libzimg*
* libavutil 55. 34.100 / 55. 34.100*
* libavcodec 57. 64.101 / 57. 64.101*
* libavformat 57. 56.100 / 57. 56.100*
* libavdevice 57. 1.100 / 57. 1.100*
* libavfilter 6. 65.100 / 6. 65.100*
* libswscale 4. 2.100 / 4. 2.100*
* libswresample 2. 3.100 / 2. 3.100*
* libpostproc 54. 1.100 / 54. 1.100*
*Input #0, mpegts, from
'concat:/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_part0.3696.kbps.ts|/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_part1.3696.kbps.ts|/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_part2.3696.kbps.ts|/farm/files/out/587d0488bb4262d21c8b4577/587d0488bb4262d21c8b4577_part3.3696.kbps.ts':*
* Duration: 00:00:44.06, start: 1.424067, bitrate: 86635 kb/s*
* Program 1 *
* Metadata:*
* service_name : Service01*
* service_provider: FFmpeg*
* Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc*
* Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F),
48000 Hz, stereo, fltp, 234 kb/s*
*[hls muxer @ 0x53f7800] no key URI specified in key info file*
*Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argumentStream mapping:*
---
Best regards,
*Tung Tran*
*UNO IPTV*
*V247 Enterprise Corp*Phone: 713.358.2257
9999 Bellaire Blvd., Ste. 1111* | *Houston, TX 77036
*tung.tran at V247.com | www.V247.com <http://www.v247.com/>*
More information about the ffmpeg-user
mailing list