[FFmpeg-user] Input from FIFO for Multiple Video Track
Axit Soni
aksprince2111 at gmail.com
Thu Jul 12 16:46:07 EEST 2018
Hi All,
I am creating Dual H264 Video Track inside Single MP4 File. For that I am
using following command.
- *ffmpeg -i fifo_1.264 -i fifo_2.264 -map 0 -map 1 -c copy -t 20
output.mp4 *
Command is working properly and Its Generating MP4 video with Two H264
Video Track.
But when I am seeing this video in VLC or FFPLAY, I can see Video Frame
Skipping. I can verify frame skipping by using Timer in generated video.
Timer in Video skipping frames from 6th Second to 11 Second.
Can Someone suggest me what I am doing wrong.
Please find attached logs. It may help.
--
*Thanks & Regards,*
*Axit Soni*
-------------- next part --------------
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.x (GCC) 20150123 (prerelease)
configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
WARNING: library configuration mismatch
avutil configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-shared --disable-static --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
avcodec configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-shared --disable-static --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
avformat configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-shared --disable-static --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
avdevice configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-shared --disable-static --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
avfilter configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-shared --disable-static --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
swscale configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-shared --disable-static --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
swresample configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-shared --disable-static --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
postproc configuration: --prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/ffmpeg-binary-android-master_new/build_scripts/build_dir --target-os=android --arch=arm64 --cross-prefix=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --enable-cross-compile --sysroot=/home/celeste/ffmpeg_openssl_libfreetype/ffmpeg_with_openssl_new/android-ndk-r15c/platforms/android-21/arch-arm64/ --pkg-config=/usr/bin/pkg-config --enable-pic --enable-shared --disable-static --enable-libfreetype --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-libx264 --enable-openssl --disable-doc
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, h264, from '/data/misc/qmmf/Recording_FIFO_1.264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuvj420p(pc, smpte170m, progressive), 1920x1080, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Input #1, h264, from '/data/misc/qmmf/Recording_FIFO_2.264':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: h264 (High), yuvj420p(pc, smpte170m, progressive), 640x480, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Output #0, mp4, to '/sdcard//HERO_UUID_1531401940.mp4':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (High) ([33][0][0][0] / 0x0021), yuvj420p(pc, smpte170m, progressive), 1920x1080, q=2-31, 25 fps, 25 tbr, 15360 tbn, 30 tbc
Stream #0:1: Video: h264 (High) ([33][0][0][0] / 0x0021), yuvj420p(pc, smpte170m, progressive), 640x480, q=2-31, 25 fps, 25 tbr, 15360 tbn, 30 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x7f95080800] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[h264 @ 0x7f9507f000] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[h264 @ 0x7f9507f600] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
StopRecording Call Comes.....-1.0 size= 7464kB time=00:00:15.36 bitrate=3979.3kbits/s speed=1.38x
s= 41 q=-1.0 q=-1.0 size= 7691kB time=00:00:15.83 bitrate=3979.2kbits/s speed=1.36x
frame= 600 fps= 38 q=-1.0 Lq=-1.0 size= 9740kB time=00:00:19.96 bitrate=3996.3kbits/s speed=1.26x
video:9730kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.111592%
More information about the ffmpeg-user
mailing list