[FFmpeg-user] buffer underflow - processing VOB files
Hi,This is my first post to ffmpeg, please advise if I misplaced this issue.I have been using ffmpeg for many years and now have an issue with the latest version:ffmpeg-20180731-481741e-win64-static When transcoding a VOB, ntsc-dvd, I get "buffer underflow" errors. This is especially true when using a delayed start time. I originally discovered the problem on my own Linux build and reproduced it using pre built executables from: //ffmpeg.zeranoe.com/builds/win64/static/ I managed to isolate the problem between two zeranoe builds:ffmpeg-20180329-e5819fa-win64-static - seems to work correctly ffmpeg-20180330-cdd6a52-win64-static - generates "buffer underflow" The resulting output file from the problematic builds also generate errors when processed by dvdauthor. Below is the console output from the error'ed case case followed by the good case between two versions produced with a day of each other. I will continue to study the problem and post more information as I collect it and upon request. Hopefully this can get resolved. Do I need to change some arguments, is this a new bug or is what I am trying to do no longer supported??(Note: I have not yet discovered where to put my sample files, I will continue looking)Thanks a lot! This is the latest version:c:\Developer>cd ffmpeg-20180731-481741e-win64-static\bin c:\Developer\ffmpeg-20180731-481741e-win64-static\bin>ffmpeg.exe -i ../../20180726_150335-phasebtop1.vob -ss 10 -target ntsc-dvd -flags +cgop+ilme+ildct -alternate_scan 1 -top 1 -g 15 -sc_threshold 10 -y bob.VOB -v debugffmpeg version N-91548-g481741ece0 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7.3.1 (GCC) 20180722 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-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth libavutil 56. 18.102 / 56. 18.102 libavcodec 58. 22.100 / 58. 22.100 libavformat 58. 17.101 / 58. 17.101 libavdevice 58. 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 libpostproc 55. 2.100 / 55. 2.100Splitting the commandline.Reading option '-i' ... matched as input url with argument '../../20180726_150335-phasebtop1.vob'.Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '10'.Reading option '-target' ... matched as option 'target' (specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50"with optional prefixes "pal-", "ntsc-" or "film-")) with argument 'ntsc-dvd'.Reading option '-flags' ... matched as AVOption 'flags' with argument '+cgop+ilme+ildct'.Reading option '-alternate_scan' ... matched as AVOption 'alternate_scan' with argument '1'.Reading option '-top' ... matched as option 'top' (top=1/bottom=0/auto=-1 field first) with argument '1'.Reading option '-g' ... matched as AVOption 'g' with argument '15'.Reading option '-sc_threshold' ... matched as AVOption 'sc_threshold' with argument '10'.Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.Reading option 'bob.VOB' ... matched as output url.Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.Finished splitting the commandline.Parsing a group of options: global .Applying option y (overwrite output files) with argument 1.Applying option v (set logging level) with argument debug.Successfully parsed a group of options.Parsing a group of options: input url ../../20180726_150335-phasebtop1.vob.Successfully parsed a group of options.Opening an input file: ../../20180726_150335-phasebtop1.vob.[NULL @ 00613ec0] Opening '../../20180726_150335-phasebtop1.vob' for reading[file @ 006145c0] Setting default whitelist 'file,crypto'[mpeg @ 00613ec0] Format mpeg probed with size=2048 and score=26[mpeg @ 00613ec0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:0[mpeg @ 00613ec0] probing stream 1 pp:2500[mpeg @ 00613ec0] Probe with size=2011, packets=1 detected mpegvideo with score=25[mpeg @ 00613ec0] probed stream 1[mpeg2video @ 00614b80] Format yuv420p chosen by get_format().[mpeg @ 00613ec0] max_analyze_d
Re: [FFmpeg-user] Curves filter to only affect dark grey/black
If anyone is interested, I figured out how to fix my problem. Since I already had to compile ffmpeg, I just modifed the source code to the curves filter. Basically, I compute the saturation and value for each pixel, and only apply the curve if the saturation and value are low enough... It works well for me. The relevant filter is libavfilter/vf_curves.c I modified the function: static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) } else { uint8_t *dst = out->data[0] + slice_start * out->linesize[0]; const uint8_t *src = in->data[0] + slice_start * in->linesize[0]; for (y = slice_start; y < slice_end; y++) { for (x = 0; x < in->width * step; x += step) { unsigned char rgbMin, rgbMax, val, sat; rgbMin = src[x + r] < src[x + g] ? (src[x + r] < src[x + b] ? src[x + r] : src[x + b]) : (src[x + g] < src[x + b] ? src[x + g] : src[x + b]); rgbMax = src[x + r] > src[x + g] ? (src[x + r] > src[x + b] ? src[x + r] : src[x + b]) : (src[x + g] > src[x + b] ? src[x + g] : src[x + b]); val = rgbMax; if(val == 0) sat = 255; else sat = 255 * (long)(rgbMax - rgbMin) / val; if((sat <= 200 && val < 30) || val < 20) { dst[x + r] = curves->graph[R][src[x + r]]; dst[x + g] = curves->graph[G][src[x + g]]; dst[x + b] = curves->graph[B][src[x + b]]; if(!direct && step == 4) dst[x + a] = src[x + a]; } else { dst[x + r] = src[x + r]; dst[x + g] = src[x + g]; dst[x + b] = src[x + b]; if(!direct && step == 4) dst[x + a] = src[x + a]; } } dst += out->linesize[0]; src += in ->linesize[0]; } } return 0; } Hi all, I am processing some video and would love help with the curves filter. The video is shot with a 'black' background, but it is not completely black (notice folds in the backdrop). I want to filter the video to make the background completely black without affecting any of the rest of the video at all. I'm using the following curves filter with some success: curves=master='0/0 0.10/0 .15/.15 .16/.16 .17/.17 .2/.2 .25/.25 .3/.3 .4/.4 .5/.5 .8/.8 1/1' The problem is that the curves filter is affecting (darkening) the dark blue shirt as well. Here is a screenshot of the video I am working on. http://grauman.com/Screenshot_20180801_143551.png Is there a way to only affect the levels when the saturation is low (gray/black)? Josh ___ 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] RTMP netstream commands
Yes, if I SIGKILL, I can take over the stream from another server. So, it's not really essential. Having control over the netstream command seemed more elegant to me, but if its not possible, SIGKILL will do. Thanks Carl! On Wed, Aug 1, 2018 at 2:21 PM, Carl Eugen Hoyos wrote: > 2018-08-01 17:10 GMT+02:00, bob johnson : > > Hello! > > > > When I use ffmpeg to send an rtmp to stream to various platforms, it > works > > great. However, when the source stream ends it seems like ffmpeg > > automatically sends the deleteStream netstream command referenced here > > https://www.adobe.com/content/dam/acom/en/devnet/rtmp/pdf/ > rtmp_specification_1.0.pdf > > > > Do you know how I can disable this? I am trying to account for crashes on > > my server and take over the stream from another server, but it is not > > possible to resume the stream once this command is issued. > > > > If the ffmpeg process is SIGKILL, it does not seem to send the command > > And in that case you can take over the stream from another server? > > It is currently impossible not to send deleteStream, I suspect it is > trivial not to send it but nobody so far felt the need or saw the > usefulness. > > 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] Curves filter to only affect dark grey/black
Hi all, I am processing some video and would love help with the curves filter. The video is shot with a 'black' background, but it is not completely black (notice folds in the backdrop). I want to filter the video to make the background completely black without affecting any of the rest of the video at all. I'm using the following curves filter with some success: curves=master='0/0 0.10/0 .15/.15 .16/.16 .17/.17 .2/.2 .25/.25 .3/.3 .4/.4 .5/.5 .8/.8 1/1' The problem is that the curves filter is affecting (darkening) the dark blue shirt as well. Here is a screenshot of the video I am working on. http://grauman.com/Screenshot_20180801_143551.png Is there a way to only affect the levels when the saturation is low (gray/black)? Josh ___ 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 4.0 fails to transcoding one 4k clip
2018-07-27 10:23 GMT+02:00, qw : > I use the following command, which reports error: > > ffmpeg -nostdin -y -hwaccel qsv -c:v h264_qsv -i src_AVC_4K.mp4 -b:a 8 > -ar 44100 -c:v h264_qsv -g 300 -profile:v high -preset veryfast -c:a > libfdk_aac -max_muxing_queue_size 4000 -b:v 17418000 -movflags +faststart > -strict -3 -vsync passthrough -f mp4 dst_AVC_4K.mp4 > > ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers Please test current FFmpeg git head and please verify if the issue you see is related to qsv or not. 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] RTMP netstream commands
2018-08-01 17:10 GMT+02:00, bob johnson : > Hello! > > When I use ffmpeg to send an rtmp to stream to various platforms, it works > great. However, when the source stream ends it seems like ffmpeg > automatically sends the deleteStream netstream command referenced here > https://www.adobe.com/content/dam/acom/en/devnet/rtmp/pdf/rtmp_specification_1.0.pdf > > Do you know how I can disable this? I am trying to account for crashes on > my server and take over the stream from another server, but it is not > possible to resume the stream once this command is issued. > > If the ffmpeg process is SIGKILL, it does not seem to send the command And in that case you can take over the stream from another server? It is currently impossible not to send deleteStream, I suspect it is trivial not to send it but nobody so far felt the need or saw the usefulness. 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] Trying to get lossless PNG -> VP9 (yuv) -> PNG
2018-08-01 21:24 GMT+02:00, Kirk Liberty : > On Wed, Aug 1, 2018 at 2:00 PM, Carl Eugen Hoyos wrote: >> 2018-08-01 6:12 GMT+02:00, Kirk Liberty : >>> On Tue, Jul 31, 2018 at 7:04 PM, Carl Eugen Hoyos >>> wrote: 2018-07-29 0:16 GMT+02:00, Kirk Liberty : > My plan is to use the YCgCo > colorspace to get lossless conversion of rgb->yuv->rgb This conversion (may be lossless in theory but) is not lossless with FFmpeg, both x264 and libvpx-vp9 support encoding rgb which can be lossless. >>> >>> Why is YCgCo not lossless in FFmpeg? >> >> It is / can be. >> What is not lossless is the conversion from PIX_FMT_GBR* (or RGB*) >> to PIX_FMT_YUV* > > Are you referring to rgba2ycocg() in texturedspenc.c? No. You wrote above "lossless conversion of rgb->yuv->rgb" and i am telling you that this is not possible with FFmpeg when using libvpx-vp9 or x264. Both libvpx-vp9 and x264 support rgb encoding and both can encode in a lossless fashion. If you have an additional question concerning FFmpeg usage, please provide the command line you tested together with the complete, uncut console output. 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] repeat first and last frame of a video
On 02-08-2018 01:15 AM, Michael Koch wrote: Related question: Is it possible to give ffmpeg a video as input, and get the last frame of this video as output? Yes, using something like ffmpeg -sseof -0.2 -i input -q:v 1 -update 1 out.jpg For holding last frame, see https://stackoverflow.com/a/43417253/5726027 Regards, Gyan ___ 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] repeat first and last frame of a video
Repeat the first frame of a video 100 times (with the same framerate as the video), then copy the video, then repeat the last frame 100 times? If you mean to copy video without generally losing quality than answer is no. Otherwise you can use loop video filter. The loop video filter requires the number of the first frame of the loop. For the first frame that's 0, that's easy. But is there a way for find out the number of the last frame in a video? I mean automatically, because I want to run the command for several videos of different length. Related question: Is it possible to give ffmpeg a video as input, and get the last frame of this video as output? Thanks, Michael ___ 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] Trying to get lossless PNG -> VP9 (yuv) -> PNG
On Wed, Aug 1, 2018 at 2:00 PM, Carl Eugen Hoyos wrote: > 2018-08-01 6:12 GMT+02:00, Kirk Liberty : >> On Tue, Jul 31, 2018 at 7:04 PM, Carl Eugen Hoyos >> wrote: >>> >>> 2018-07-29 0:16 GMT+02:00, Kirk Liberty : >>> > My plan is to use the YCgCo >>> > colorspace to get lossless conversion of rgb->yuv->rgb >>> >>> This conversion (may be lossless in theory but) is not lossless >>> with FFmpeg, both x264 and libvpx-vp9 support encoding rgb >>> which can be lossless. >> >> Why is YCgCo not lossless in FFmpeg? > > It is / can be. > What is not lossless is the conversion from PIX_FMT_GBR* (or RGB*) > to PIX_FMT_YUV* Are you referring to rgba2ycocg() in texturedspenc.c? 574 * Convert a RGBA buffer to unscaled YCoCg. 575 * Scale is usually introduced to avoid banding over a certain range of colors, 576 * but this version of the algorithm does not introduce it as much as other 577 * implementations, allowing for a simpler and faster conversion. 578 */ 579 static void rgba2ycocg(uint8_t *dst, const uint8_t *pixel) 580 { 581 int r = pixel[0]; 582 int g = (pixel[1] + 1) >> 1; 583 int b = pixel[2]; 584 int t = (2 + r + b) >> 2; 585 586 dst[0] = av_clip_uint8(128 + ((r - b + 1) >> 1)); /* Co */ 587 dst[1] = av_clip_uint8(128 + g - t); /* Cg */ 588 dst[2] = 0; 589 dst[3] = av_clip_uint8(g + t); /* Y */ 590 } Kirk ___ 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] repeat first and last frame of a video
Repeat the first frame of a video 100 times (with the same framerate as the video), then copy the video, then repeat the last frame 100 times? If you mean to copy video without generally losing quality than answer is no. Otherwise you can use loop video filter. The loop video filter requires the number of the first frame of the loop. For the first frame that's 0, that's easy. But is there a way for find out the number of the last frame in a video? I mean automatically, because I want to run the command for several videos of different length. Thanks, Michael ___ 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] repeat first and last frame of a video
On 8/1/18, Michael Koch wrote: > Hi, > > is it possible to do the following with ffmpeg? > > Repeat the first frame of a video 100 times (with the same framerate as > the video), then copy the video, then repeat the last frame 100 times? If you mean to copy video without generally losing quality than answer is no. Otherwise you can use loop video filter. ___ 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] repeat first and last frame of a video
Hi, is it possible to do the following with ffmpeg? Repeat the first frame of a video 100 times (with the same framerate as the video), then copy the video, then repeat the last frame 100 times? Thanks, Michael ___ 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] (no subject)
2018-08-01 17:35 GMT+02:00, juan carlos rebate : > How could I edit video without reconverting this video? For example, > add a watermark This is (generally) impossible and not related to FFmpeg. 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] Trying to get lossless PNG -> VP9 (yuv) -> PNG
2018-08-01 6:12 GMT+02:00, Kirk Liberty : > On Tue, Jul 31, 2018 at 7:04 PM, Carl Eugen Hoyos > wrote: >> >> 2018-07-29 0:16 GMT+02:00, Kirk Liberty : >> > My plan is to use the YCgCo >> > colorspace to get lossless conversion of rgb->yuv->rgb >> >> This conversion (may be lossless in theory but) is not lossless >> with FFmpeg, both x264 and libvpx-vp9 support encoding rgb >> which can be lossless. > > Why is YCgCo not lossless in FFmpeg? It is / can be. What is not lossless is the conversion from PIX_FMT_GBR* (or RGB*) to PIX_FMT_YUV* 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] FFPROBE reporting all I-Frames as Keyframes
2018-08-01 19:16 GMT+02:00, Edilson : > So, as the subject describes, FFPROBE analysis reports thatall I-Frames in a > TS file are keyframes. > > Running the same analysis on a professional MPEG-TS file analyzer,it shows > that the keyframes are in the interval of 2s, just as configured onthe > encoder, and the rest of the frames are regular (non IDR). Input sample 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] MPEG DASH with Audio Only Adaptive Streaming
I figured out how to do this. The problem was just that I forgot to put the -map 0:0 -map 1:0, etc. arguments in these commands. So ffmpeg was only selecting the first stream in the input. > On Aug 1, 2018, at 12:03 PM, Ronak wrote: > > Hi all, > > I'd like to generate an MPEG DASH stream that would include all of the > Representations/AdaptationSets inside of my mp4. I've mapped 5 separate audio > streams into my input mp4. > > However, no matter what I do with the command line arguments, I'm always only > getting one Adaptation Set. > > This is command I've tried: > > a45e60e46a79:input ronakp$ ffmpeg -i output.mp4 -codec copy -f dash > -single_file_name output.m4s -seg_duration 9.75238095238095 output.mpd > ffmpeg version git-2018-06-23-b86c575 Copyright (c) 2000-2018 the FFmpeg > developers > built with Apple LLVM version 9.1.0 (clang-902.0.39.2) > configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-b86c575 > --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables > --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl > --enable-libfdk-aac --enable-libmp3lame --enable-libopus > --enable-librubberband --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma > --enable-nonfree > libavutil 56. 18.102 / 56. 18.102 > libavcodec 58. 20.103 / 58. 20.103 > libavformat58. 17.101 / 58. 17.101 > libavdevice58. 4.101 / 58. 4.101 > libavfilter 7. 25.100 / 7. 25.100 > libavresample 4. 0. 0 / 4. 0. 0 > libswscale 5. 2.100 / 5. 2.100 > libswresample 3. 2.100 / 3. 2.100 > libpostproc55. 2.100 / 55. 2.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': > Metadata: >major_brand : isom >minor_version : 512 >compatible_brands: isomiso2mp41 >encoder : Lavf58.17.101 > Duration: 00:09:44.78, start: 0.00, bitrate: 810 kb/s >Stream #0:0(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 32 kb/s (default) >Metadata: > handler_name: SoundHandler >Stream #0:1(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 64 kb/s (default) >Metadata: > handler_name: SoundHandler >Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, > fltp, 128 kb/s (default) >Metadata: > handler_name: SoundHandler >Stream #0:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, > fltp, 256 kb/s (default) >Metadata: > handler_name: SoundHandler >Stream #0:4(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, > fltp, 320 kb/s (default) >Metadata: > handler_name: SoundHandler > [dash @ 0x7fe19309ac00] Opening 'output.m4s' for writing > Output #0, dash, to 'output.mpd': > Metadata: >major_brand : isom >minor_version : 512 >compatible_brands: isomiso2mp41 >encoder : Lavf58.17.101 >Stream #0:0(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 32 kb/s (default) >Metadata: > handler_name: SoundHandler > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Press [q] to stop, [?] for help > > > I've tried other commands like: > > ffmpeg -i output.mp4 -codec copy -f dash -single_file_name output.m4s > -seg_duration 9.75238095238095 -adaptation_sets "id=0,streams=a" > -hls_playlist 1 output.mpd > > But it doesn't seem to generate an MPEG DASH stream for all input streams > either. > > What is the correct command line I should be using for this? If this doesn't > work, I'll file an issue to ffmpeg for this, and try to figure out how to fix > this. > > Thanks, > > Ronak > > > ___ > 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] FFPROBE reporting all I-Frames as Keyframes
So, as the subject describes, FFPROBE analysis reports thatall I-Frames in a TS file are keyframes. Running the same analysis on a professional MPEG-TS file analyzer,it shows that the keyframes are in the interval of 2s, just as configured onthe encoder, and the rest of the frames are regular (non IDR). ffprobe -v quiet -print_format json -show_format -show_frames -show_streams -unit -select_streams v "D:\CH621.ts" > "D:\CH621.ts.json" -skip_frame nointra The above output is attached. Can someone help me understand why? Thanks! Edilson CH621.ts - Copy.json Description: application/json ___ 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] MPEG DASH with Audio Only Adaptive Streaming
Hi all, I'd like to generate an MPEG DASH stream that would include all of the Representations/AdaptationSets inside of my mp4. I've mapped 5 separate audio streams into my input mp4. However, no matter what I do with the command line arguments, I'm always only getting one Adaptation Set. This is command I've tried: a45e60e46a79:input ronakp$ ffmpeg -i output.mp4 -codec copy -f dash -single_file_name output.m4s -seg_duration 9.75238095238095 output.mpd ffmpeg version git-2018-06-23-b86c575 Copyright (c) 2000-2018 the FFmpeg developers built with Apple LLVM version 9.1.0 (clang-902.0.39.2) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-b86c575 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-nonfree libavutil 56. 18.102 / 56. 18.102 libavcodec 58. 20.103 / 58. 20.103 libavformat58. 17.101 / 58. 17.101 libavdevice58. 4.101 / 58. 4.101 libavfilter 7. 25.100 / 7. 25.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 2.100 / 5. 2.100 libswresample 3. 2.100 / 3. 2.100 libpostproc55. 2.100 / 55. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf58.17.101 Duration: 00:09:44.78, start: 0.00, bitrate: 810 kb/s Stream #0:0(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 32 kb/s (default) Metadata: handler_name: SoundHandler Stream #0:1(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default) Metadata: handler_name: SoundHandler Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name: SoundHandler Stream #0:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 256 kb/s (default) Metadata: handler_name: SoundHandler Stream #0:4(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 320 kb/s (default) Metadata: handler_name: SoundHandler [dash @ 0x7fe19309ac00] Opening 'output.m4s' for writing Output #0, dash, to 'output.mpd': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf58.17.101 Stream #0:0(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 32 kb/s (default) Metadata: handler_name: SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help I've tried other commands like: ffmpeg -i output.mp4 -codec copy -f dash -single_file_name output.m4s -seg_duration 9.75238095238095 -adaptation_sets "id=0,streams=a" -hls_playlist 1 output.mpd But it doesn't seem to generate an MPEG DASH stream for all input streams either. What is the correct command line I should be using for this? If this doesn't work, I'll file an issue to ffmpeg for this, and try to figure out how to fix this. Thanks, Ronak ___ 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] (no subject)
Am 01.08.2018 um 17:35 schrieb juan carlos rebate: > How could I edit video without reconverting this video? For example, add a > watermark, or delete a frame and that the format and quality do not change. > The commands -c copy or -vcodec and -acodec copy does not have the desired > effect, although these commands supposedly are for that the result is that > the video has a higher bit rate, also when you use the copy commands you > can not use -maxrate and -minrate because it would not make sense. > what should I do? you can't - and next time bother to write a subject to get your messages not marked as spam ___ 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] (no subject)
How could I edit video without reconverting this video? For example, add a watermark, or delete a frame and that the format and quality do not change. The commands -c copy or -vcodec and -acodec copy does not have the desired effect, although these commands supposedly are for that the result is that the video has a higher bit rate, also when you use the copy commands you can not use -maxrate and -minrate because it would not make sense. what should I do? ___ 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] RTMP netstream commands
Hello! When I use ffmpeg to send an rtmp to stream to various platforms, it works great. However, when the source stream ends it seems like ffmpeg automatically sends the deleteStream netstream command referenced here https://www.adobe.com/content/dam/acom/en/devnet/rtmp/pdf/rtmp_specification_1.0.pdf Do you know how I can disable this? I am trying to account for crashes on my server and take over the stream from another server, but it is not possible to resume the stream once this command is issued. If the ffmpeg process is SIGKILL, it does not seem to send the command ___ 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 pop and deesser filters
On 7/31/18, Joshua Grauman wrote: > Hello all, > > I am using ffmpeg to edit videos of speeches/talks (like a TED talk). I am > using a headworn microphone. I would like to add an audio filter to get > rid of 'pop' and 'ess' sounds, especially present when pronouncing the 'p' > sound and 's' and 'sh' sounds respectively. Does anyone have a suggestion > for which (free linux) filters do this well and work well with ffmpeg? > I've been looking into ladspa filters, but would love any > advice/suggestions. Thanks so much. adeclick filter and lv2 filter (with deesser from calf). ___ 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".