[FFmpeg-user] ffmpeg chromakey with v4l2 loopback device
Hello, when running the following ffmpeg chain I can't set the output psudo device (/dev/video1) format. What am I doing wrong? best steven error message: [v4l2 @ 0x55e5418ddee0] Unknown V4L2 pixel format equivalent for yuva420p Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- command line: ffmpeg -i Pictures/city.png -i /dev/video0 -filter_complex '[1:v]colorkey=blue:.2:0.0[ckout];[0:v][ckout]overlay[out]' -map '[out]' -f v4l2 /dev/video1 steven@honshu:~/src/v4l2loopback$ modinfo v4l2loopback filename: /lib/modules/4.15.0-20-generic/extra/v4l2loopback.ko license:GPL author: Vasily Levin, IOhannes m zmoelnig ,Stefan Diewald,Anton Novikovet al. description:V4L2 loopback video device srcversion: F970FD08DB80D838C18FFD7 depends:videodev retpoline: Y name: v4l2loopback vermagic: 4.15.0-20-generic SMP mod_unload parm: debug:debugging level (higher values == more verbose) (int) parm: max_buffers:how many buffers should be allocated (int) parm: max_openers:how many users can open loopback device (int) parm: devices:how many devices should be created (int) parm: video_nr:video device numbers (-1=auto, 0=/dev/video0, etc.) (array of int) parm: card_label:card labels for every device (array of charp) parm: exclusive_caps:whether to announce OUTPUT/CAPTURE capabilities exclusively or not (array of bool) parm: max_width:maximum frame width (int) module installed from github source with last commit: commit f998233aafa92a268a91929705e1b453b98f1b9d (HEAD -> master, origin/master, origin/HEAD) Author: IOhannes m zmölnig Date: Thu Nov 15 21:52:38 2018 +0100 Distributor ID: LinuxMint Description: Linux Mint 19.1 Tessa Release: 19.1 Codename: tessa ___ 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] Is there a way to speed up to make partial transcoding of a video file.
2019-01-13 0:48 GMT+01:00, shirish शिरीष : >> 2019-01-12 19:29 GMT+01:00, shirish शिरीष : >> >>> I usually find it takes quite some time when trying to partially >>> trancode/copy a file. I am concerned with the startup time. It takes >>> anywhere between 3-5 minutes before transcoding/copying starts. >> >> Command line and complete, uncut console output missing. > I did share the console output via - > > https://paste.debian.net/1059975/ Except for input files, this is not welcome! > $ ffmpeg -i somefile.mkv -ss 00:49:55 -t 00:4:44 output.mkv If you move "-ss" in front of the input file (and the input is seekable), it will significantly speed up the command. For future questions, please remember that only current FFmpeg git head is supported 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".
Re: [FFmpeg-user] Is there a way to speed up to make partial transcoding of a video file.
addition at bottom :- On 12/01/2019, shirish शिरीष wrote: > At bottom :- > > On 12/01/2019, Kieran O Leary wrote: >> Carl never cc'd you >> >> -- Forwarded message - >> From: Carl Eugen Hoyos >> Date: Sat, 12 Jan 2019, 23:27 >> Subject: Re: [FFmpeg-user] Is there a way to speed up to make partial >> transcoding of a video file. >> To: FFmpeg user questions >> >> >> 2019-01-12 19:29 GMT+01:00, shirish शिरीष : >> >>> I usually find it takes quite some time when trying to partially >>> trancode/copy a file. I am concerned with the startup time. It takes >>> anywhere between 3-5 minutes before transcoding/copying starts. >> >> Command line and complete, uncut console output missing. >> >> 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". >> > > I did share the console output via - > > https://paste.debian.net/1059975/ > > I didn't want to share the console output on mail as it is/was too big. > > The only thing I replaced are renaming the media file to something.mkv > and the output file as output.mkv otherwise everything else is as I > got the output on the console. > If some info. is still missing, please let me know. -- Regards, Shirish Agarwal शिरीष अग्रवाल My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8 ___ 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] Is there a way to speed up to make partial transcoding of a video file.
At bottom :- On 12/01/2019, Kieran O Leary wrote: > Carl never cc'd you > > -- Forwarded message - > From: Carl Eugen Hoyos > Date: Sat, 12 Jan 2019, 23:27 > Subject: Re: [FFmpeg-user] Is there a way to speed up to make partial > transcoding of a video file. > To: FFmpeg user questions > > > 2019-01-12 19:29 GMT+01:00, shirish शिरीष : > >> I usually find it takes quite some time when trying to partially >> trancode/copy a file. I am concerned with the startup time. It takes >> anywhere between 3-5 minutes before transcoding/copying starts. > > Command line and complete, uncut console output missing. > > 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". > I did share the console output via - https://paste.debian.net/1059975/ I didn't want to share the console output on mail as it is/was too big. The only thing I replaced are renaming the media file to something.mkv and the output file as output.mkv otherwise everything else is as I got the output on the console. -- Regards, Shirish Agarwal शिरीष अग्रवाल My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8 ___ 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] Is there a way to speed up to make partial transcoding of a video file.
2019-01-12 19:29 GMT+01:00, shirish शिरीष : > I usually find it takes quite some time when trying to partially > trancode/copy a file. I am concerned with the startup time. It takes > anywhere between 3-5 minutes before transcoding/copying starts. Command line and complete, uncut console output missing. 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".
Re: [FFmpeg-user] Meaning of ffprobe output
2019-01-12 22:32 GMT+01:00, Ulf Zibis : > Am 11.01.19 um 01:47 schrieb Carl Eugen Hoyos: >> 2019-01-11 0:39 GMT+01:00, Ulf Zibis : >> >>> tbn >> This is the container timebase, 90k for mpeg streams. > > For what stands 90k? For 90,000 milli seconds? It stands for a timebase of 1/9 which is the timebase for all mpeg streams (and cannot be changed afaik). >>> -movflags +faststart -c copy CYD_copy.vob >> Sadly, output option cannot (easily) be checked for correctness. >> Using options that cannot have an effect may reduce your >> chance to get good help here (consider the increased time it >> needs to understand what's going on / what your intentions are). > > The probably wrong '+' was taken from the example in the Wiki: > https://trac.ffmpeg.org/wiki/Encode/H.264#AdditionalInformationTips > Maybe this is an error? > Because VOB also is coded with MPEG, I thought this flag may have a > positive effect. > Anyway, without the flag I get the same ffprobe data. The option "movflags" can only have an effect for mov (and friends) output, not for mpeg streams. [...] > Does 50 tbc mean, that I still have 50 interlaced half-frames per > second, or why is the codecs timebase 50? No, it means that the codec timebase is 1/50. (The reason that these answers do not really help you is that the values are not necessarily meant for you, they typically have more meaning for developers.) [...] >> libx264 does not support PAFF encoding. > > What is PAFF? H.264 field-encoding, another method of h.264 interlaced encoding exists, MBAFF (which is supported by libx264). 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".
Re: [FFmpeg-user] Meaning of ffprobe output
Thanks Carl Eugen ... Am 11.01.19 um 01:47 schrieb Carl Eugen Hoyos: > 2019-01-11 0:39 GMT+01:00, Ulf Zibis : > >> tbn > This is the container timebase, 90k for mpeg streams. For what stands 90k? For 90,000 milli seconds? >> -movflags +faststart -c copy CYD_copy.vob > Sadly, output option cannot (easily) be checked for correctness. > Using options that cannot have an effect may reduce your > chance to get good help here (consider the increased time it > needs to understand what's going on / what your intentions are). The probably wrong '+' was taken from the example in the Wiki: https://trac.ffmpeg.org/wiki/Encode/H.264#AdditionalInformationTips Maybe this is an error? Because VOB also is coded with MPEG, I thought this flag may have a positive effect. Anyway, without the flag I get the same ffprobe data. *From:* $ ffprobe CYD_copy.vob Input #0, mpeg, from 'CYD_copy.vob': Duration: 01:16:20.74, start: 0.50, bitrate: 7068 kb/s Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg, top first), 704x576 [SAR 12:11 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc *I transcoded with:* $ ffmpeg -i CYD_copy.vob -movflags +faststart -vf atadenoise -c:v libx264 -c:a libmp3lame -q:a 4 CYD_atadenoise_H.264.mp4 *and get:* $ ffprobe CYD_atadenoise_H.264.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'CYD_atadenoise_H.264_mp3-q4.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.83.100 Duration: 01:16:20.42, start: 0.00, bitrate: 1403 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 704x576 [SAR 12:11 DAR 4:3], 1276 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 119 kb/s (default) Metadata: handler_name : SoundHandler Does 50 tbc mean, that I still have 50 interlaced half-frames per second, or why is the codecs timebase 50? Thanks for your comments -Ulf > Not necessarily related: "-c copy" cannot change anything > about fields ("half-frames"), I didn't expect that, the question was about: -c:v libx264 > libx264 does not support PAFF > encoding. What is PAFF? Thanks in advance -Ulf ___ 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] Is there a way to speed up to make partial transcoding of a video file.
Dear all, Thank you for making the awesome software ffmpeg. I am not subscribed to the archives so please CC me in case somebody answers it one way or the other. I usually find it takes quite some time when trying to partially trancode/copy a file. I am concerned with the startup time. It takes anywhere between 3-5 minutes before transcoding/copying starts. Something like https://paste.debian.net/1059975/ I find it takes quite a bit of time for the copy to be there. Is there anyway to make the process a bit faster, some sort of flag or something ? I am asking due to the cpu capabilities given - [libx264 @ 0x55ab4aa24380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 There might be some more things which could help perhaps - from inxi - CPU: Topology: Quad Core model: Intel Core i5-7400 bits: 64 type: MCP arch: Kaby Lake rev: 9 L1 cache: 256 KiB L2 cache: 6144 KiB L3 cache: 6144 KiB bogomips: 24000 Speed: 800 MHz min/max: 800/3300 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm mca mce mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer tsc_known_freq vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr Graphics: Device-1: Intel HD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:5912 Display: server: X.Org 1.20.3 driver: modesetting unloaded: fbdev,vesa resolution: 1600x900~60Hz OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2) v: 4.5 Mesa 18.2.8 compat-v: 3.0 direct render: Yes It's a desktop machine having 8 GB RAM. Look forward to know if any hack or something can be done to make it a bit faster, or if there are any settings I can experiment with. -- Regards, Shirish Agarwal शिरीष अग्रवाल My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8 ___ 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] problems consuming live single file hls
2019-01-12 11:44 GMT+01:00, Daniel Oberhoff : >>> Since hls is a streaming format i would actually expect this to work. >> It does work for "multi file" which is what hls is meant to be. > > Byte-range is part of the standard (see > https://tools.ietf.org/html/draft-pantos-http-live-streaming-08#section-3.4.1), > so single file is as much "meant to be" as multi-file afaict. But the playlist does not change or does it? >> If you use single file, I don't see how the behaviour can be >> different, you can reproduce it using mpegts on your local >> file system. > > What do you mean? The desire is for new entries in the playlist to > become visible only after the data is visible to open/read. You are > saying this is impossible? I cant imagine that to be honest. Would you > accept a patch if i can get this to work? Patches are always preferred over bug reports (but bug reports are very welcome), and there is no doubt that I may completely misunderstand the issue. 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".
Re: [FFmpeg-user] problems consuming live single file hls
(sorry, i keep miss-sending this to your personal address) >> Since hls is a streaming format i would actually expect this to work. > It does work for "multi file" which is what hls is meant to be. Byte-range is part of the standard (see https://tools.ietf.org/html/draft-pantos-http-live-streaming-08#section-3.4.1), so single file is as much "meant to be" as multi-file afaict. > If you use single file, I don't see how the behaviour can be > different, you can reproduce it using mpegts on your local > file system. What do you mean? The desire is for new entries in the playlist to become visible only after the data is visible to open/read. You are saying this is impossible? I cant imagine that to be honest. Would you accept a patch if i can get this to work? Best Daniel pEpkey.asc Description: application/pgp-keys pEpkey.asc Description: application/pgp-keys ___ 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".