[FFmpeg-user] Ffmpeg logging
Hello, would you tell me whether it is possible to log the number of cycles needed to decode every single frame using ffmpeg ? I tried the following command, but I didn't get what I am looking for. FFREPORT=file=ffreport.log:level=48 taskset 0x01 ffmpeg -threads 1 -i /root/dataset/blue_sky_fps_25.265 out.yuv Best regards. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] "Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)" error
Hello, I am facing an error when trying to decode HEVC-coded content for some video sequences. I varied the video resolution as follows: 2160p: decoded successfully 1600p: decoded successfully 1080p: error 720p: error When I try to decode low resolutions (720p and 1080p), ffmpeg outputs the following error message: "Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)" Below are the command line and the output. --- root@linaro-developer:~# ffmpeg -vcodec hevc_v4l2m2m -i vary_resolution/kimono/AMP_D_Hisilicon_3_1080p_fps_25.265 -f null out.null ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-nonfree --enable-static --disable-shared --enable-pthreads --enable-neon --enable-thumb --enable-optimizations --enable-libv4l2 libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat58. 45.100 / 58. 45.100 libavdevice58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc55. 7.100 / 55. 7.100 Input #0, hevc, from 'vary_resolution/kimono/AMP_D_Hisilicon_3_1080p_fps_25.265': Duration: N/A, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 25 fps, 25 tbr, 1200k tbn, 25 tbc [hevc_v4l2m2m @ 0xe2112410] Using device /dev/video0 [hevc_v4l2m2m @ 0xe2112410] driver 'qcom-venus' on card 'Qualcomm Venus video decoder' in mplane mode [hevc_v4l2m2m @ 0xe2112410] requesting formats: output=HEVC capture=NV12 Stream mapping: Stream #0:0 -> #0:0 (hevc (hevc_v4l2m2m) -> wrapped_avframe (native)) Press [q] to stop, [?] for help [hevc_v4l2m2m @ 0xe2112410] VIDIOC_G_FMT ioctl Last message repeated 99 times Output #0, null, to 'out.null': Metadata: encoder : Lavf58.45.100 Stream #0:0: Video: wrapped_avframe, yuv420p, 1920x1080, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc58.91.100 wrapped_avframe frame=0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) --- *Note*: when I drop the "-vcodec hevc_v4l2m2m" option, the decoding is done successfully. But, that's not what I am lookign for. I need the hardware acceleration. Any help is welcome. Best regards Mohammed ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] HEVC acceleration
Hi Andriy, Thank you for the patch. Now, the hardware decoding is working fine. Here's how I applied the patch: git apply -v Mohammed > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://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 https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] HEVC acceleration
> You should probably also try with older FFmpeg versions... I tried with an older version of ffmpeg (3.4.7), and it works. The issue is that I don't see any difference when using ffmpeg with and without the "-c:v hevc_v4l2m2m" option. This means that the HEVC accelerator is not enabled. Am I right? Am I missing something in the command line of ffmpeg? Mohammed > > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://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 https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] HEVC acceleration
Hello, I am trying to decode HEVC-encoded content using ffmpeg. I am still unable to leverage the HEVC accelerator, which is hevc_v4l2m2m in the case of the platform I am using, RB3. Below are the command and the output. - root@linaro-developer:~# ffmpeg -c:v hevc_v4l2m2m -i blue_sky_fps_25.265 -f null /dev/null ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-nonfree --enable-static --disable-shared --enable-pthreads --enable-neon --enable-thumb --enable-optimizations --enable-hwaccel=hevc_v4l2m2m libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat58. 45.100 / 58. 45.100 libavdevice58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc55. 7.100 / 55. 7.100 Input #0, hevc, from 'blue_sky_fps_25.265': Duration: N/A, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 25 fps, 25 tbr, 1200k tbn, 25 tbc [hevc_v4l2m2m @ 0xdc9c13b0] Using device /dev/video1 [hevc_v4l2m2m @ 0xdc9c13b0] driver 'qcom-venus' on card 'Qualcomm Venus video decoder' in mplane mode [hevc_v4l2m2m @ 0xdc9c13b0] requesting formats: output=HEVC capture=NV12 Stream mapping: Stream #0:0 -> #0:0 (hevc (hevc_v4l2m2m) -> wrapped_avframe (native)) Press [q] to stop, [?] for help [hevc_v4l2m2m @ 0xdc9c13b0] VIDIOC_G_FMT ioctl free(): double free detected in tcache 2 Aborted - Any help is welcome. Thank you in advance. Best regards ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Asking for help
Thank you for your reply. > Complete, uncut console output missing. Here is the complete output. root@odroid:~/ffmpeg# ./ffmpeg -i ../dataset/encoded_with_wpp/blue_sky_fps_25.yuv.h265 -f null /dev/null ffmpeg version N-97619-gf90a48b Copyright (c) 2000-2020 the FFmpeg developers built with gcc 6.5.0 (Ubuntu/Linaro 6.5.0-2ubuntu1~14.04.1) 20181026 configuration: --enable-gpl --enable-nonfree --enable-static --disable-shared --enable-pthreads --arch=arm --enable-neon --enable-thumb --enable-optimizations --disable-encoders libavutil 56. 43.100 / 56. 43.100 libavcodec 58. 82.100 / 58. 82.100 libavformat58. 42.102 / 58. 42.102 libavdevice58. 9.103 / 58. 9.103 libavfilter 7. 80.100 / 7. 80.100 libswscale 5. 6.101 / 5. 6.101 libswresample 3. 6.100 / 3. 6.100 libpostproc55. 6.100 / 55. 6.100 Input #0, hevc, from '../dataset/encoded_with_wpp/blue_sky_fps_25.yuv.h265': Duration: N/A, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 25 fps, 25 tbr, 1200k tbn, 25 tbc Automatic encoder selection failed for output stream #0:0. Default encoder for format null (codec wrapped_avframe) is probably disabled. Please choose an encoder manually. Error selecting an encoder for stream 0:0 > You need either > the rawvideo encoder or the (default) wrapped_avframe > encoder. Does it mean that to decode we need to encode? > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://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 https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Asking for help
Hello, I compiled ffmpeg without encoders (--disable-encoders). Then, when I try to decode a video bit-stream, I get this error message: "Automatic encoder selection failed for output stream #0:0. Default encoder for format null (codec wrapped avframe) is probably disabled. Please choose an encoder manually. Error selecting an encoder for stream 0:0". The command I used is the following: ffmpeg -i input.h265 -f null /dev/null Could someone explain to me why this happened? Best regards ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] HEVC decoding
Hello, which API or plug-in does ffmpeg use to decode HEVC-coded content? Is HEVC-Tiles-based parallelism supported by ffmpeg? Best regards ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Ffmeg multi-threading introduction
Hello, I am novice to programming upon ffmpeg. I would like to know how ffmpeg manages to decode multiple regions of a frame (slices, tiles, NALs, etc) in parallel. Could you point me to the files/functions that do this job? Best regards ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Encode with "tiles" scheme using ffmpeg
Hello, how to encode a video sequence in hevc, with "*tiles*" or "*wpp*" schemes using ffmpeg? Following is the command line and the output: - PS D:\tools\ffmpeg\windows\ffmpeg-20190128-1db30d6-win64-static\bin> .\ffmpeg.exe -f rawvideo -vcodec rawvideo -s 1920x1080 -r 25 -pix_fmt yuv420p -i .\pedestrian_area.yuv -c:v hevc -r 25 -x265-params -tiles 4x2 crf=27 -vframes 375 -an -y pedestrian_area.mp4 ffmpeg version N-93041-g1db30d6cec Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181201 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 --enable-libopenmpt libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 46.100 / 58. 46.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [rawvideo @ 0178db47b740] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from '.\pedestrian_area.yuv': Duration: 00:00:15.00, start: 0.00, bitrate: 622080 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, 622080 kb/s, 25 tbr, 25 tbn, 25 tbc [NULL @ 0178db486a40] Unable to find a suitable output format for '4x2' 4x2: Invalid argument Thank you in advance Best regards ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Converting video format issue
On Mon, Apr 15, 2019 at 12:39 PM Carl Eugen Hoyos wrote: > Command line and complete, uncut console output missing, > the input sample may be useful. Below are the outputs: - Converting to mp4 -- PS D:\tools\ffmpeg\windows\ffmpeg-20190128-1db30d6-win64-static\bin> .\ffmpeg.exe -re -i .\AMP_E_Hisilicon_3.bit -c:v copy .\AMP_E_Hisilicon_3.mp4 ffmpeg version N-93041-g1db30d6cec Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181201 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 --enable-libopenmpt libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 46.100 / 58. 46.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 Input #0, hevc, from '.\AMP_E_Hisilicon_3.bit': Duration: N/A, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 25 fps, 25 tbr, 1200k tbn, 25 tbc Output #0, mp4, to '.\AMP_E_Hisilicon_3.mp4': Metadata: encoder : Lavf58.26.100 Stream #0:0: Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv), 1920x1080, q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mp4 @ 0233134b4480] 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 [mp4 @ 0233134b4480] pts has no value Last message repeated 16 times [mp4 @ 0233134b4480] pts has no valueB time=00:00:00.52 bitrate= 0.7kbits/s speed=1.02x Last message repeated 12 times [mp4 @ 0233134b4480] pts has no valueB time=00:00:01.04 bitrate= 0.3kbits/s speed=1.03x Last message repeated 11 times [mp4 @ 0233134b4480] pts has no valueB time=00:00:01.52 bitrate=1379.9kbits/s speed= 1x Last message repeated 12 times [mp4 @ 0233134b4480] pts has no valueB time=00:00:02.04 bitrate=1028.2kbits/s speed=1.01x Last message repeated 12 times [mp4 @ 0233134b4480] pts has no valueB time=00:00:02.56 bitrate=1638.5kbits/s speed=1.02x Last message repeated 11 times [mp4 @ 0233134b4480] pts has no valueB time=00:00:03.04 bitrate=1379.8kbits/s speed= 1x Last message repeated 12 times [mp4 @ 0233134b4480] pts has no valueB time=00:00:03.56 bitrate=1178.3kbits/s speed=1.01x Last message repeated 6 times frame= 100 fps= 26 q=-1.0 Lsize= 790kB time=00:00:03.84 bitrate=1684.4kbits/s speed=0.998x video:788kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.173959% -- Decoding the output file with ffmpeg --- PS D:\tools\ffmpeg\windows\ffmpeg-20190128-1db30d6-win64-static\bin> .\ffmpeg.exe -i .\AMP_E_Hisilicon_3.mp4 -f null out.null ffmpeg version N-93041-g1db30d6cec Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181201 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 --enable-libopenmpt libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 46.100 / 58. 46.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100
Re: [FFmpeg-user] Converting video format issue
Thank you for your reply. Unfortunately, the same issue happens again. The output video file doesn't have the same number of frames as the input video file. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Converting video format issue
Hello, I am trying to convert a video format from ".bit" to ".mp4", using the following command: ffmpeg -i -codec copy The problem is that the number of frames of the output video is not equal to that of the input video. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Encode in "intra-only"
That's working perfectly. Now, I need to know which parallelization scheme (slice, tile, or wavefront parallel processing) is used to encode a video sequence. How's that possible with *ffprobe*? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Encode in "intra-only"
Thank you for your reply. Can we check with *ffprobe/ffmpeg* whether a video sequence is encoded in intra-only? I didn't succeed to get such information using those tools. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Encode in "intra-only"
Hello, how to encode a video sequence into hevc with "intra-only" mode using ffmpg? I tried the following command but it seems not working: ffmpeg.exe -f rawvideo -vcodec rawvideo -s 1920x1080 -r 25 -pix_fmt yuv420p -frame_type if -i pedestrian_area_375.yuv -c:v libx265 -x265-params frame-threads=4:keyint=1:ref=1:no-open-gop=1:weightp=0:weightb=0:rc-lookahead=0:bframes=0:scenecut=0:b-adapt=0:repeat-headers=1:no-strong-intra-smoothing=1 -g 0 pedestrian_area_375.mp4 Best regards ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Asking for help
Hello, is there a way to know whether an HEVC video sequence is encoded with WPP, tiles, or slices using ffmpeg/ffprobe? Best regards ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] "missing picture in access unit" error
I have installed the lastest version of ffmpeg on another ubuntu machine. It doesn't output the error message posted before. Rather, I got this message: "Unknown HEVC profile: 0", and the decoding is successful. What does this message mean, please? This is the output (only ffmpeg): - ffmpeg output root@odroid:~/bin# ./ffmpeg -i AMP_A_Samsung_6.bit.bin -f null /dev/null ffmpeg version git-2019-01-19-32fb83e Copyright (c) 2000-2019 the FFmpeg developers built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.2) 20160609 configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/root/bin --enable-gpl --enable-libass --enable-libfreetype --enable-libtheora --arch=arm --enable-neon --enable-thumb --enable-optimizations --enable-pthreads --enable-gray --enable-version3 --enable-postproc --enable-libxcb --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-x86asm --enable-nonfree libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [hevc @ 0x14bd940] Unknown HEVC profile: 0 Last message repeated 5 times Input #0, hevc, from 'AMP_A_Samsung_6.bit.bin': Duration: N/A, bitrate: N/A Stream #0:0: Video: hevc (Main 10), yuv420p(tv), 2560x1600, 25 fps, 25 tbr, 1200k tbn, 25 tbc [hevc @ 0x14befb0] Unknown HEVC profile: 0 Last message repeated 1 times Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native)) Press [q] to stop, [?] for help [hevc @ 0x14befb0] Unknown HEVC profile: 0 Last message repeated 1 times Output #0, null, to '/dev/null': Metadata: encoder : Lavf58.26.100 Stream #0:0: Video: wrapped_avframe, yuv420p, 2560x1600, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc58.44.100 wrapped_avframe frame= 60 fps= 30 q=-0.0 Lsize=N/A time=00:00:02.40 bitrate=N/A speed= 1.2x video:24kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Best regards ___ 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] "missing picture in access unit" error
Hello, I am trying to decode an HEVC video content with ffmpeg and ffplay on Windows and I got the following error messages. Could someone explain to me what is it about? --- output of ffmpeg --- D:\Tools\FFMPEG\Windows\ffmpeg-20180307-80798e3-win64-static\bin>ffmpeg.exe -i jctvc/AMP_A_Samsung_6.bit.bin -f null out.null ffmpeg version N-90264-g80798e3857 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7.3.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --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-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth libavutil 56. 8.100 / 56. 8.100 libavcodec 58. 14.100 / 58. 14.100 libavformat58. 10.100 / 58. 10.100 libavdevice58. 2.100 / 58. 2.100 libavfilter 7. 12.100 / 7. 12.100 libswscale 5. 0.102 / 5. 0.102 libswresample 3. 0.101 / 3. 0.101 libpostproc55. 0.100 / 55. 0.100 [hevc @ 00395300] Unknown HEVC profile: 0 Last message repeated 5 times [hevc @ 00395300] missing picture in access unit Input #0, hevc, from 'jctvc/AMP_A_Samsung_6.bit.bin': Duration: N/A, bitrate: N/A Stream #0:0: Video: hevc (Main 10), yuv420p(tv), 2560x1600, 25 fps, 25 tbr, 1200k tbn, 25 tbc [hevc @ 02bdf580] Unknown HEVC profile: 0 Last message repeated 1 times Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native)) Press [q] to stop, [?] for help [hevc @ 02bdf580] Unknown HEVC profile: 0 Last message repeated 1 times Output #0, null, to 'out.null': Metadata: encoder : Lavf58.10.100 Stream #0:0: Video: wrapped_avframe, yuv420p, 2560x1600, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc58.14.100 wrapped_avframe frame= 60 fps= 58 q=-0.0 Lsize=N/A time=00:00:02.40 bitrate=N/A speed=2.32x video:31kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown --- output of ffplay -- D:\Tools\FFMPEG\Windows\ffmpeg-20180307-80798e3-win64-static\bin>ffplay.exe -autoexit -i jctvc/AMP_A_Samsung_6.bit.bin ffplay version N-90264-g80798e3857 Copyright (c) 2003-2018 the FFmpeg developers built with gcc 7.3.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --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-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth libavutil 56. 8.100 / 56. 8.100 libavcodec 58. 14.100 / 58. 14.100 libavformat58. 10.100 / 58. 10.100 libavdevice58. 2.100 / 58. 2.100 libavfilter 7. 12.100 / 7. 12.100 libswscale 5. 0.102 / 5. 0.102 libswresample 3. 0.101 / 3. 0.101 libpostproc55. 0.100 / 55. 0.100 [hevc @ 00384c00] Unknown HEVC profile: 0 sq=0B f=0/0 Last message repeated 3 times [hevc @ 00384c00] Unknown HEVC profile: 0 sq=0B f=0/0 Last message repeated 1 times [hevc @ 00384c00] missing picture in access unit Input #0, hevc, from 'jctvc/AMP_A_Samsung_6.bit.bin': Duration: N/A, bitrate: N/A Stream #0:0: Video: hevc (Main 10), yuv420p(tv), 2560x1600, 25 fps, 25 tbr, 1200k tbn, 25 tbc [hevc @ 003f0a40] Unknown HEVC profile: 0 Last message repeated 3 times nan M-V:nan fd= 0 aq=0KB vq=0KB sq=0B f=0/0 Best Regards ___ 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".
Re: [FFmpeg-user] ffmpeg compile error on ubuntu
>> In the newest veraion of FFMPEG compilation it gives error on yasm replace --enable-yasm by --enable-x86asm It worked for me. ___ 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] FFmpeg error when using "Mediacodec"
Hello, I cross-compiled FFmpeg successfully for aarch64 ARM under Android OS. I enabled "mediacodec" option to leverage the Hardware HEVC decoder available in the board I am using (Snapdragon 810). Here is the command line to configure the compilation: -- ./configure --cross-prefix=/root/arm64-toolchains-r14b/bin/aarch64-linux-android- --sysroot=/root/arm64-toolchains-r14b/sysroot/ --arch=aarch64 --target-os=android --extra-cflags="-I/root/libomxil-bellagio-0.9.3/include" --enable-pthreads --enable-gpl --disable-shared --enable-static --enable-runtime-cpudetect --enable-hwaccels --enable-omx --enable-jni --enable-mediacodec --enable-decoder=hevc_mediacodec -- When I tried to decode a video sequence on Android, I got the following error. -- shell@msm8994:/data/ffmpeg_omx_mediacodec # ./ffmpeg -vcodec hevc_mediacodec -i jellyfish-20-mbps-hd-hevc.mkv -f null out.null ffmpeg version N-91720-g6b1b5af Copyright (c) 2000-2018 the FFmpeg developers built with gcc 4.9.x (GCC) 20150123 (prerelease) configuration: --cross-prefix=/root/arm64-toolchains-r14b/bin/aarch64-linux-android- --sysroot=/root/arm64-toolchains-r14b/sysroot/ --arch=aarch64 --target-os=android --enable-pthreads --enable-gpl --disable-shared --enable-static --enable-hwaccels --enable-jni --enable-mediacodec --enable-decoder=hevc_mediacodec libavutil 56. 19.100 / 56. 19.100 libavcodec 58. 27.100 / 58. 27.100 libavformat58. 17.103 / 58. 17.103 libavdevice58. 4.101 / 58. 4.101 libavfilter 7. 26.100 / 7. 26.100 libswscale 5. 2.100 / 5. 2.100 libswresample 3. 2.100 / 3. 2.100 libpostproc55. 2.100 / 55. 2.100 Input #0, matroska,webm, from 'jellyfish-20-mbps-hd-hevc.mkv': Metadata: COMPATIBLE_BRANDS: iso4hvc1iso6 MAJOR_BRAND : iso4 MINOR_VERSION : 1 ENCODER : Lavf56.3.100 Duration: 00:00:30.10, start: 0.067000, bitrate: 19880 kb/s Stream #0:0(und): Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Metadata: CREATION_TIME : 2016-02-05 01:39:02 LANGUAGE: und HANDLER_NAME: hevc@GPAC0.5.2-DEV-rev565-g71748d7-ab-suite [amediaformat @ 0x7f8055e100] No Java virtual machine has been registered [hevc_mediacodec @ 0x7f80585b00] Failed to create media format Stream mapping: Stream #0:0 -> #0:0 (hevc (hevc_mediacodec) -> wrapped_avframe (native)) Error while opening decoder for input stream #0:0 : Generic error in an external library -- Is there something wrong in the configure options? Any little help is welcome. Thank you in advance. ___ 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".
Re: [FFmpeg-user] How to decode an HEVC content with Hardware video decoder using FFmpeg
Yeah, in configure's output, there is no hwaccel enabled. "Enabled hwaccels:" line is empty. ___ 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".
Re: [FFmpeg-user] How to decode an HEVC content with Hardware video decoder using FFmpeg
Thank you. I tried again. I used the option "--list-hwaccels" to get the list of hardware decoders that FFmpeg can support. I tried some of them, but I still get "Enabled hwaccels:" line empty. This is the command line I have used: ./configure --cross-prefix=/root/arm64-toolchains-r14b/bin/aarch64-linux-android- --sysroot=/root/arm64-toolchains-r14b/sysroot/ --arch=arm64 --target-os=android --enable-gpl --disable-shared --enable-static --enable-hwaccel=hevc_vaapi --enable-hwaccel=hevc_vdpau--enable-neon Best regards ___ 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] How to decode an HEVC content with Hardware video decoder using FFmpeg
Hello, I would like to decode an HEVC content with Hardware video decoder on a board running on Android. I successfully cross-compiled FFmpeg to be run on Android. Now I want to enable Hardware acceleration of FFmpeg. I tried the option: " *--enable-hwaccel=auto*" but it seems like it has no effect. I checked the output of "./configure" command line, and there is no "hwaccel". Could anyone point me to a solution how to enable HEVC Hardware video decoding? The full command line I used to configure what I explained above is: - ./configure --cross-prefix=/root/arm64-toolchains-r14b/bin/aarch64-linux-android- --sysroot=/root/arm64-toolchains-r14b/sysroot/ --arch=arm64 --target-os=android --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include -pie" --extra-ldflags="-L$HOME/ffmpeg_build/lib -pie" --bindir="$HOME/bin" --enable-gpl --enable-hwaccel=auto --enable-nonfree - Best regards ___ 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".
Re: [FFmpeg-user] How to compile ffmpeg on Android
> Should be fixed in current FFmpeg. > Could you precise what's being fixed in current FFmpeg? > I mean which of the following issues is fixed: - ffplay for Android? - no need to add "-pie" option in order to be able to run ffmpeg on Android? - any other issue... Thank you in advance. ___ 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".
Re: [FFmpeg-user] How to compile ffmpeg on Android
> The make it work, you need to have libSDL2 available. libSDL2 must be installed on the host machine (where I am building), or on the target machine (Android)? > Is ffplay of any use to you on android? Do you expect it to play on the > Android device's screen? (I'm not saying that's ruled out - I just > have big doubts.) I need *ffplay*, because when decoding a video it gives how many frames are dropped. This is an important metric I need to evaluate video decoding. I don't know whether I can get this information using *ffmpeg *or not. Best regards ___ 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".
Re: [FFmpeg-user] How to compile ffmpeg on Android
> Could you elaborate? > The compiler by default generates binaries that do not run > on Android? Yes, by default the compiler does not generate binaries that run on Android. That's why I added in --cross-prefix=.. . I gave the path of the Android compiler, using Android NDK. > --enable-nonfree I cannot use --enable-gpl option without --enable-nonfree. Sincerely, I don't know why. > As said, please do not top-post here Could you explain to me? I am not really a good english speaker. Best regards. On Fri, Jul 13, 2018 at 8:14 PM Carl Eugen Hoyos wrote: > 2018-07-13 18:31 GMT+02:00, Mohammed Bey Ahmed Khernache < > mohbeyi...@gmail.com>: > >> Why didn't you start with the configure line I provided (and tested)? > >>>The following configure line works fine here: > >>> $ ./configure --cross-prefix=../ndk-arm64-23/bin/aarch64-linux-android- > >>> --sysroot=../ndk-arm64-23/sysroot --arch=arm64 --target-os=android > > That works fine. Thank you very much. > > > Of course, I added "-pie" option to allow running it on Android Lollipop. > > Could you elaborate? > The compiler by default generates binaries that do not run > on Android? > > Please cut your quotes, Carl Eugen > ___ > 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".
Re: [FFmpeg-user] How to compile ffmpeg on Android
Another question: why *ffplay* is not produced? After ./configure ... in the output, I found: Programms: ffmpegffprobe The command I run is: PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --cross-prefix=../arm64-toolschains/bin/aarch64-linux-android- --sysroot=../arm64-toolschains/sysroot/ --arch=arm64 --target-os=android --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include -pie" --extra-ldflags="-L$HOME/ffmpeg_build/lib -pie" --enable-ffplay --bindir="$HOME/bin" --enable-gpl --enable-nonfree On Fri, Jul 13, 2018 at 6:31 PM Mohammed Bey Ahmed Khernache < mohbeyi...@gmail.com> wrote: > > Why didn't you start with the configure line I provided (and tested)? > >>The following configure line works fine here: > >> $ ./configure --cross-prefix=../ndk-arm64-23/bin/aarch64-linux-android- > >> --sysroot=../ndk-arm64-23/sysroot --arch=arm64 --target-os=android > T > hat works fine. Thank you very much. > Of course, I added "-pie" option to allow running it on Android Lollipop. > FFmpeg finally runs on Android. > > Best regards > > On Fri, Jul 13, 2018 at 1:49 PM Carl Eugen Hoyos > wrote: > >> 2018-07-13 7:03 GMT+02:00, Mohammed Bey Ahmed Khernache < >> mohbeyi...@gmail.com>: >> > I am doing cross-compilation. I am running on Ubuntu x86_64. >> > My target os is: android. >> > I used the script below: >> >> Why didn't you start with the configure line I provided (and tested)? >> >> Carl Eugen >> ___ >> 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".
Re: [FFmpeg-user] How to compile ffmpeg on Android
> Why didn't you start with the configure line I provided (and tested)? >>The following configure line works fine here: >> $ ./configure --cross-prefix=../ndk-arm64-23/bin/aarch64-linux-android- >> --sysroot=../ndk-arm64-23/sysroot --arch=arm64 --target-os=android T hat works fine. Thank you very much. Of course, I added "-pie" option to allow running it on Android Lollipop. FFmpeg finally runs on Android. Best regards On Fri, Jul 13, 2018 at 1:49 PM Carl Eugen Hoyos wrote: > 2018-07-13 7:03 GMT+02:00, Mohammed Bey Ahmed Khernache < > mohbeyi...@gmail.com>: > > I am doing cross-compilation. I am running on Ubuntu x86_64. > > My target os is: android. > > I used the script below: > > Why didn't you start with the configure line I provided (and tested)? > > Carl Eugen > ___ > 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".
Re: [FFmpeg-user] How to compile ffmpeg on Android
I am doing cross-compilation. I am running on Ubuntu x86_64. My target os is: android. I used the script below: --- #!/bin/bash #Change NDK to your Android NDK location pushd . cd ../ffmpeg PLATFORM=$NDK/platforms/android-21/arch-arm64/ PREBUILT=$NDK/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 GENERAL="\ --enable-small \ --enable-cross-compile \ --extra-libs="-lgcc" \ --arch=aarch64 \ --cc=$PREBUILT/bin/aarch64-linux-android-gcc \ --cross-prefix=$PREBUILT/bin/aarch64-linux-android- \ --nm=$PREBUILT/bin/aarch64-linux-android-nm \ --extra-cflags="-I../ffmpeg-build/armeabi-v8a/include" \ --extra-ldflags="-L../ffmpeg-build/armeabi-v8a/lib" " MODULES="\ --enable-gpl" function build_arm64 { ./configure \ --logfile=conflog.txt \ --target-os=android \ --prefix=$PREFIX/armeabi-v8a \ ${GENERAL} \ --sysroot=$PLATFORM \ --extra-cflags="" \ $COMMON_FLAGS \ --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \ --enable-shared \ --disable-static \ --disable-doc \ ${MODULES} make clean make make install } build_arm64 echo Android ARM64v8a builds finished popd --- The error I got is below: --- WARNING: /home/mohammedbey/Desktop/ffmpeg_sources/android-ndk-r17b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-pkg-config not found, library detection may fail. config.h is unchanged libavutil/avconfig.h is unchanged libavfilter/filter_list.c is unchanged libavcodec/codec_list.c is unchanged libavcodec/parser_list.c is unchanged libavcodec/bsf_list.c is unchanged libavformat/demuxer_list.c is unchanged libavformat/muxer_list.c is unchanged libavdevice/indev_list.c is unchanged libavdevice/outdev_list.c is unchanged libavformat/protocol_list.c is unchanged ffbuild/config.sh is unchanged GEN libavutil/libavutil.version GEN libswscale/libswscale.version GEN libswresample/libswresample.version GEN libpostproc/libpostproc.version GEN libavcodec/libavcodec.version GEN libavformat/libavformat.version GEN libavfilter/libavfilter.version GEN libavdevice/libavdevice.version CC libavdevice/alldevices.o In file included from ./libavformat/internal.h:24:0, from libavdevice/alldevices.c:23: /home/mohammedbey/Desktop/ffmpeg_sources/android-ndk-r17b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory # include_next ^ compilation terminated. ffbuild/common.mak:60: recipe for target 'libavdevice/alldevices.o' failed make: *** [libavdevice/alldevices.o] Error 1 CC libavdevice/alldevices.o In file included from ./libavformat/internal.h:24:0, from libavdevice/alldevices.c:23: /home/mohammedbey/Desktop/ffmpeg_sources/android-ndk-r17b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory # include_next ^ compilation terminated. ffbuild/common.mak:60: recipe for target 'libavdevice/alldevices.o' failed make: *** [libavdevice/alldevices.o] Error 1 Android ARM64v8a builds finished /home/mohammedbey/Desktop/ffmpeg4Android-master/ffmpeg-build-script --- ---- Mohammed BEY AHMED KHERNACHE PhD student Lab-STICC / CNRS UMR 6285 University of Southern Brittany, Lorient, France Tel: +33-783-700-185 Email: mohammed.bey-ahmed-kherna...@univ-ubs.fr On Thu, Jul 12, 2018 at 12:33 AM Rafael Lima wrote: > Are you jealous? did you at least tried to build? > > it is not outdated and not broken... as I've made it few weeks ago using > the latest version from every lib i needed for my project... > > if you dont need all of them it's good you can simple remove from config > file... a work that seams to hard for you to do > > On Wed, Jul 11, 2018 at 7:13 PM, Carl Eugen Hoyos > wrote: > > > 2018-07-12 0:01 GMT+02:00, Rafael Lima : > > > https://github.com/bolds07/ffmpeg-for-android-for-dummies > > > > Yes, apart from being outdated and broken (as every other script > > I have
Re: [FFmpeg-user] How to compile ffmpeg on Android
> I think you need to do some research on how to build applications for > android, this is not a good place to ask. Try building some other, simpler, > apps and then try ffmpeg. Thank you or your reply. That makes me sure that the issue comes from the compiler and from ffmpeg. On Wed, Jul 11, 2018 at 5:08 AM Carl Zwanzig wrote: > On 7/10/2018 7:47 PM, Mohammed Bey Ahmed Khernache wrote: > > Till now, i always get the error: > > C compiler test failed > > So I can not compile for Android. > > I am using NDK-r17b. > > I think you need to do some research on how to build applications for > android, this is not a good place to ask. Try building some other, > simpler, > apps and then try ffmpeg. > > You also need to stop top-posting, if you're not sure what that is, look > it > up in wikipedia. > > Later, > > z! > ___ > 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".
Re: [FFmpeg-user] How to compile ffmpeg on Android
Till now, i always get the error: C compiler test failed So I can not compile for Android. I am using NDK-r17b. On Tue, Jul 10, 2018 at 7:00 PM Mohammed Bey Ahmed Khernache < mohbeyi...@gmail.com> wrote: > > Are you sure that there is a C compiler that runs *on* Android? > No, I am not sure. I am newbie on Android OS command line. > I am trying cross-compilation. > > > On Tue, Jul 10, 2018 at 2:26 PM Carl Eugen Hoyos > wrote: > >> 2018-07-09 11:04 GMT+02:00, Mohammed Bey Ahmed Khernache < >> mohbeyi...@gmail.com>: >> >> > Can someone guide me to compile FFmpeg on Android OS. >> >> Are you sure that there is a C compiler that runs *on* Android? >> >> Carl Eugen >> ___ >> 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".
Re: [FFmpeg-user] How to compile ffmpeg on Android
> Are you sure that there is a C compiler that runs *on* Android? No, I am not sure. I am newbie on Android OS command line. I am trying cross-compilation. On Tue, Jul 10, 2018 at 2:26 PM Carl Eugen Hoyos wrote: > 2018-07-09 11:04 GMT+02:00, Mohammed Bey Ahmed Khernache < > mohbeyi...@gmail.com>: > > > Can someone guide me to compile FFmpeg on Android OS. > > Are you sure that there is a C compiler that runs *on* Android? > > Carl Eugen > ___ > 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] How to compile ffmpeg on Android
Hello, Can someone guide me to compile FFmpeg on Android OS. I am using *adb shell*. The commands are very restricted, no apt-get, no git Your help is very appreciated. Best regards Mohammed BEY AHMED KHERNACHE PhD student Lab-STICC / CNRS UMR 6285 University of Southern Brittany, Lorient, France Tel: +33-783-700-185 Email: mohammed.bey-ahmed-kherna...@univ-ubs.fr ___ 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".
Re: [FFmpeg-user] ffplay output
Thank you. That's what I really wanted. Mohammed BEY AHMED KHERNACHE PhD student Lab-STICC / CNRS UMR 6285 University of Southern Brittany, Lorient, France Tel: +33-783-700-185 Email: mohammed.bey-ahmed-kherna...@univ-ubs.fr On Wed, Jul 4, 2018 at 1:42 PM Moritz Barsnick wrote: > Hi Mohammed, > > On Wed, Jul 04, 2018 at 11:00:55 +0200, Mohammed Bey Ahmed Khernache wrote: > > could someone explain to me the *ffplay* outputs? > > Given a video of 3288 frames. Decoding it with ffplay gives the output > > below: > > fd=742 > > aq=0KB > > vq=0KB > > sq=0B > > f=0/0 > > Which can actually be something like this: >3.23 A-V: -0.018 fd= 0 aq= 11KB vq= 17KB sq=0B f=0/0 > > The ffplay docs say: > Print several playback statistics, in particular show the stream > duration, the codec parameters, the current position in the stream > and the audio/video synchronisation drift. > > Looking at the source code, it is: > - the playback duration so far ("3.23") > - the timestamp drift between audio and video (if it says "A-V" - > otherwise the drift between audio or video and master clock) > ("A-V: -0.018") > - number of frames dropped ("fd= 0") > - the audio, video and subtitle queue sizes ("aq= 11KB", ...) > - the number of incorrect DTS/PTS values so far ("f=0/0") > > Hope this helps, > Moritz > ___ > 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] ffplay output
Hello, could someone explain to me the *ffplay* outputs? Given a video of 3288 frames. Decoding it with ffplay gives the output below: fd=742 aq=0KB vq=0KB sq=0B f=0/0 Best regards. ___ 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".
Re: [FFmpeg-user] ffplay error
> Did you try another application that uses sdl? Yes, I tried VLC, I also got problems. I think about using Gstreamer, but I am looking for how to use it to do decoding. You are right. I agree with all your comments. But, I still don't know what the source of these issues is. Thank you On Sun, Jun 17, 2018 at 11:17 PM Carl Eugen Hoyos wrote: > 2018-06-17 22:40 GMT+02:00, Mohammed Bey Ahmed Khernache < > mohbeyi...@gmail.com>: > >> ffplay does not work > >> with video via ssh which I don't consider very worrying. > > > > This time, I am connecting the board directly to the screen > > via Micro-HDMI, and I got the same issue. That's why, I > > am sure that problem didn't come from ssh connection. > > Did you try another application that uses sdl? > > >> Anything wrong with using ffmpeg > > > > FFmpeg works fine, without any problem. But, it can not do anything to > > reach the requested framerate (fps). For example, if a video is encoded > at > > 25 fps, FFmpag can decode it at 5 fps if we use for example only one > core, > > or at 60 fps if we use 8 cores. Therefore, FFmpeg decodes at the capacity > > of the hardware. I consider this as a constraint, because I can not > > calculate miss rate which is an important metric to evaluate a video > > decoder. > > I may misunderstand but please believe me that ffplay is nearly > unsuitable for performance tests, many people use ffmpeg -i > input -f null - to measure libavcodec (and libavformat) performance. > You can specify what number of threads libavcodec should use for > decoding, both when using ffplay and ffmpeg. > > In your example, libavcodec is not (nearly) fast enough to decode > the given video in real-time using one cpu core, from what you write > it is possible using multiple cores. While decoding (h264) often > scales badly, using more than one core is not unusual, especially > to reach a given performance. > > Please remember not to top-post here, it is considered rude. > > Carl Eugen > ___ > 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".
Re: [FFmpeg-user] ffplay error
Yes exactly. > ffplay does not work > with video via ssh which I don't consider very worrying. This time, I am connecting the board directly to the screen via Micro-HDMI, and I got the same issue. That's why, I am sure that problem didn't come from ssh connection. > Anything wrong with using ffmpeg FFmpeg works fine, without any problem. But, it can not do anything to reach the requested framerate (fps). For example, if a video is encoded at 25 fps, FFmpag can decode it at 5 fps if we use for example only one core, or at 60 fps if we use 8 cores. Therefore, FFmpeg decodes at the capacity of the hardware. I consider this as a constraint, because I can not calculate miss rate which is an important metric to evaluate a video decoder. > You are doing performance tests, right? Yes, exactly. Thank you. On Sun, Jun 17, 2018 at 10:26 PM Carl Eugen Hoyos wrote: > 2018-06-17 21:16 GMT+02:00, Mohammed Bey Ahmed Khernache < > mohbeyi...@gmail.com>: > > > I am trying to play (decode) a video with *ffplay*. Unfortunately, > > I got this error, given below. > > Can anyone guide me to fix this issue? > > You have told us in the last thread that ffplay does not work > with video via ssh which I don't consider very worrying. > > Anything wrong with using ffmpeg (which to the best > of my knowledge works fine via ssh) to do performance > tests? You are doing performance tests, right? > > Carl Eugen > ___ > 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] ffplay error
Hello, I am trying to play (decode) a video with *ffplay*. Unfortunately, I got this error, given below. Can anyone guide me to fix this issue? -- ffplay output - root@odroid:~/HEVC# ffplay -autoexit video-h265.mkv ffplay version N-91277-g2223811 Copyright (c) 2003-2018 the FFmpeg developers built with gcc 4.8 (Ubuntu/Linaro 4.8.2-19ubuntu1) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --arch=arm --arch=arm --enable-neon --enable-thumb --enable-optimizations --enable-pthreads --enable-gray --enable-version3 --enable-postproc --enable-libxcb --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libgsm --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-yasm --enable-nonfree libavutil 56. 18.102 / 56. 18.102 libavcodec 58. 20.101 / 58. 20.101 libavformat58. 17.100 / 58. 17.100 libavdevice58. 4.101 / 58. 4.101 libavfilter 7. 25.100 / 7. 25.100 libswscale 5. 2.100 / 5. 2.100 libswresample 3. 2.100 / 3. 2.100 libpostproc55. 2.100 / 55. 2.100 libGL error: failed to load driver: swrast Input #0, matroska,webm, from 'video-h265.mkv':KB sq=0B f=0/0 Metadata: ENCODER : Lavf55.12.0 Duration: 00:00:16.16, start: 0.099000, bitrate: 2619 kb/s Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1920x960 [SAR 1:1 DAR 2:1], 25 fps, 25 tbr, 1k tbn, 25 tbc (default) Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default) Metadata: title : Stereo LANGUAGE: eng [swscaler @ 0xa70ea0a0] No accelerated colorspace conversion found from yuv420p to bgra. X Error of failed request: GLXBadRenderRequestKB sq=0B f=0/0 Major opcode of failed request: 148 (GLX) Minor opcode of failed request: 1 (X_GLXRender) Serial number of failed request: 278 Current serial number in output stream: 280 - Best regards ___ 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".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
> In this case, ffplay is the wrong tool for you, ffmpeg -i input -an -f null - > may be a better idea. FFmpeg decodes a video depending on the hardware capacities, i.e., a video of 10 sec may be decoded in more than 1 mn or in only 5 sec. Therefore, FFmpeg doesn't incur miss rate (all frames are decoded and no one is dropped). To be clear, in my experiments, I want to evaluate video decoding using FFmpeg while running on multi-core. *Question:* Is there a way to decode a video using FFmpeg at a certain fps (e,g,, 25 fps) independently of the hardware capacities (*m**aybe by adding some code to FFmpeg and rebuilding it*). Of course, we will get different qualities, i.e., for example using 2 cores we will get 100 dropped frames whereas using 4 cores we will get only 5 dropped frames. > Frames per second is > available from ffprobe, right? Yes, it gives the fps at which it is encoded. In my experiments, I need the fps while decoding the video. It is different because it depends on the hardware performance. > -f null /dev/null as I understood, this parameter allows to throw the decoded frames, i.e., the decoded frames are lost. Thank you again for all your replies. On Tue, Jun 12, 2018 at 3:27 AM Zak wrote: > On 2018-06-11 at 5:32 PM EDT, Carl Eugen Hoyos wrote: > > 2018-06-07 23:40 GMT+02:00, mohammed bey ahmed khernache < > mohbeyi...@gmail.com>: > > > >> My purpose is to calculate some metrics such as: fps, miss rate, etc, of > >> video decoding. So I need only to decode a video without displaying it. > > > > Sorry for missing this: > > In this case, ffplay is the wrong tool for you, ffmpeg -i input -an -f > null - > > may be a better idea. > > > > Okay, I am going to ask the questions that have been on my mind for this > entire thread: > > 1. What is the goal of the original email? Frames per second is > available from ffprobe, right? Does "miss rate" refer to cache misses > while operating on the compressed video data? Won't the number of cache > misses depend on many factors, possibly including whether the computer > hardware is also busy rendering and displaying a video on the screen, > such that disabling all video display actually will change the "miss > rate"? This does not seem like a characteristic of the video file > itself, it seems like a statistic that is only available during a > specific instance of playing the video with specific software and > hardware. Or maybe I am misunderstanding. The number of cache misses may > in practice be exactly the same every time you play a given video on > certain hardware, but the original email says the test is being run > remotely on a computer that cannot display video, so any actual playback > will occur on a different computer that will have different performance, > unless I am misunderstanding. > > 2. What does ffmpeg with -f null really do, and how is it different than > ffprobe? > > Thank you, > > Zak > ___ > 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".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
Hello again, I tried to run *ffplay* without "-*nodisp*" option, where being connected to my board via *Remote Desktop Connection*. Unfortunately, ffplay couldn't play it. Below is the output: -- output of ffplay - root@odroid:~/HEVC# ffplay jellyfish-10-mbps-hd-hevc.mkv ffplay version N-9-g380ca1bc Copyright (c) 2003-2018 the FFmpeg developers built with gcc 4.8 (Ubuntu/Linaro 4.8.2-19ubuntu1) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --arch=arm --arch=arm --enable-neon --enable-thumb --enable-optimizations --enable-pthreads --enable-gray --enable-version3 --enable-postproc --enable-libxcb --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libgsm --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-yasm --enable-nonfree libavutil 56. 18.102 / 56. 18.102 libavcodec 58. 19.102 / 58. 19.102 libavformat58. 13.102 / 58. 13.102 libavdevice58. 4.100 / 58. 4.100 libavfilter 7. 23.100 / 7. 23.100 libswscale 5. 2.100 / 5. 2.100 libswresample 3. 2.100 / 3. 2.100 libpostproc55. 2.100 / 55. 2.100 Input #0, matroska,webm, from 'jellyfish-10-mbps-hd-hevc.mkv':0/0 Metadata: COMPATIBLE_BRANDS: iso4hvc1iso6 MAJOR_BRAND : iso4 MINOR_VERSION : 1 ENCODER : Lavf56.3.100 Duration: 00:00:30.10, start: 0.067000, bitrate: 9978 kb/s Stream #0:0(und): Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Metadata: CREATION_TIME : 2016-02-04 22:41:00 LANGUAGE: und HANDLER_NAME: hevc@GPAC0.5.2-DEV-rev565-g71748d7-ab-suite [swscaler @ 0xab3e7360] No accelerated colorspace conversion found from yuv420p to bgra. X Error of failed request: GLXBadRenderRequestKB sq=0B f=0/0 Major opcode of failed request: 148 (GLX) Minor opcode of failed request: 1 (X_GLXRender) Serial number of failed request: 311 Current serial number in output stream: 313 -- Best regards On Sun, Jun 10, 2018 at 2:25 AM Moritz Barsnick wrote: > On Sat, Jun 09, 2018 at 21:44:28 +0200, Carl Eugen Hoyos wrote: > > ffmpeg (the application) supports several audio output > > devices like alsa, pulse and oss. They may be what > > you need. > > But Mohammed's input video didn't even have an audio stream? > > I'm still convinced it's either an ffplay bug, or it's intended. > "The file contains only audio, and '-an' is given, so refuse to play." > "The file contains only video, and '-vn'/'-nodisp' is given, so refuse to > play." > "The file contains audio and video, and at least one of them isn't > disabled, so go ahead with decoding." > > I'm not sure the video decoder is used with '-vn'/'-nodisp', so perhaps > running ffplay like this doesn't fulfill Mohammed's cause. > "ffmpeg -i ... -f null -" may be more effective. > > $ ffmpeg -f lavfi -i testsrc -t 10 test.vid.mp4 > $ ffmpeg -f lavfi -i sine -t 10 test.aud.mp4 > $ ffmpeg -f lavfi -i testsrc -f lavfi -i sine -t 10 test.vid+aud.mp4 > $ ffplay -nodisp test.vid+aud.mp4 > $ ffplay -nodisp test.aud.mp4 > $ ffplay -nodisp test.vid.mp4 > > The last one fails with said error. So does > $ ffplay -an test.aud.mp4 > > Moritz > ___ > 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".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
> In my case, that's no restriction, because ssh can tunnel X11. I do this once in a while. I have not tried to do that before. When I want to view the video, I connect to the board via Remote Desktop. For that purpose, I installed the package "*xrdp*" in my board. > what is the use case for "-nodisp"? My purpose is to calculate some metrics such as: fps, miss rate, etc, of video decoding. So I need only to decode a video without displaying it. On Thu, Jun 7, 2018 at 11:05 PM Moritz Barsnick wrote: > On Thu, Jun 07, 2018 at 18:45:32 +0200, mohammed bey ahmed khernache wrote: > > I am using ssh, so I cannot run *ffplay *without "-nodisp" option. > > In my case, that's no restriction, because ssh can tunnel X11. I do this > once > in a while. > > But tell me, what is the use case for "-nodisp"? You only have a video > stream, and you're not showing it. What are you doing? > > Moritz > ___ > 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".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
I am using ssh, so I cannot run *ffplay *without "-nodisp" option. I think you are right, *ffplay *can decode videos that contain audio stream without any problem. Therefore, it must be a bug in *ffplay*. Thank you for this note. On Thu, Jun 7, 2018 at 6:20 PM Moritz Barsnick wrote: > On Thu, Jun 07, 2018 at 17:25:30 +0200, mohammed bey ahmed khernache wrote: > > root@odroid:~/HEVC# ffplay -nodisp -autoexit Tears_400_x265.mp4 > > ffplay_output > [...] > > Failed to open file 'Tears_400_x265.mp4' or configure filtergraph > > It seems that ffplay has issues with "-nodisp" with files that contain > a video stream, but no audio stream. This must be a bug. > > If you don't use "-nodisp", your file should play fine, correct? > > Moritz > ___ > 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".
Re: [FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg
handler_name: hevc:fps=24@GPAC0.5.1-DEV-rev4807 encoder : Lavc58.19.102 wrapped_avframe frame= 335 fps=103 q=-0.0 Lsize=N/A time=00:00:13.95 bitrate=N/A speed=4.31x video:133kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown bench: utime=13.910s stime=0.385s rtime=3.281s bench: maxrss=88464kB __ --- Thank you again On Thu, Jun 7, 2018 at 5:04 PM Moritz Barsnick wrote: > On Thu, Jun 07, 2018 at 16:50:32 +0200, mohammed bey ahmed khernache wrote: > > Hello, > > I have a video encoded with HEVC. > > Is there a reason why *ffmpeg* can decode it whereas *ffplay* can not? > > Yes, perhaps. > > Instead of letting us guess, you could provide both your command lines > (i.e. of both ffmpeg and ffplay) and each of their uncut console > outputs. ffplay does for example show warnings and error messages, they > are not there for pure fun, but to indicate what went wrong. > > (Please use the commands *without* "-hide_banner" and without changing > the default loglevel.) > > Thanks, > Moritz > ___ > 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] why ffplay cannot decode a sequence that can be decoded by ffmpeg
Hello, I have a video encoded with HEVC. Is there a reason why *ffmpeg* can decode it whereas *ffplay* can not? Thank you ___ 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".
Re: [FFmpeg-user] ffplay doesn't decode hevc correctly
> Does it get better over time or worse? no change over the time. The same decoding process quality (bad) until the end of the video. > Is there a reason why you used "-threads 8" in your ffplay command line but not the ffmpeg command line? I am using multi-core processor. I don't know, I followed the reply of Moritz Barsnick. Thank you. ___ Mohammed BEY AHMED KHERNACHE PhD student at Lab-STICC Université Bretagne Sud, Lorient, France mohammed.bey-ahmed-kherna...@univ-ubs.fr mohbeyi...@gmail.com ___ On Sun, May 20, 2018 at 8:20 PM, Carl Eugen Hoyos wrote: > 2018-05-20 19:01 GMT+02:00, mohammed bey ahmed khernache < > mohbeyi...@gmail.com>: > > > 20.48 A-V: 2.591 fd= 383 aq=0KB vq=0KB sq=0B f=0/0 > > This indicates no frames were dropped but video does indeed lag audio. > > Does it get better over time or worse? > > > frame= 291 fps= 80 q=-0.0 size=N/A time=00:00:12.01 bitrate=N/A speed= > > 3.3x > > This indicates that decoding with 3x real time is possible. > > Is there a reason why you used "-threads 8" in your ffplay > command line but not the ffmpeg command line? Please > remove it unless you know exactly why. > > Please remember not to top-post here, Carl Eugen > ___ > 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".
Re: [FFmpeg-user] ffplay doesn't decode hevc correctly
16le (native)) Press [q] to stop, [?] for help Output #0, null, to 'pipe:': Metadata: encoder : Lavf58.13.102 Stream #0:0: Video: wrapped_avframe, yuv420p, 1920x960 [SAR 1:1 DAR 2:1], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default) Metadata: encoder : Lavc58.19.102 wrapped_avframe Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: title : Stereo LANGUAGE: eng encoder : Lavc58.19.102 pcm_s16le frame= 291 fps= 80 q=-0.0 size=N/A time=00:00:12.01 bitrate=N/A speed= 3.3x ___________ Mohammed BEY AHMED KHERNACHE PhD student at Lab-STICC Université Bretagne Sud, Lorient, France mohammed.bey-ahmed-kherna...@univ-ubs.fr mohbeyi...@gmail.com ___ On Sun, May 20, 2018 at 6:45 PM, Moritz Barsnick wrote: > On Sun, May 20, 2018 at 16:32:05 +0200, mohammed bey ahmed khernache wrote: > > 2) how can decode *hevc *content ? > > I compiled ffmpeg with libx265. > > libx265 isn't used for decoding, only for encoding. > > > When I try to play back a video encoded > > with hevc, I can not decode it correctly, i.e. ffplay plays it very > slowly > > as I don't see all the frames. > > I can only guess your computer is too slow. Can you show us the > complete console output of your ffplay command? > > > ffplay -threads 8 > > Additionally, can you show us the complete output of > $ ffmpeg -i -t 30 -f null - > > Moritz > ___ > 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] ffplay doesn't decode hevc correctly
Hello, I am using *ffplay *to play back a video. 1) how can I get the details of decoding (fps, miss rate, time, etc) 2) how can decode *hevc *content ? I compiled ffmpeg with libx265. When I try to play back a video encoded with hevc, I can not decode it correctly, i.e. ffplay plays it very slowly as I don't see all the frames. I am using this command: ffplay -threads 8 Thank you in advance ___ 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".
Re: [FFmpeg-user] Frame dropping
Thank you very much for your help. On Wed, May 9, 2018 at 8:21 PM, Gabriel Balaich wrote: > > > > PS: vsync is neither an input nor an output option, it is a > > global option. > > > Good to know. > ___ > 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".
Re: [FFmpeg-user] Frame dropping
Thank you for your reply. The input video is encoded with hevc at 25 fps. I tries this command: ffmpeg -threads 1 -vsync drop -i -f null /dev/null I got this message in yellow: Encoder did not produce proper pts, making some up Unfortunately, I can not reach 25 fps while decoding, even with dropping frames. So I think that the option for "frame dropping" is not working !! On Wed, May 9, 2018 at 5:11 PM, Gabriel Balaich wrote: > > > > Hello, > > could you tell me how to enable "frame dropping" while decoding with > ffmpeg > > ? > > > > *"-vsync parameter* > *Video sync method. For compatibility reasons old values can be specified > as numbers. Newly added values will have to be specified as strings > always.* > > *0, passthrough* > *Each frame is passed with its timestamp from the demuxer to the muxer.* > > *1, cfr* > *Frames will be duplicated and dropped to achieve exactly the requested > constant frame rate.* > > *2, vfr* > *Frames are passed through with their timestamp or dropped so as to prevent > 2 frames from having the same timestamp.* > > *drop* > *As passthrough but destroys all timestamps, making the muxer generate > fresh timestamps based on frame-rate.* > > *-1, auto* > *Chooses between 1 and 2 depending on muxer capabilities. This is the > default method."* > > If I'm understanding you correctly -vsync should be what you are looking > for. > ___ > 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] Frame dropping
Hello, could you tell me how to enable "frame dropping" while decoding with ffmpeg ? Thank you in advance ___ 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".
Re: [FFmpeg-user] Asking for help about FFmpeg
Thank you for your reply. Yes, I don't need an output video. I just want to decode a video at 25 fps and then calculate the miss rate. So I don't want to skip anything. ___ Mohammed BEY AHMED KHERNACHE PhD student at Lab-STICC Université Bretagne Sud, Lorient, France mohammed.bey-ahmed-kherna...@univ-ubs.fr mohbeyi...@gmail.com ___ On Sat, May 5, 2018 at 1:39 AM, Carl Eugen Hoyos wrote: > 2018-05-04 20:02 GMT+02:00, mohammed bey ahmed khernache < > mohbeyi...@gmail.com>: > > > When I try to decode a video which is encoded with HEVC > > (using ffmpeg) at a certain fps (e.g fps=25), the result is a > > decoded video but at a different fps. > > This sounds as if your problem is that your output video > has a different fps than your input video. > > > How can I decode a video at exactly 25 fps, even if I get > > high miss rate ? > > I am using this command for decoding: > > ffmpeg -benchmark -i -f null out.null > > But this command does not produce an output video... > > Or are you only discussing the decoding speed? > FFmpeg generally decodes as fast as possible, > depending on your hardware (and video resolution), it > is possible that real-time decoding is not possible. > > There are options to skip the loopfilter, skip B-frames > and even skip P-frames to speed up decoding: > -skip_loop_filter all > -skip_frame bidir / -skip_frame noref > -skip_frame nokey > > Carl Eugen > ___ > 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] Asking for help about FFmpeg
Hello, I am working on video decoding using FFmpeg. When I try to decode a video which is encoded with HEVC (using ffmpeg) at a certain fps (e.g fps=25), the result is a decoded video but at a different fps. How can I decode a video at exactly 25 fps, even if I get high miss rate ? I am using this command for decoding: ffmpeg -benchmark -i -f null out.null Please, any help is welcome. Best regards. ___ Mohammed BEY AHMED KHERNACHE PhD student at Lab-STICC Université Bretagne Sud, Lorient, France mohammed.bey-ahmed-kherna...@univ-ubs.fr mohbeyi...@gmail.com ___ ___ 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".