Re: [FFmpeg-user] one question about multiple stream in single file
>-Original Message- >From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of qw >Sent: Friday, 13 May 2016 23:59 >To: FFmpeg user questions >Subject: Re: [FFmpeg-user] one question about multiple stream in single file >Hi Moritz, >I'll appreciate if you can show me some sample clips with multiple video >streams, such as DVDs/Blu Rays that use it for various angles. >Thanks! >B.R. >Andrew 3D (stereoscopic) titles can have multiple video streams (LE, RE) although some are side-by-side (SBS) or some other form of anamorphic or interlaced presentation. At 2016-05-13 16:45:49, "Moritz Barsnick"wrote: >On Fri, May 13, 2016 at 12:02:52 +0800, qw wrote: >> I know there maybe multiple audio streams in single file, because each audio >> stream has different channel, quality or language. >> Is it likely that there is multiple video streams in single file? I haven't >> seen it before. > >It's totally possible. Whether it's likely depends on what you mean. I >can create a sample for you, and it will be 100 % likely to have two >video streams. ;-) [1] > >DVDs/Blu Rays use it for various angles. MPEG Transport Streams have >this when carrying multiple programs. HLS has this, but technically, >it's a bit like a playlist, and there are then several separate streams >each one layer deeper which resolve to e.g. segmented MPEG-TS with only >one video stream each. (ffmpeg's demuxer still presents you a multitude >of video and audio streams on the top level HLS.)) > >Nonetheless, if you're implementing something to handle streams, you'll >need to at least be able to ignore, better even select multiple video >streams. > >Moritz > >[1] ffmpeg -f lavfi -i testsrc -f lavfi -i testsrc2 -map 0 -map 1 -t 1 >~/tmp/test.mp4 ___ >ffmpeg-user mailing list >ffmpeg-user@ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >To unsubscribe, visit link above, or email >ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] drawtext 4:3 vs 16:9
Hi, I need help with filter_complex and drawtext. drawtext on aspect 4:3 are correct but drawtext on aspect 16:9 are stretched. thx for help ... ffmpeg -i C:\ffmpeg\test-4.3.mp4 -filter_complex "drawtext=fontfile=/Windows/Fonts/arial.ttf:text='0123456789':fontsize=20:fontcolor=white:x=10:y=10" -aspect 4/3 -map 0 -map -0:d -vcodec libx264 -acodec aac -y C:\ffmpeg\test-4.3-text.mp4 ffmpeg version N-79947-gcd244fa Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 24.100 / 55. 24.100 libavcodec 57. 41.102 / 57. 41.102 libavformat57. 36.100 / 57. 36.100 libavdevice57. 0.101 / 57. 0.101 libavfilter 6. 45.100 / 6. 45.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 0.101 / 2. 0.101 libpostproc54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\ffmpeg\test-4.3.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.36.100 Duration: 00:01:00.02, start: 0.00, bitrate: 1324 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1190 kb/s, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 4.0, fltp, 128 kb/s (default) Metadata: handler_name: SoundHandler [libx264 @ 0255ac60] using SAR=16/15 [libx264 @ 0255ac60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0255ac60] profile High, level 3.0 [libx264 @ 0255ac60] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - 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=6 lookahead_threads=1 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=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mp4 @ 02556e20] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times Output #0, mp4, to 'C:\ffmpeg\test-4.3-text.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.36.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 12800 tbn (default) Metadata: encoder : Lavc57.41.102 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, 4.0, fltp, 266 kb/s (default) Metadata: handler_name: SoundHandler encoder : Lavc57.41.102 aac Stream mapping: Stream #0:0 (h264) -> drawtext (graph 0) drawtext (graph 0) -> Stream #0:0 (libx264) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help frame= 1500 fps= 15 q=-1.0 Lsize= 10495kB time=00:01:00.01 bitrate=1432.7kbits/s speed=0.587x video:8495kB audio:1955kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.439394% ffmpeg -i C:\ffmpeg\test-16.9.mp4 -filter_complex "drawtext=fontfile=/Windows/Fonts/arial.ttf:text='0123456789':fontsize=20:fontcolor=white:x=10:y=10" -aspect 16/9 -map 0 -map -0:d -vcodec libx264 -acodec aac -y C:\ffmpeg\test-16.9-text.mp4 ffmpeg version N-79947-gcd244fa Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
[FFmpeg-user] FFmpeg get stuck when using Intel QSV based encoders
Good morning, I wanted to try the FFmpeg QSV based encoders so I setup what is written here: https://trac.ffmpeg.org/wiki/HWAccelIntro#IntelQSV for Linux systems. I'm running Manjaro Linux 16.06-pre3 on an Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz processor. This is what ffmpeg gives me: --- show supported qsv encoders --- ffmpeg -encoders | grep _qsv ffmpeg version N-79989-g51a1c1c Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.1.1 (GCC) 20160501 configuration: --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-libmfx --enable-fontconfig --enable-gnutls --enable-libass --enable-libbluray --enable-libcdio --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libssh --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-openal --enable-opencl --enable-opengl --enable-x11grab libavutil 55. 24.100 / 55. 24.100 libavcodec 57. 41.102 / 57. 41.102 libavformat57. 36.100 / 57. 36.100 libavdevice57. 0.101 / 57. 0.101 libavfilter 6. 45.100 / 6. 45.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 0.101 / 2. 0.101 libpostproc54. 0.100 / 54. 0.100 V. h264_qsv H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264) V. hevc_qsv HEVC (Intel Quick Sync Video acceleration) (codec hevc) V. mpeg2_qsvMPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video) --- my input --- ffmpeg -loglevel debug -i 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4' -c:v hevc_qsv -profile:v main -y 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.HEVC.mp4' ffmpeg version N-79989-g51a1c1c Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.1.1 (GCC) 20160501 configuration: --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-libmfx --enable-fontconfig --enable-gnutls --enable-libass --enable-libbluray --enable-libcdio --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libssh --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-openal --enable-opencl --enable-opengl --enable-x11grab libavutil 55. 24.100 / 55. 24.100 libavcodec 57. 41.102 / 57. 41.102 libavformat57. 36.100 / 57. 36.100 libavdevice57. 0.101 / 57. 0.101 libavfilter 6. 45.100 / 6. 45.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 0.101 / 2. 0.101 libpostproc54. 0.100 / 54. 0.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4'. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'hevc_qsv'. Reading option '-profile:v' ... matched as option 'profile' (set profile) with argument 'main'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.HEVC.mp4' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4. Successfully parsed a group of options. Opening an input file: LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4. [file @ 0x1ad4680] Setting default whitelist 'file,crypto' [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] Unknown dref type 0x08206c7275 size 12 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] Before avformat_find_stream_info() pos: 32366760 bytes read:48936 seeks:1 [h264 @ 0x1ad5520] nal_unit_type: 7, nal_ref_idc: 3 [h264 @ 0x1ad5520] nal_unit_type: 8, nal_ref_idc: 3 [h264 @ 0x1ad5520] nal_unit_type: 5, nal_ref_idc: 3 [h264 @ 0x1ad5520] no picture [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] After avformat_find_stream_info() pos: 87402 bytes read:136290 seeks:2 frames:1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4': Metadata: major_brand : isom minor_version : 512