Re: [FFmpeg-user] AMD screen record + h/w vaapi encode to mkv fails.

2018-03-07 Thread Andy Furniss
Andy Furniss wrote: Andy Furniss wrote: Haven't had time to bisect, but I can't screengrab to mkv any more. kmsgrab + playing with vsync etc. give the same error as this example, mp4 works OK. Bisected to - commit ae7df68edd79bce5c318810c6b307ee4e81cd2a6 Author: James Almer Date:

Re: [FFmpeg-user] AMD screen record + h/w vaapi encode to mkv fails.

2018-02-24 Thread Andy Furniss
Andy Furniss wrote: Haven't had time to bisect, but I can't screengrab to mkv any more. kmsgrab + playing with vsync etc. give the same error as this example, mp4 works OK. Bisected to - commit ae7df68edd79bce5c318810c6b307ee4e81cd2a6 Author: James Almer Date: Fri Nov 24 19:

[FFmpeg-user] AMD screen record + h/w vaapi encode to mkv fails.

2018-02-23 Thread Andy Furniss
Haven't had time to bisect, but I can't screengrab to mkv any more. kmsgrab + playing with vsync etc. give the same error as this example, mp4 works OK. ffm -loglevel debug -vaapi_device /dev/dri/renderD128 -f x11grab -video_size 1920x1080 -i :0 -vf 'format=nv12,hwupload' -c:v h264_vaapi -pr

Re: [FFmpeg-user] 4K 60Hz Directshow Video Capture

2018-02-12 Thread Andy Furniss
Carl Eugen Hoyos wrote: Is there really a hardware encoder that supports lossless encoding? https://developer.nvidia.com/nvidia-video-codec-sdk#NVENCFeatures Doesn't mention rgb though. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmp

Re: [FFmpeg-user] 4K 60Hz Directshow Video Capture

2018-02-12 Thread Andy Furniss
Alex P wrote: Hi James, ffmpeg -f dshow -video_size 3840x2160 -framerate 6/1001 -rtbufsize 21 -pixel_format bgr24 -i video="MZ0380 PCI, Analog 01 Capture" -c:v h264_nvenc -preset lossless -f null - Gives me the same error Maybe it doesn't do rgb24 lossless - you should paste full

Re: [FFmpeg-user] Compressed audio streams (DTS, Dolby) decoding

2018-01-20 Thread Andy Furniss
Frédéric wrote: Are there different ways to decode a Dolby stream? Is it possible that ffmpeg chose a different approach than amplifiers (audio chips) do? Yes, but it's probably not the cause of rear too loud. If it's ac3 then the parameter -drc_scale will change whether dynamic range control

Re: [FFmpeg-user] Extracting frames from 59.94 FPS video - only every other frame is different

2017-12-01 Thread Andy Furniss
Andy Furniss wrote: Will Price wrote: Hello, I'm having a strange problem when extracting frames from a video recorded from a GoPro HERO 5 Black camera (1080p, 60FPS, Linear FOV). When I view the extracted frames it appears that every two frames is a duplicate of one another, i.e. fra

Re: [FFmpeg-user] Extracting frames from 59.94 FPS video - only every other frame is different

2017-12-01 Thread Andy Furniss
Will Price wrote: Hello, I'm having a strange problem when extracting frames from a video recorded from a GoPro HERO 5 Black camera (1080p, 60FPS, Linear FOV). When I view the extracted frames it appears that every two frames is a duplicate of one another, i.e. frames 1 and 2 look the same, f

Re: [FFmpeg-user] weston support for ffmpeg

2017-11-10 Thread Andy Furniss
TONU ZALPURE wrote: HI All, I have setup [Raspberry Pi3 + Automotive Grade Linux] It has weston UI instead of X11. How to enable weston GUI support in ffmpeg insted of X11 GUI? I tried --enable-weston but it doesn’t seem to be working. I am trying to play video using ffplay. but get error Coul

Re: [FFmpeg-user] LATM demuxer

2017-11-01 Thread Andy Furniss
Carl Eugen Hoyos wrote: 2017-10-31 15:54 GMT+01:00 Andy Furniss : Sometime this year I thought I saw mention of ffmpeg and a LATM standalone demuxer. I committed it six years ago. (The technical name of the file format is "loas", "latm" is one of the things you can p

Re: [FFmpeg-user] LATM demuxer

2017-10-31 Thread Andy Furniss
Andy Furniss wrote: Sometime this year I thought I saw mention of ffmpeg and a LATM standalone demuxer. I may mis-recall/ may have misread, does anyone know anything about this? The reason I would need it is that currently feeding latm to decode with fdk seems impossible. Re-coding seems to

[FFmpeg-user] LATM demuxer

2017-10-31 Thread Andy Furniss
Sometime this year I thought I saw mention of ffmpeg and a LATM standalone demuxer. I may mis-recall/ may have misread, does anyone know anything about this? The reason I would need it is that currently feeding latm to decode with fdk seems impossible. Re-coding seems to lose the normal drc and

Re: [FFmpeg-user] How can I recode the movie in a way that I can step forward frame by frame?

2017-10-22 Thread Andy Furniss
Andy Furniss wrote: Andy Furniss wrote: LaHu wrote: I assume the movie is encoded using IPB frames. Thus I can't step from any frame to the previous/next frame but from I-frames to I-frames only. This is not true, mpv can step OK with IPB, it can also field step if you are de-interl

Re: [FFmpeg-user] How can I recode the movie in a way that I can step forward frame by frame?

2017-10-22 Thread Andy Furniss
Andy Furniss wrote: LaHu wrote: I assume the movie is encoded using IPB frames. Thus I can't step from any frame to the previous/next frame but from I-frames to I-frames only. This is not true, mpv can step OK with IPB, it can also field step if you are de-interlacing. Hmm, testin

Re: [FFmpeg-user] How can I recode the movie in a way that I can step forward frame by frame?

2017-10-22 Thread Andy Furniss
LaHu wrote: I assume the movie is encoded using IPB frames. Thus I can't step from any frame to the previous/next frame but from I-frames to I-frames only. This is not true, mpv can step OK with IPB, it can also field step if you are de-interlacing. So I'd like to convert the movie to an I-

Re: [FFmpeg-user] How can I recode the movie in a way that I can step forward frame by frame?

2017-10-22 Thread Andy Furniss
Carl Eugen Hoyos wrote: 2017-10-21 17:44 GMT+02:00 LaHu : I like to watch movies in details. In order to check a movie for logical errors I watch some scenes in slow motion or even stepping throug them forward and backwards. I can't step really +-1 Frame, sometimes it moves several seconds ahead

Re: [FFmpeg-user] 2 pass CBR or VBR not really fixing the bitrate?

2017-07-31 Thread Andy Furniss
Manuel Tiglio wrote: ffmpeg -i input.mp4 -c:v libx264 -x264-params "nal-hrd=cbr" -b:v 1M -minrate 1M -maxrate 1M -bufsize 2M output.ts But I will give it a shot. Also see x264 --fullhelp WRT nal-hrd=cbr, it may not be what you need, no mp4 and possible "filling". x264 --fullhelp | grep n

Re: [FFmpeg-user] 2 pass CBR or VBR not really fixing the bitrate?

2017-07-31 Thread Andy Furniss
Manuel Tiglio wrote: On Jul 31, 2017, at 11:29 AM, Nicolas George wrote: Le tridi 13 thermidor, an CCXXV, Manuel Tiglio a écrit : 1.23. For VOD content the peak bit rate SHOULD be no more than 200% of the average bit rate. Without a proper definition of "peak bit rate", this sentence is m

Re: [FFmpeg-user] ffmpeg: chroma pixels are wrong when using cuvid to decode h264 stream to yuv file

2017-07-17 Thread Andy Furniss
ekin yang wrote: Dear expert, Currently I am trying to use ffmpeg and Nvidia GPU card to decoding h264 stream to yuv file. There are no errors during the decoding process. But I find the yuv file I got is not exactly correct. It seems the luma pixels are correct but chroma pixels are wrong. G

Re: [FFmpeg-user] Recoding H.264/4.2.2 to H.264/4.2.0

2017-06-07 Thread Andy Furniss
Mike Brown wrote: On Wed, Jun 07, 2017 at 03:00:12PM +0100, Andy Furniss wrote: Mike Brown wrote: On Wed, Jun 07, 2017 at 12:03:33PM +0200, Moritz Barsnick wrote: On Tue, Jun 06, 2017 at 21:54:41 -0500, Mike Brown wrote: If given an H.264/4.2.2 elementary stream, can ffmpeg recode it to H

Re: [FFmpeg-user] Recoding H.264/4.2.2 to H.264/4.2.0

2017-06-07 Thread Andy Furniss
Mike Brown wrote: On Wed, Jun 07, 2017 at 12:03:33PM +0200, Moritz Barsnick wrote: On Tue, Jun 06, 2017 at 21:54:41 -0500, Mike Brown wrote: If given an H.264/4.2.2 elementary stream, can ffmpeg recode it to H.264/4.2.0. If so, what would the command line be? $ ffmpeg -i myelementarystream_4

Re: [FFmpeg-user] memory leak with vaapi decode since ffmpeg_vaapi: Convert to use hw_frames_ctx only

2017-05-28 Thread Andy Furniss
Mark Thompson wrote: Hmph, looks like the parameter buffer confusion strikes again. The original VAAPI specification contained the following functions: """ /** * After this call, the buffer is deleted and this buffer_id is no longer valid * Only call this if the buffer is not going to be pas

Re: [FFmpeg-user] memory leak with vaapi decode since ffmpeg_vaapi: Convert to use hw_frames_ctx only

2017-05-28 Thread Andy Furniss
Andy Furniss wrote: First reported on mpv github issues. Since below ffmpeg -hwaccel vaapi -i sommething-h264 -f null - will steadily eat memory. commit 542a65d0b33abf81e5087ec9142bb11a54f23cde Author: Mark Thompson Date: Sun Jul 31 22:51:45 2016 +0100 ffmpeg_vaapi: Convert to use

[FFmpeg-user] memory leak with vaapi decode since ffmpeg_vaapi: Convert to use hw_frames_ctx only

2017-05-26 Thread Andy Furniss
First reported on mpv github issues. Since below ffmpeg -hwaccel vaapi -i sommething-h264 -f null - will steadily eat memory. commit 542a65d0b33abf81e5087ec9142bb11a54f23cde Author: Mark Thompson Date: Sun Jul 31 22:51:45 2016 +0100 ffmpeg_vaapi: Convert to use hw_frames_ctx only M

Re: [FFmpeg-user] benching with -f null - fails on bluray sample since ffmpeg: init filtergraphs only after we have a frame on each input

2017-05-26 Thread Andy Furniss
Andy Furniss wrote: andy [ffmpeg]$ ./ffmpeg -i ~/br-264-thd71.m2ts -f null - Too many packets buffered for output stream 0:1. Conversion failed! With wm4s suggestion to raise max queue size this works. ffmpeg -i ~/br-264-thd71.m2ts -max_muxing_queue_size 300 -f null

[FFmpeg-user] benching with -f null - fails on bluray sample since ffmpeg: init filtergraphs only after we have a frame on each input

2017-05-26 Thread Andy Furniss
Sample https://drive.google.com/file/d/0BxP5-S1t9VEEcUtGa1d2U3VuZjQ/view?usp=sharing Since commit af1761f7b5b1b72197dc40934953b775c2d951cc Author: Anton Khirnov Date: Fri May 27 12:14:33 2016 +0200 ffmpeg: init filtergraphs only after we have a frame on each input This makes sure t

Re: [FFmpeg-user] Converting and encoding in same step without pipes

2017-04-07 Thread Andy Furniss
Aarthi Priya Thirumalai wrote: Hello all, In my current set, I am trying to encode content with ffmpeg. The ffmpeg receives the source input through a Black Magic Declink 4K pro capture card. Input to the capture card is a prores 4:2:2 4k60 10bit content from Atomos Shogun device. I want to conv

Re: [FFmpeg-user] Converting 4:2:2 pro-res to 4:2:0 for AVC encoding

2017-04-07 Thread Andy Furniss
Pradeep Ramachandran wrote: mov doesn't seem to support yuv420p10le. I am still stuck with mov as the player that I am using to stream the input video can only stream in mov format Tested 10 bit libx264 and libx265 and both will write to mov with current ffmpeg. Maybe you need to build/instal

Re: [FFmpeg-user] gain the highest quality with H264 at a certain bit rate

2017-03-29 Thread Andy Furniss
negin tebyani wrote: Well ignoring requests for ffmpeg console output and a section of the master that the provided samples were made from means that less people will even try to help you. I don'n know how to reach for ffmpeg output console, but here is a section of the master video: https:

Re: [FFmpeg-user] gain the highest quality with H264 at a certain bit rate

2017-03-28 Thread Andy Furniss
negin tebyani wrote: I'm realy stuck in here, I have tried any commands and any suggestions, but Well ignoring requests for ffmpeg console output and a section of the master that the provided samples were made from means that less people will even try to help you. ___

Re: [FFmpeg-user] gain the highest quality with H264 at a certain bit rate

2017-03-27 Thread Andy Furniss
negin tebyani wrote: this is the source video mediainfo: That's not ffmpeg console output, but anyway .. Bit rate mode: Constant Bit rate : 4 000 Kbps So it's not a much of a master but (I guess) some re-encoded web stream made fro

Re: [FFmpeg-user] gain the highest quality with H264 at a certain bit rate

2017-03-27 Thread Andy Furniss
negin tebyani wrote: I am trying to reach that quality and using those parameters but the result is still low quality.. Please don't top post on this list - reply in line like I do here. you mean bufsize could affect the quality?? A bit, but I don't know how much in this case, just that it

Re: [FFmpeg-user] gain the highest quality with H264 at a certain bit rate

2017-03-27 Thread Andy Furniss
negin tebyani wrote: I have encoded my videos using ffmpeg and H264, and this is my ffmpeg command (2 pass encoding): I don't think 2 pass is needed for constant bitrate - but am in no way an expert on encoding. Look at the differences in the params you pasted bufsize 3000k (you) vs 5000

Re: [FFmpeg-user] Slight blur on converted video

2017-03-25 Thread Andy Furniss
Dave wrote: The full ffmpeg output is: $ ./ffmpeg -y -i in.mp4 -acodec pcm_s16le -vcodec prores_ks -profile:v 1 -vf scale=interl=1 -sws_flags full_chroma_inp+full_chroma_int -copytb -1 out.mov FWIW I tested a bit the format conversion + various flags and the only ones that made the ssim/psnr

Re: [FFmpeg-user] Slight blur on converted video

2017-03-24 Thread Andy Furniss
Erik Dobberkau wrote: W dniu 2017-03-24 o 12:04, Dave pisze: To answer your suggestions Chronek: I tried encoding with your suggested command line it was still pretty much the same. 1) I downloaded a fresh copy of ffmpeg and compiled it and still had the same results 2) I am not really in a p

Re: [FFmpeg-user] Chroma problem converting mp4 to prores

2017-03-03 Thread Andy Furniss
David Cecco wrote: Sorry about the slow response, that has fixed the issue, thanks chronek! The file still seems a bit soft in quality though. I have tried turning the -qscale right down to 1 and adjusting the bits_per_mb up to 2400 and the picture improved but it still wasn’t 100%, but the f

Re: [FFmpeg-user] -pix_fmt yuv420p and deinterlacing

2017-02-26 Thread Andy Furniss
Katherine Frances wrote: Kia ora, *Andy*: thanks very much for this tip! Will add that filter to the script as I definitely want to deinterlace. Do you recommend this over *yadif*, or do I need to combine *scale* with a deinterlacing filter? -vf scale=interl=1 Has nothing to do with de-interla

Re: [FFmpeg-user] -pix_fmt yuv420p and deinterlacing

2017-02-25 Thread Andy Furniss
Katherine Frances wrote: ffmpeg -i uncompressed_master.mov -c:v libx264 -pix_fmt yuv420p -c:a libfdk_aac -b:a 128k access_copy.mp4 If the masters really are interlaced you will slightly break them doing this. You need to add -vf scale=interl=1 Additionally ffmpeg git master recently changed

Re: [FFmpeg-user] Scaling legal video levels

2017-02-18 Thread Andy Furniss
Elliott Balsley wrote: I am trying to convert a single-frame H.264 MKV to a JPEG image. Unfortunately the output is always clipped at 235. The source video is full-range, and I want to keep it full-range. Sample attached to this email. The clipping can be seen quite obviously with this test pa

Re: [FFmpeg-user] Convert MPEG-PS progressive to Interlaced

2017-01-31 Thread Andy Furniss
Andy Furniss wrote: kumar vikram wrote: But the op specifically asked for field-encoding. Note to everybody (including me): Please try not to guess - if the op still needs the information, he can post his command line and console output and we can try to answer. ffmpeg.exe -y -i

Re: [FFmpeg-user] Convert MPEG-PS progressive to Interlaced

2017-01-31 Thread Andy Furniss
kumar vikram wrote: But the op specifically asked for field-encoding. Note to everybody (including me): Please try not to guess - if the op still needs the information, he can post his command line and console output and we can try to answer. ffmpeg.exe -y -i INPUT_FILE -c:v mpeg2video -fl

Re: [FFmpeg-user] Convert MPEG-PS progressive to Interlaced

2017-01-27 Thread Andy Furniss
kumar vikram wrote: Hi All, I have been struggling with converting PS progressive stream to PS interlaced for my test app. But all the conversion commands used by me are converting to Frame based interlaced stream but what I am looking for is I-P field based interlace(I frame having top filed an

Re: [FFmpeg-user] C920 h264 Problem

2017-01-26 Thread Andy Furniss
Canberk Demirsoy (Alumni) wrote: Hey buddy, i am google -ing for weeks. And you are telling me what i know now. C920 is enable to get compressed h264 in 30fps in 1080p. This can be seen by the listing formats there is no problem with it. i already set pix_ftm. Maybe what Jimmy is saying is you

Re: [FFmpeg-user] Fwd: C920 h264 Problem

2017-01-26 Thread Andy Furniss
Canberk Demirsoy (Alumni) wrote: Hi guys even though i make lots of settings i still see yuv format in debug file. How to correctly get h264 format from c920 using raspberry pi? And i wanna transfer file without encoding or decoding by copying vcodec. My script ffmpeg -report -f v4l2 -r 20 -

Re: [FFmpeg-user] DV to SD Blu-ray

2017-01-24 Thread Andy Furniss
Terje J. Hanssen wrote: Den 24. jan. 2017 12:41, skrev Andy Furniss: Terje J. Hanssen wrote: 1) 576i DV video to x264, pcm audio to ac3 ffmpeg -i dv01.dv -c:v libx264 -profile:v high -level 41 -pix_fmt yuv420p -pix_fmt yuv420p? I thought PAL DV was 420p - if by chance ffmpeg -i shows

Re: [FFmpeg-user] DV to SD Blu-ray

2017-01-24 Thread Andy Furniss
Terje J. Hanssen wrote: Den 24. jan. 2017 12:41, skrev Andy Furniss: Terje J. Hanssen wrote: 1) 576i DV video to x264, pcm audio to ac3 ffmpeg -i dv01.dv -c:v libx264 -profile:v high -level 41 -pix_fmt yuv420p -preset slow -crf 20 -g 24 -vf setsar=sar=12/11 -threads 8 -x264opts bluray

Re: [FFmpeg-user] De-telecine, deinterlace, and filter chains

2017-01-24 Thread Andy Furniss
Andy Furniss wrote: Whatever further processing is done, I think that scaling down to 480 is going to be the first step. I live in pal land, so don't have experience of dealing with ntsc. Looking more at the sample it does seem that the progressive scale and encode have killed every f

Re: [FFmpeg-user] Need help generating field based Program Stream

2017-01-24 Thread Andy Furniss
kumar vikram wrote: Hi Bouke, Thanks for your prompt response. Please don't top post. For me the idea is to get field based interlaced streams to test some of my implementation. Maintaining frame rate is not an issue with me. I tried with tinterlace too but not to my luck. ffmpeg.exe -y -i

Re: [FFmpeg-user] DV to SD Blu-ray

2017-01-24 Thread Andy Furniss
Terje J. Hanssen wrote: 1) 576i DV video to x264, pcm audio to ac3 ffmpeg -i dv01.dv -c:v libx264 -profile:v high -level 41 -pix_fmt yuv420p -preset slow -crf 20 -g 24 -vf setsar=sar=12/11 -threads 8 -x264opts bluray-compat=1:vbv-bufsize=15000:vbv-maxrate=3 -acodec ac3 -strict experimental

Re: [FFmpeg-user] De-telecine, deinterlace, and filter chains

2017-01-23 Thread Andy Furniss
Andy Furniss wrote: Andy Furniss wrote: Vid looks like it's scaled up from 480 height and pillarboxed, so the weave is not line for line anymore. It's probably been scaled as progressive which on strong chroma will (I think) be un-mendable. Saying that the sample can be scaled down

Re: [FFmpeg-user] De-telecine, deinterlace, and filter chains

2017-01-23 Thread Andy Furniss
Andy Furniss wrote: Vid looks like it's scaled up from 480 height and pillarboxed, so the weave is not line for line anymore. It's probably been scaled as progressive which on strong chroma will (I think) be un-mendable. Saying that the sample can be scaled down to 480 and the we

Re: [FFmpeg-user] De-telecine, deinterlace, and filter chains

2017-01-23 Thread Andy Furniss
Billy wrote: On 1/23/2017 12:02 AM, Mike Brown wrote: But this method didn't seem to have any real effect on my video. It's a long video, so I have made a shortened version available to see if anyone has seen such a case. It's in 1080p and 23.97 fps. I'd like to save it in a similar frame rate a

Re: [FFmpeg-user] DV to SD Blu-ray

2017-01-20 Thread Andy Furniss
Andy Furniss wrote: As lpcm doesn't work maybe truehd? ISTR there was a gsoc project to encode. I tried and it seems the encoder has issues, needs -strict -2 and isn't lossless (reported on playback/decode first couple of seconds). It also produces smaller output than input (s1

Re: [FFmpeg-user] DV to SD Blu-ray

2017-01-20 Thread Andy Furniss
Terje J. Hanssen wrote: Hi List, I'm a new user here and want suggestions for "best" ffmpeg syntax to transcode PAL 576i DV source files to compliant SD-BD_x264m2ts and/or SD-BD_mpeg2.m2ts. The AVCHD-SD specification is possibly something that could be used https://en.wikipedia.org/wiki/AVCHD#Sp

Re: [FFmpeg-user] Need help understanding framerate conversion!

2017-01-13 Thread Andy Furniss
Matthias, Thomas wrote: Hi All, I need to mux and then framerate convert a rawvideo .mov file, and a PCM 16bit 48Khz wav file. For example, a .mov file is exactly 10 seconds long, and a .wav file is also exactly 10 seconds. The initial .mov file is a 30 frames-per-second, but after muxing

[FFmpeg-user] ffmpeg -i mvc-stream2.m2ts = huge memory usage since vcodec/h2645_parse: Clear buffer padding

2017-01-02 Thread Andy Furniss
Notice by accident and may be one off unlucky sample. Out of curiosity I did ffmpeg -i on the second m2ts stream of a mvc ISO sample. This ate all mem (8G) and swap (4G) before oom killer killed ffmpeg. This was git and as it didn't happen with my older installed ffmpeg I bisected to - co

Re: [FFmpeg-user] drawtext timecode drop frame 23.967

2016-12-14 Thread Andy Furniss
Nathaniel Finney wrote: It seems the drawtext filter timecode option doesn't allow using 23.967: timecode='00\:00\:00\;00':rate=24000/1001: ... [Parsed_drawtext_4 @ 0x7ff2c74010c0] Drop frame is only allowed with 3/1001 or 6/1001 FPS I'm not sure why this is, 23.967 is a common NT

Re: [FFmpeg-user] VP9 to HEVC hdr demo conversion?

2016-12-14 Thread Andy Furniss
Tom Horsley wrote: On Mon, 14 Nov 2016 02:02:08 +0100 Carl Eugen Hoyos wrote: Can anyone suggest a command line this poor ignorant human can use to convert these to HEVC files, preserving the HDRness? Either provide command line and complete, uncut console output for what you have already tri

Re: [FFmpeg-user] VP9 to HEVC hdr demo conversion?

2016-12-13 Thread Andy Furniss
Andy Furniss wrote: traycold wrote: hi, I tried the same (convert a vp9.2 hdr video to hevc to watch it on a samsung smart tv). So far, I tried this command (input.mkv contains both VP9.2 video stream and audio stream): ffmpeg -i input.mkv -vf scale=out_color_matrix=bt2020:out_h_chr_pos=0

Re: [FFmpeg-user] VP9 to HEVC hdr demo conversion?

2016-12-13 Thread Andy Furniss
Carl Eugen Hoyos wrote: 2016-12-13 1:35 GMT+01:00 Andy Furniss : Carl Eugen Hoyos wrote: 2016-12-11 23:25 GMT+01:00 traycold : hi, I tried the same (convert a vp9.2 hdr video to hevc to watch it on a samsung smart tv). So far, I tried this command (input.mkv contains both VP9.2 video stream

Re: [FFmpeg-user] VP9 to HEVC hdr demo conversion?

2016-12-12 Thread Andy Furniss
Carl Eugen Hoyos wrote: 2016-12-11 23:25 GMT+01:00 traycold : hi, I tried the same (convert a vp9.2 hdr video to hevc to watch it on a samsung smart tv). So far, I tried this command (input.mkv contains both VP9.2 video stream and audio stream): ffmpeg -i input.mkv -vf scale=out_color_matrix=bt

Re: [FFmpeg-user] VP9 to HEVC hdr demo conversion?

2016-12-12 Thread Andy Furniss
traycold wrote: hi, I tried the same (convert a vp9.2 hdr video to hevc to watch it on a samsung smart tv). So far, I tried this command (input.mkv contains both VP9.2 video stream and audio stream): ffmpeg -i input.mkv -vf scale=out_color_matrix=bt2020:out_h_chr_pos=0:out_v_chr_pos=0,format=yuv

Re: [FFmpeg-user] No pixel format specified - meaning of yuv420p?

2016-12-02 Thread Andy Furniss
Andy Furniss wrote: Possibly, or you didn't restrict to baseline. You really should know what format the source video is is to do things properly. If say it's interlaced and stored as 422 or 411 then the default conversion to 420 will be wrong. You would need to add interl=1 to

Re: [FFmpeg-user] No pixel format specified - meaning of yuv420p?

2016-12-02 Thread Andy Furniss
MRob wrote: Thank you for the very fast response, it's appreciated. On 2016-12-01 16:23, Lou wrote: On Thu, Dec 1, 2016, at 03:00 PM, MRob wrote: I'm exporting a video from an older Adobe Elements (Windows) with intention to put it on the web (both H.264 and VP8). I exported using Adobe's "DV

Re: [FFmpeg-user] (de)-interlacing question

2016-11-25 Thread Andy Furniss
Toerless Eckert wrote: On Thu, Nov 24, 2016 at 12:36:52PM +, Andy Furniss wrote: Aka: Don't see anything that would indicate frame duplication, so all i can do is trust the step by step playback from vlc or mplayer. I can't reproduce getting ffmpeg to call 50fps or mplayer/vlc

Re: [FFmpeg-user] (de)-interlacing question

2016-11-24 Thread Andy Furniss
Toerless Eckert wrote: On Tue, Nov 22, 2016 at 07:30:48PM +, Andy Furniss wrote: Toerless Eckert wrote: Well, but what i am claiming is that they where interlacing progressive HD to create interlaced SD. Maybe, if the master is 720p50. I don't think they would interpolate from 720p

Re: [FFmpeg-user] (de)-interlacing question

2016-11-24 Thread Andy Furniss
Toerless Eckert wrote: On Wed, Nov 23, 2016 at 11:30:55AM +0100, Moritz Barsnick wrote: the mediaportal H264 mp4 file is 720p50 but actually 720p25 with duplicated frames, I never noticed that. :-/ (Why would they duplicate them?) I don't have any "true 50 fps" show to check right now. A rando

Re: [FFmpeg-user] (de)-interlacing question

2016-11-23 Thread Andy Furniss
Moritz Barsnick wrote: On Wed, Nov 23, 2016 at 02:20:13 +0100, Toerless Eckert wrote: Yepp. Checked a new recording, and the H264 HD TS from Astra is 720p50 with actual 50 frames, As mentioned, a lot of over-the-air programming has duplicated frames. (Additionally, even nowadays, some newly pr

Re: [FFmpeg-user] (de)-interlacing question

2016-11-22 Thread Andy Furniss
Toerless Eckert wrote: Well, but what i am claiming is that they where interlacing progressive HD to create interlaced SD. Maybe, if the master is 720p50. I don't think they would interpolate from 720p25 to do that though. I thought it might have gotten a lot easier through all the experienc

Re: [FFmpeg-user] (de)-interlacing question

2016-11-22 Thread Andy Furniss
Andy Furniss wrote: Oops, sorry for the messed up post - pasting that link managed to paste other stuff back in as well. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link

Re: [FFmpeg-user] (de)-interlacing question

2016-11-22 Thread Andy Furniss
Toerless Eckert wrote: On Tue, Nov 22, 2016 at 12:18:43PM +, Andy Furniss wrote: Seems strange that that would happen. It certainly doesn't in the UK, 25fps progressive SD does get flagged as interlaced Any idea why that flag is set ? Just because it makes the programming look

Re: [FFmpeg-user] (de)-interlacing question

2016-11-22 Thread Andy Furniss
Toerless Eckert wrote: On Tue, Nov 22, 2016 at 01:58:07AM +0100, Carl Eugen Hoyos wrote: I was sure that the "deinterlace" option is deprecated and therefore not documented, I realize that it works and no warning is shown but I would still recommend that you choose the deinterlacer you want, the

Re: [FFmpeg-user] Specifying lib path when building ffmpeg

2016-11-18 Thread Andy Furniss
Matteo Naccari wrote: Hi Andy, Are the source vids publicly available anywhere? Unfortunately no, we couldn’t clear the right for the content we used in our tests. Is turing-exe expected to work on non avx CPUs? I just get an illegal instruction on a Phenom II x4. Yes we expect it to wor

Re: [FFmpeg-user] Ticket#5936: Purple haze on ffmpeg mpeg4 decoding

2016-11-13 Thread Andy Furniss
Toerless Eckert wrote: Thanks a lot, Andy Looking at trac it seems Carl Eugen beat me to it. Mind explaining how you did that trick with git bisect ? In this case as you gave working revisions I started with those. git tag shows lots and you can see that the more recent tags start with n.

Re: [FFmpeg-user] Ticket#5936: Purple haze on ffmpeg mpeg4 decoding

2016-11-10 Thread Andy Furniss
Toerless Eckert wrote: Just opened https://trac.ffmpeg.org/ticket/5936 git diff 03bb99ae1a99fa315621308b885a8fc70702c9bc 9236f7b5a23b4907f7b2bf6346ecd88e6d76f1e0 produce 700k diff and i can not figure out what a likely cause is ;-( Git bisect - can sometimes be tricky, but this was easy (he

Re: [FFmpeg-user] unable to capture desktop session using x11grab on debian jessie with ffmpeg 3.1.4

2016-11-08 Thread Andy Furniss
肖文良 wrote: Built from the latest git source seems not help. following command runs about 15+ seconds. nothing was captured. If I add -loglevel debug, this log keep being printed: cur_dts is invalid (this is harmless if it occurs once at the start per stream) [rawvideo @ 0x3234840] PACKET SIZE

Re: [FFmpeg-user] Specifying lib path when building ffmpeg

2016-11-08 Thread Andy Furniss
Matteo Naccari wrote: More information can be found in our IBC paper and references therein (http://digital-library.theiet.org/content/conferences/10.1049/ibc.2016.0038;jsessionid=deklq2qch2t9m.x-iet-live-01). Sounds good. Are the source vids publicly available anywhere? Is turing-exe expect

Re: [FFmpeg-user] dpx to prores & h.264 - color shift

2016-10-17 Thread Andy Furniss
Andy Furniss wrote: Andreas Hummel wrote: Hello Kevin, thanks for the hint. I replaced the -colormatrix option with the -vf scale=.. option you suggested but i'm still getting a slight hue shift in the final converted movie. Even the added -sws_flags you suggested thx @Andy couldn't

Re: [FFmpeg-user] dpx to prores & h.264 - color shift

2016-10-17 Thread Andy Furniss
Andreas Hummel wrote: Hello Kevin, thanks for the hint. I replaced the -colormatrix option with the -vf scale=.. option you suggested but i'm still getting a slight hue shift in the final converted movie. Even the added -sws_flags you suggested thx @Andy couldn't solve the problem. I tried vari

Re: [FFmpeg-user] dpx to prores & h.264 - color shift

2016-10-13 Thread Andy Furniss
Kevin Wheatley wrote: Andreas, instead of using the -colormatrix option try instead using -vf scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709 assuming your DPX files are utilising full range encoding also scale has flags which may or may not affect quality in t

Re: [FFmpeg-user] Best way to record video on a computer with a really bad CPU yet really good GPU?

2016-09-10 Thread Andy Furniss
Sven C. Dack wrote: For those who haven't followed the developers mailing list; this has improved with the latest git. One can stream in H.264 and H.265 from a 1920x1080 desktop with a frame rate well above 60Hz (~100fp/s with an Nvidia GeForce GTX 960). Anyone who has never tried it and wants

Re: [FFmpeg-user] Best way to record video on a computer with a really bad CPU yet really good GPU?

2016-09-04 Thread Andy Furniss
Carl Eugen Hoyos wrote: 2016-09-04 10:37 GMT+02:00 Sven C. Dack : On 04/09/16 09:25, Carl Eugen Hoyos wrote: 2016-09-04 10:16 GMT+02:00 Sven C. Dack : $ ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f rawvideo /dev/null (I.e. 30fp/s, 2gbit/s) This will tell you how fast you can grab at the most.

Re: [FFmpeg-user] Best way to record video on a computer with a really bad CPU yet really good GPU?

2016-09-04 Thread Andy Furniss
Sven C. Dack wrote: The first thing you can do is to reduce the frames that get grabbed per second. try this: $ ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f rawvideo /dev/null (I.e. 30fp/s, 2gbit/s) Seems to default to 30 even if you can go higher. -f null - rather than -f rawvideo /dev/null m

Re: [FFmpeg-user] Best way to record video on a computer with a really bad CPU yet really good GPU?

2016-09-04 Thread Andy Furniss
happysmas...@vmail.me wrote: I am attempting to screencast using ffmpeg on my PC, but I have one problem: it uses too much CPU, even using `-crf=0`. Does anyone know how I can reduce this, either using a REALLY lossy format or using my Radeon RX 480? Even if it's not that efficient on my GPU, at

Re: [FFmpeg-user] Does ffmpeg have YV12 pixel format?

2016-07-26 Thread Andy Furniss
Carl Eugen Hoyos wrote: Andy Furniss gmail.com> writes: I have rawvideo planar Ys Us Vs (I think ffmpeg calls this yuv420p = I420 = IYUV) I play with ffplay -f rawvideo -s ... -pix_fmt yuv420p I have another rawvideo Ys Vs Us (=YV12) I play with ffplay -f rawvideo -s ... -pix_

Re: [FFmpeg-user] Does ffmpeg have YV12 pixel format?

2016-07-26 Thread Andy Furniss
Carl Eugen Hoyos wrote: Andy Furniss gmail.com> writes: Maybe I am just blind but I can't see that ffmpeg -pix_fmts has one for YV12 Or do I misunderstand what yuv420p is - I thought it was I420(IYUV) is this correct? Please describe your use-case. (As far as I can tell, YV12 wo

[FFmpeg-user] Does ffmpeg have YV12 pixel format?

2016-07-26 Thread Andy Furniss
Maybe I am just blind but I can't see that ffmpeg -pix_fmts has one for YV12 Or do I misunderstand what yuv420p is - I thought it was I420(IYUV) is this correct? TIA ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listi

Re: [FFmpeg-user] H264 VAAPI Encoder

2016-06-20 Thread Andy Furniss
Mark Thompson wrote: On 19/06/16 00:34, Andy Furniss wrote: Mark Thompson wrote: What h/w is yours? R7 360 (Bonaire, a Sea Island), so yours is one generation newer. I am therefore using radeonsi, though I believe the back-end parts talking to UVD/VCE here are actually in common between

Re: [FFmpeg-user] H264 VAAPI Encoder

2016-06-18 Thread Andy Furniss
Mark Thompson wrote: On 18/06/16 16:37, Mark Thompson wrote: On 17/06/16 23:33, Andy Furniss wrote: AMD are working on vaapi encode for mesa, only a few patches about so far and they got rejected - though not for functionality. They do work with gstreamer, but trying above with ffmpeg fails

Re: [FFmpeg-user] H264 VAAPI Encoder

2016-06-18 Thread Andy Furniss
Mark Thompson wrote: I tried avconv and it does care = bail, but I can use -profile 66 and then get the same error as ffmpeg (though it converts to rgba rather than rgb0) Default for H264 is High, so yeah you need -profile 66 to get it to work. OK, does baseline support b frames? I see wiki

Re: [FFmpeg-user] H264 VAAPI Encoder

2016-06-18 Thread Andy Furniss
Andy Furniss wrote: libva info: va_openDriver() returns 0 [vaapi @ 0x190e300] Initialised VAAPI connection: version 0.38 [AVHWDeviceContext @ 0x3ca4c40] Format 0x3231564e -> unknown. Hmm, so this bit is a bit strange saying unknown as searching tells me that it's nv12. http://01org.g

Re: [FFmpeg-user] H264 VAAPI Encoder

2016-06-17 Thread Andy Furniss
Mark Thompson wrote: On 13/05/16 20:43, Armin K. wrote: I noticed that recently a VAAPI based H264 encoder was added to ffmpeg. I built ffmpeg from git and now I have h264_vaapi listed in ffmpeg -encoders output. However, when I try to use ffmpeg ... -vcodec h264_vaapi I get the following error

Re: [FFmpeg-user] ffmpeg -f lavfi with -i color / r flag behaves strangely

2016-05-29 Thread Andy Furniss
gf wrote: 2016-05-29 10:40 GMT+02:00 Carl Eugen Hoyos : gf gmx.de> writes: ffmpeg -f lavfi -i color=d=10 -r 50 -c copy test2.avi How is this supposed to work / what kind of output do you expect? In case this isn't clear: Neither duplicating nor dropping frames is possible with -codec copy,

[FFmpeg-user] ffplay -f lavfi wav regression since vsrc_movie: convert to codecpar

2016-05-28 Thread Andy Furniss
Since - commit 8cae006c5646a08fd73cf62c46bb16598be6c7b4 Merge: 6bc5ef3 1138eb5 Author: Derek Buitenhuis Date: Mon Apr 11 14:42:30 2016 +0100 Merge commit '1138eb5509d3db7f6d565cb45f137a786d22beb9' * commit '1138eb5509d3db7f6d565cb45f137a786d22beb9': vsrc_movie: convert to codec

Re: [FFmpeg-user] newbie help restream

2016-05-18 Thread Andy Furniss
jimmy keffer wrote: i'm trying 2 restream an http feed back 2 my wowza server if stream from vlc to woza a seems ok but i use ffmeg the stream skips vand stops ffmpeg -i http://nasatv-lh.akamaihd.net/i/NASA_101@319270/master.m3u8 -vcodec copy -acodec copy -f mpegts udp://127.0.0.1:1?pkt_size=

Re: [FFmpeg-user] Apparently the ffmpeg software scaler "sucks"

2016-05-18 Thread Andy Furniss
Peter Rabbitson wrote: On 05/18/2016 06:45 AM, Reuben Martin wrote: curl -s http://www.4p8.com/eric.brasseur/gamma-1.0-or-2.2.png | \ ffmpeg -f image2pipe -i - \ -vf 'eq=gamma=0.454545,scale=w=iw/2:h=ih/2,eq=gamma=2.2' \ -vframes 1 -c:v bmp -f image2pipe - | ffplay -i - Messes up a ramp thoug

Re: [FFmpeg-user] The internal ffmpeg rgb=>yuv pipeline and conversion matrices

2016-05-10 Thread Andy Furniss
Peter Rabbitson wrote: -c:v libx264 -colorspace bt709 -pix_fmt yuv444p -profile:v high444 \ -qp 0 -preset:v ultrafast \ -t 5 greenz.mkv FWIW just using -colorspace is not complete. ffmpeg -i greenz.mkv would list 709/unknown/unknown adding -color_primaries b

Re: [FFmpeg-user] Output video size depending on frame rate while creating video from image list

2016-05-09 Thread Andy Furniss
Stéphane Saffré wrote: Hi again, Sorry for that, the email was accidentally sent... I am creating a video from a list of images and as the video frame rate is not important in my use case, I have experimented with different frame rates and noticed that the ouput video size changes a lot dependi

Re: [FFmpeg-user] The internal ffmpeg rgb=>yuv pipeline and conversion matrices

2016-05-09 Thread Andy Furniss
Peter Rabbitson wrote: On 05/09/2016 04:34 PM, Andy Furniss wrote: Don't test with color src - use something real and you may see different. Nod. For completeness below is *literally* what my pipeline looks like, except of course it isn't "all green". The co

Re: [FFmpeg-user] The internal ffmpeg rgb=>yuv pipeline and conversion matrices

2016-05-09 Thread Andy Furniss
Peter Rabbitson wrote: On 05/09/2016 03:01 PM, Peter Rabbitson wrote: scale=in_color_matrix=bt601:out_color_matrix=bt709:in_range=full:out_range=tv On a real source I don't think in_color_matrix=bt601 would be correct. in_range=full:out_range=tv IIRC failed testing with color src (I guess it

  1   2   3   >