Re: [FFmpeg-user] Wrong Channel count value on mp4a sample entry
On 14-02-2019 06:39 AM, Yuntaek Lim wrote: I could not find any constraints about channel count, cannot describe greater than 2, for audioSampleEntry from iso 14496-12:2015. However, I've found "When values greater than 2 are used, the codec configuration should identify the channel assignment." The standard then goes on to say, "The audio output format (samplerate, samplesize and channelcount fields) in the sample entry should be considered definitive only for codecs that do not record their own output configuration. If the audio codec has definitive information about the output format, it shall be taken as definitive; in this case the samplerate, samplesize and channelcount fields in the sample entry may be ignored, though sensible values should be chosen (for example, the highest possible sampling rate)" For AAC, ASC is added from codec extradata, and provides the definitive info. It may still be helpful to accurately record channel count for AAC, but it's not required. 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] What is option -level ?
2019-02-13 23:23 GMT+01:00, Ulf Zibis : > > Am 13.02.19 um 20:23 schrieb Lou Logan: >>> If I need 2 passes I should know about the correct syntax, >>> "-flags pass1" or "-pass 1". >> >> "-pass 1" for the first pass, then "-pass 2" for the second pass. > > I was just wondering, that option "-pass" is not mentioned here: > https://www.ffmpeg.org/ffmpeg-codecs.html#toc-Codec-Options It's not a codec option but an option of the command line utility: https://www.ffmpeg.org/ffmpeg.html#Video-Options 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] Wrong Channel count value on mp4a sample entry
Hi Ted, Thank you for your replying. I want to make clear your explain. > It is an old container format with varied history. Do you mean "audioSampleEntry version 0" is old container? > Many fields in iso container file boxes are just there to maintain compatibility, and ignored & set to default value. In this case, the channel count could only be 1 or 2, for mono and stereo. The default happens to be 2. I could not find any constraints about channel count, cannot describe greater than 2, for audioSampleEntry from iso 14496-12:2015. However, I've found "When values greater than 2 are used, the codec configuration should identify the channel assignment." I've found "Set to 1 for monaural sounds, 2 for stereo sounds. Higher numbers of channels are not supported." from quick time format specification. (" https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap3/qtff3.html#//apple_ref/doc/uid/TP4939-CH205-75770 ") It may seem that 'mp4' can show channel count as 6, but 'mov' cannot be described 6 channel count in the container. If it is right, I think, "ffmpeg" describes channel_count in AudioSampleEntry as 6 for 5.1 channel. Do you think my thought is right wrong? 2019년 2월 13일 (수) 오후 7:53에 Ted Park 님이 작성: > > On Feb 12, 2019, at 12:49 AM, Yuntaek Lim wrote: > > > > I've created 5.1 channel aac-lc audio from 5.1 channel ac-3 audio. > > However, the sample entry of "mp4a" box show channel_count as "2", not > "6". > > Howerver, the MPEG-4 elementary stream descriptor in "esds" box > describes > > channel count as 6. > > It is an old container format with varied history. Many fields in iso > container file boxes are just there to maintain compatibility, and ignored > & set to default value. In this case, the channel count could only be 1 or > 2, for mono and stereo. The default happens to be 2. > ___ > 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] What is option -level ?
Am 13.02.19 um 20:23 schrieb Lou Logan: > https://trac.ffmpeg.org/wiki/Encode/H.264 Thanks, I know this page. >> If I need 2 passes I should know about the correct syntax, "-flags pass1" or >> "-pass 1". > "-pass 1" for the first pass, then "-pass 2" for the second pass. I was just wondering, that option "-pass" is not mentioned here: https://www.ffmpeg.org/ffmpeg-codecs.html#toc-Codec-Options So I understand that it is an alternative to the "-flags pass1" syntax. -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".
Re: [FFmpeg-user] create video from image
On Wed, Feb 13, 2019, at 12:23 PM, juan carlos wrote: > I already indicated in another email that since the release of ffmpeg > 4.0 the project does not take seriously the work of updating the > documentation I disagree with that statement. We are only volunteers and use our spare time to try to keep the large set of documentation accurate for a project with high development activity on an often complex subject matter. Nobody gets paid to do this and anyone is welcome and encouraged to send patches to help. > no command posted in the different pages referring to the > project works correctly, Which commands, exactly? Where in the documentation? It would be much easier to fix if you tell us exactly what doesn't work and where you found it. > in the previous one I tried to use a format > that according to you It was not supported anymore, but it is not > mentioned anywhere so I can not know if that is true The removal of ffserver stuff was incomplete. I will work on that. > this time I have errors trying to create a video from an image > > ffmpeg -f image2 -i image.jpg -vcodec libx264 -b:v 200k -t 30 out.mp4 > Error initializing output stream 0:0 -- Error while opening encoder for > output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, > width or heigh I don't see your command, or a similar one, in the documentation. Where did you find it? Since you're commenting on the state of the documentation I assume you are indicating that your broken command is from the documentation. As for your command, I'll assume the main problem is that you are not telling ffmpeg to loop the image. Also, your player may not like the resulting pixel format, so make it yuv420p. If you are presenting the output via progressive download add "-movflags +faststart" so your viewers don't have to wait as long for it to begin playback. ffmpeg -loop 1 -i image.jpg -c:v libx264 -vf format=yuv420p -movflags +faststart -t 30 out.mp4 This is my attempt for an all-inclusive command for you since you did not provide any details or requirements. You may experience other errors or issues (such as "width/height not divisible by 2"), but since you did not include the complete console output I can't give you a turnkey, personally customized, cut-and-paste command for rote usage. ___ 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] find repeated fragments in a video file
Hi, I'm looking for a way to detect repeated fragments in a video file. About 8 years ago I wrote some code to do this (based upon perceptual hashing), but that code is owned by my old employer and I have no access to it any more. And of course now I need something similar What I did was roughly: calculate a 32 bit hash covering 5 seconds of video, and do that for every second of video (or maybe every I-frame). So an hour of video would give me 3600 hashes. These then could be processed to find near duplicates (using Hamming distance) (actually it was a bit more advanced but you get the idea) Of course I can re-create this code, but I was wondering if there is by any chance something in ffmpeg that I could use for this purpose (e.g. based upon mpeg-7 signatures). Is there some support to do this (e.g. calculating a reasonable good and compact hash)? Any suggestion is greatly appreciated! Frans ___ 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] Video Dropouts Using Telecine Filter FFMpeg -i
On 2/13/2019 1:43 PM, John Hooper wrote: ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers That's rather old. Can you try with a newer version? Git head version is usually the best (and is what most people will ask for anyway). 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".
Re: [FFmpeg-user] create video from image
On 2/13/2019 1:15 PM, juan carlos wrote: I already indicated in another email that since the release of ffmpeg 4.0 the project does not take seriously the work of updating the documentation, AFAICT, ffmpeg seldom updates any doc that isn't auto-generated from the source code. OTOH, it's free software. And you probably know by now that a full command output is almost always needed. ffmpeg -f image2 -i image.jpg -vcodec libx264 -b:v 200k -t 30 out.mp4 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heigh [no output included] (The encoder doesn't know about the desired frame rate/etc; you need to specify them. Look at the -target option; unfortunately the parameters it actually sets are only documented in fftools/ffmpeg_opt.c). 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".
Re: [FFmpeg-user] Video Dropouts Using Telecine Filter FFMpeg -i
Thanks, sorry but although I initially said it is repeatable, that looks to not be the case anymore. Anyways, outputting from the files and getting the exact output will not be possible, but here is a generic output with my version details. ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers built with Apple LLVM version 9.0.0 (clang-900.0.39.2) configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat57. 83.100 / 57. 83.100 libavdevice57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc54. 7.100 / 54. 7.100 On Wed, Feb 13, 2019 at 2:03 PM Paul B Mahol wrote: > On 2/13/19, John Hooper wrote: > > Hello, first time posting to the list. I had some trouble using the > filter > > 'telecine' with ffmpeg using the following code: > > > > *ffmpeg -i /inputpath.mov -vf telecine -vcodec prores -profile:v 3 > -s > > 1920x1080 -acodec copy -map 0 /outputpath.mov* > > > > Going from a ProRes422 HQ source. It seems to be adding some loud audio > > static and video distortion for one frame duration on the exact same > frame > > each time, unsure how many parts are affected. I have tried outputting > > using the prores_ks codec and this corrected the problem in the parts > where > > it was noticed. Does anyone have any idea why this may be occurring? > > > > Full uncut ffmpeg console output missing. > ___ > 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] create video from image
I already indicated in another email that since the release of ffmpeg 4.0 the project does not take seriously the work of updating the documentation, no command posted in the different pages referring to the project works correctly, in the previous one I tried to use a format that according to you It was not supported anymore, but it is not mentioned anywhere so I can not know if that is true, this time I have errors trying to create a video from an image ffmpeg -f image2 -i image.jpg -vcodec libx264 -b:v 200k -t 30 out.mp4 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heigh ___ 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 create matching multi-audio-track mp4s from ProRes sources
> On Feb 13, 2019, at 10:04 AM, Ted Park wrote: > > I wonder if adding -f mov to the output options, or just using mov extension > makes it handle the timecode track? Thanks Ted. I'm not familiar with the -f option and didn't immediately find it in the FFmpeg documentation How does that work? Tried simply switching to the .mov extension instead of .mp4 The tracks mapped properly, the quality is good, and -- though it didn't occur to me until your suggestion -- .mov is preferable to .mp4 for our workflow. So thanks for the suggestion. An "obvious" idea that only became obvious after you suggested it. BUT for some reason the time code changed. So a clip that had started at TC start/end of 12:31:20:13 / 12:31:42:16 converted to 12:30:35:12 / 12:30:57:15. Duration matches, frame rate matches, but the start/end TCs are earlier by 45:01. > On Feb 13, 2019, at 10:57 AM, Gyan wrote: > > unmap the data streams, > > -i '/Path/To/ProRes/Source.mov' -map 0 -map -0:d -g 48 -c:v libx264 > -profile:v baseline -crf 16 -c:a aac -b:a 256k -vf scale=1280:720 -pix_fmt > yuv420p '/Path/To/Mp4/Dest.mp4' Gyan -map -0:d fixed the problem entirely. Audio Tracks are good / TC is good both for .mov and .mp4 Any idea why failing to un-map the data streams causes the time code to change? Thanks to both of you. Very helpful!! ___ 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] What is option -level ?
On Tue, Feb 12, 2019, at 1:11 PM, Ulf Zibis wrote: > > I'm not sure, if I need 2 passes It depends on what you want to do. If you want to try to target a specific output file size then use two-passes. If that's not really a concern just do a single pass using -crf. See the wiki page: https://trac.ffmpeg.org/wiki/Encode/H.264 > but I think, -movflags faststart could be useful. Sure, if you are going to present the video via progressive download. Doesn't hurt if you include it either way. It just may add a few more seconds to the whole process. > If I need 2 passes I should know about the correct syntax, "-flags pass1" or > "-pass 1". "-pass 1" for the first pass, then "-pass 2" for the second pass. > I honestly don't know if I need -level Ignore it. ___ 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] Video Dropouts Using Telecine Filter FFMpeg -i
On 2/13/19, John Hooper wrote: > Hello, first time posting to the list. I had some trouble using the filter > 'telecine' with ffmpeg using the following code: > > *ffmpeg -i /inputpath.mov -vf telecine -vcodec prores -profile:v 3 -s > 1920x1080 -acodec copy -map 0 /outputpath.mov* > > Going from a ProRes422 HQ source. It seems to be adding some loud audio > static and video distortion for one frame duration on the exact same frame > each time, unsure how many parts are affected. I have tried outputting > using the prores_ks codec and this corrected the problem in the parts where > it was noticed. Does anyone have any idea why this may be occurring? > Full uncut ffmpeg console output missing. ___ 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 create matching multi-audio-track mp4s from ProRes sources
On 14-02-2019 12:27 AM, Gyan wrote: On 13-02-2019 10:32 PM, Harvey Pikelberger wrote: -i '/Path/To/ProRes/Source.mov' -map 0 -map -0:d -g 48 -c:v libx264 -profile:v baseline -crf 16 -c:a aac -b:a 256k -vf scale=1280:720 -pix_fmt yuv420p '/Path/To/Mp4/Dest.mp4' Oops, removed the stray 0. ___ 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 create matching multi-audio-track mp4s from ProRes sources
On 13-02-2019 10:32 PM, Harvey Pikelberger wrote: I've got a bunch of 4- and 5-audio-track ProRes sources. I want to create h.264/mp4 proxies of each, matching the source audio assigns The FFmpeg code I'm using is tripping up over time code and codec issues. Here's the code: -i '/Path/To/ProRes/Source.mov' -map 0 -g 48 -c:v libx264 -profile:v baseline -crf 16 -c:a aac -b:a 256k -vf scale=1280:720 -pix_fmt yuv420p '/Path/To/Mp4/Dest.mp4' As I understand -map 0 is what conforms the audio assigns. Not sure what -g 48 is doing, but removing still gets errors. Here are the errors: [mp4 @ 0x7fe633006000] You requested a copy of the original timecode track so timecode metadata are now ignored [mp4 @ 0x7fe633006000] Could not find tag for codec none in stream #2, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:1 -- [aac @ 0x7fe633801e00] Qavg: nan Conversion failed! `-map 0` maps all streams for output including those that the output may not be able to handle, like the single-packet timecode stream. However, ffmpeg will copy it using the metadata entry created when reading the input. So, unmap the data streams, -i '/Path/To/ProRes/Source.mov' -map 0 0 -map -0:d -g 48 -c:v libx264 -profile:v baseline -crf 16 -c:a aac -b:a 256k -vf scale=1280:720 -pix_fmt yuv420p '/Path/To/Mp4/Dest.mp4' 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".
[FFmpeg-user] Video Dropouts Using Telecine Filter FFMpeg -i
Hello, first time posting to the list. I had some trouble using the filter 'telecine' with ffmpeg using the following code: *ffmpeg -i /inputpath.mov -vf telecine -vcodec prores -profile:v 3 -s 1920x1080 -acodec copy -map 0 /outputpath.mov* Going from a ProRes422 HQ source. It seems to be adding some loud audio static and video distortion for one frame duration on the exact same frame each time, unsure how many parts are affected. I have tried outputting using the prores_ks codec and this corrected the problem in the parts where it was noticed. Does anyone have any idea why this may be occurring? Thank you, John ___ 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 is shutting down when concating segmented files and outputting to UDP
> a problem in which the ffmpeg shut down automatically in 2-3 > days > log files are generated in order of 100s of gbs wow. I am curious, but you haven’t told us anything about the command except that it crashes. The “open file limit” is probably one of several limits the process was nearing. ___ 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] Use ffmpeg to delay webcam feed with dshow displayed locally
Hi Ted, Thank you so much for your help and suggestions. I tried a few different permutations of what you recommended, but without luck. :( It seems that nothing I'm trying does anything other than *delay the start* of the video. The video itself still isn't delayed. For example, I tried the following command:export this_date=`date +%s`;this_date=`echo \($this_date+10\)*100|bc`;./ffmpeg.exe -f dshow -video_size 160x120 -framerate 30 -i video="Integrated Webcam" -pix_fmt yuv420p -filter:v cue=cue=$this_date:buffer=20 -f sdl2 "SDL OUT" It shows a white output screen for 10 seconds, then it shows what appears to be a very fast set of "catchup" frames for a fraction of a second, then shows the live video stream again with no delay. Commandline output is below. Thanks again for your help with this! -Scott ** Commandline output** libavcodec 58. 46.100 / 58. 46.100 libavformat 58. 26.100 / 58. 26.100 libavdevice 58. 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 libpostproc 55. 4.100 / 55. 4.100 Input #0, dshow, from 'video=Integrated Webcam': Duration: N/A, start: 93371.403000, bitrate: N/A Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 160x120, 30 fps, 30 tbr, 1k tbn, 1k tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> rawvideo (native)) Press [q] to stop, [?] for help Output #0, sdl,sdl2, to 'SDL OUT': Metadata: encoder : Lavf58.26.100 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 160x120, q=2-31, 6912 kb/s, 30 fps, 30 tbn, 30 tbc Metadata: encoder : Lavc58.46.100 rawvideo [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 73 >= 73 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 84 >= 84 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 97 >= 97 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 109 >= 109 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 120 >= 120 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 133 >= 133 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 144 >= 144 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 252 >= 252 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 264 >= 264 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 276 >= 276 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 289 >= 289 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 300 >= 300 [sdl,sdl2 @ 0257dc497180] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 312 >= 312 av_interleaved_write_frame(): I/O errore=00:00:13.66 bitrate=N/A speed= 1x frame= 423 fps= 30 q=-0.0 Lsize=N/A time=00:00:14.16 bitrate=N/A speed= 1x On Wednesday, February 13, 2019, 6:50:32 AM PST, Ted Park wrote: > Hi - it very well might, but I'm not sure how to combine those. Would you > be willing to give me an example? There is a buffer parameter for the cue filter, you can just set it a reasonable number of seconds bigger than your delay introduced by cue. In bash, you can set something like cue=cue=(`date +%s`+$DELAY)*100:buffer=20 (The cue timestamp is in microseconds) ___ 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] Trying to create matching multi-audio-track mp4s from ProRes sources
> On Feb 13, 2019, at 12:02 PM, Harvey Pikelberger wrote: > > [mp4 @ 0x7fe633006000] You requested a copy of the original timecode track so > timecode metadata are now ignored > [mp4 @ 0x7fe633006000] Could not find tag for codec none in stream #2, codec > not currently supported in container > Could not write header for output file #0 (incorrect codec parameters ?): > Invalid argument I wonder if adding -f mov to the output options, or just using mov extension makes it handle the timecode track? ___ 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] Trying to create matching multi-audio-track mp4s from ProRes sources
I've got a bunch of 4- and 5-audio-track ProRes sources. I want to create h.264/mp4 proxies of each, matching the source audio assigns The FFmpeg code I'm using is tripping up over time code and codec issues. Here's the code: -i '/Path/To/ProRes/Source.mov' -map 0 -g 48 -c:v libx264 -profile:v baseline -crf 16 -c:a aac -b:a 256k -vf scale=1280:720 -pix_fmt yuv420p '/Path/To/Mp4/Dest.mp4' As I understand -map 0 is what conforms the audio assigns. Not sure what -g 48 is doing, but removing still gets errors. Here are the errors: [mp4 @ 0x7fe633006000] You requested a copy of the original timecode track so timecode metadata are now ignored [mp4 @ 0x7fe633006000] Could not find tag for codec none in stream #2, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:1 -- [aac @ 0x7fe633801e00] Qavg: nan Conversion failed! Here's the full console output: ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers built with Apple LLVM version 10.0.0 (clang-1000.11.45.5) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1_2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libspeex --enable-videotoolbox libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat58. 20.100 / 58. 20.100 libavdevice58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc55. 3.100 / 55. 3.100 Guessed Channel Layout for Input Stream #0.1 : 5.0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Path/To/ProRes/Source.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt ARRI creation_time : 2019-01-30T12:47:45.00Z com.apple.finalcutstudio.media.uuid: 3D1B7ACC-EAFF-477C-AFB7-7FC259FA0B59 com.arri.camera.CameraId: R0TS com.arri.camera.CameraIndex: A com.arri.camera.CameraModel: ARRI ALEXA Mini com.arri.camera.CameraSerialNumber: 21072 com.arri.camera.ColorGammaSxS: LOG-C com.arri.camera.ExposureIndexAsa: 800 com.arri.camera.LookFileBurnedIn: No com.arri.camera.ProductionInfoOperator: com.arri.camera.NdFilterDensity: 0 com.arri.camera.NdFilterType: 0 com.arri.camera.ProductionInfoCinematographer: com.arri.camera.ProductionInfoDirector: com.arri.camera.ProductionInfoLocation: com.arri.camera.ProductionInfoProduction: com.arri.camera.ProductionInfoUser1: com.arri.camera.ProductionInfoUser2: com.arri.camera.ProjectFps: 23976 com.arri.camera.ReelName: A001R0TS com.arri.camera.SensorFps: 23976 com.arri.camera.ShutterAngle: 1800 com.arri.camera.SoundReel: com.arri.camera.SupVersion: 5.04.13 com.arri.camera.SxsSerialNumber: 31256162323390004845 com.arri.camera.UserDate: 20190130 com.arri.camera.UserTime: 12h47m45 com.arri.camera.WhiteBalanceKelvin: 5000 com.arri.camera.WhiteBalanceTintCc: 0 com.arri.camera.CameraClipName: A001C001_190130_R0TS.mov com.arri.camera.Product: 2 com.arri.camera.SubProduct: 1 com.arri.camera.look.name: ARRI 709.AML com.arri.camera.look.user_lut: 0 com.apple.proapps.color.asc-cdl: com.arri.camera.look.lut3d: com.arri.camera.look.lut3d_with_cdl: com.arri.camera.look.video_param_with_target_colorspace: com.arri.camera.ProductionInfoCompany: com.arri.camera.SceneName: com.arri.camera.TakeName: com.arri.camera.audio.Configuration: com.arri.camera.LensSerialNumber: 13054 com.arri.camera.LensType: Fujinon Alura AZ30-80 T2.8 com.arri.camera.UnitPreference: Metric com.arri.camera.WbTracking: 0 com.arri.camera.ImageOrientation: 0 com.arri.camera.ImageSharpness: 0 com.arri.camera.ImageDetail: 0 com.arri.camera.ImageDenoising: 0 com.arri.camera.DynamicMetadataVersion: 65536 com.arri.camera.audio.BluetoothEnabled: 0 com.arri.camera.sensor.PhotoSites: 3200x1800 com.arri.camera.PixelAspectRatio: 0.00 com.arri.camera.FramelineFileName1: None com.arri.camera.UserPixelMasking: 0 com.arri.camera.EfIsActive: 0 timecode: 12:50:58:15 Duration: 00:32:55.85, start: 0.00, bitrate: 994138 kb/s Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le(tv, GBR, progressive), 3840x2160, 988342 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default) Metadat
Re: [FFmpeg-user] Can't write packet with unknown timestamp
2019-02-13 15:07 GMT+01:00, Brian J. Murrell : > A piece of software I'm using is trying to remux a file and running > into an error: > > $ ffmpeg -f avi -i file:"/tmp/vid.avi" -sn -codec:v:0 copy -flags Unrelated: Generally, you shouldn't force an input format and certainly not for avi. > -global_header -fflags +genpts You want -fflags +genpts to have an effect on your input file: $ ffmpeg -fflags +genpts -i vid.avi > -vsync -1 Unrelated: This must be a bad idea with -c copy (or it has no effect). > -map_metadata -1 -map_chapters -1 > -threads 0 -codec:a:0 ac3 -ac 6 -ab 192000 -y "/tmp/vid.mkv" -threads 0 is the default, "-ac 6" can be bad, and I strongly suggest not to re-encode ac3 audio to ac3, even less so with a higher bitrate. > ffmpeg version 4.0.3 Copyright (c) 2000-2018 the FFmpeg developers 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] Can't write packet with unknown timestamp
On Wed, Feb 13, 2019 at 09:07:35 -0500, Brian J. Murrell wrote: > $ ffmpeg -f avi -i file:"/tmp/vid.avi" -sn -codec:v:0 copy -flags > -global_header -fflags +genpts -vsync -1 -map_metadata -1 -map_chapters -1 > -threads 0 -codec:a:0 ac3 -ac 6 -ab 192000 -y "/tmp/vid.mkv" "-fflags +genpts" is an input option, so it needs to go before the corresponding "-i input". If you do that, you will still get the other error (which is likely caused by your file, and perhaps has the same cause as the missing timestamp): > [ac3 @ 0x5590061fd340] frame sync error > Error while decoding stream #0:1: Invalid data found when processing input And by the way: > ffmpeg version 4.0.3 Copyright (c) 2000-2018 the FFmpeg developers > built with gcc 8 (GCC) And we recommend to try newest versions first before reporting issues (git master HEAD preferred) - even though it didn't matter in this case. Cheers, 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] Can't write packet with unknown timestamp
A piece of software I'm using is trying to remux a file and running into an error: $ ffmpeg -f avi -i file:"/tmp/vid.avi" -sn -codec:v:0 copy -flags -global_header -fflags +genpts -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 ac3 -ac 6 -ab 192000 -y "/tmp/vid.mkv" ffmpeg version 4.0.3 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 8 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat58. 12.100 / 58. 12.100 libavdevice58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100 libpostproc55. 1.100 / 55. 1.100 Input #0, avi, from 'file:/tmp/vid.avi': Metadata: encoder : Nandub v1.0rc2 Duration: 00:00:04.00, start: 0.00, bitrate: 2095 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (ac3 (native) -> ac3 (native)) Press [q] to stop, [?] for help [ac3 @ 0x5590061fd340] frame sync error Error while decoding stream #0:1: Invalid data found when processing input Output #0, matroska, to '/tmp/vid.mkv': Metadata: encoder : Lavf58.12.100 Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1, fltp, 192 kb/s Metadata: encoder : Lavc58.18.100 ac3 [matroska @ 0x5590061efb00] 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 [matroska @ 0x5590061efb00] Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument frame=1 fps=0.0 q=-1.0 Lsize= 12kB time=00:00:00.50 bitrate= 197.6kbits/s speed=94.5x video:2kB audio:11kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Conversion failed! /tmp/vid.avi can be found at: https://drive.google.com/file/d/1llf7h51ZwqsodpsPAqW01JjePs1ZxeCd/view?usp=sharing Any ideas? Cheers, b. P.S. I was going to put this into a trac ticket, but trac doesn't seem to be sending account verification tokens. signature.asc Description: This is a digitally signed message part ___ 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] Use ffmpeg to delay webcam feed with dshow displayed locally
> Hi - it very well might, but I'm not sure how to combine those. Would you be > willing to give me an example? There is a buffer parameter for the cue filter, you can just set it a reasonable number of seconds bigger than your delay introduced by cue. In bash, you can set something like cue=cue=(`date +%s`+$DELAY)*100:buffer=20 (The cue timestamp is in microseconds) ___ 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] Wrong Channel count value on mp4a sample entry
> On Feb 12, 2019, at 12:49 AM, Yuntaek Lim wrote: > > I've created 5.1 channel aac-lc audio from 5.1 channel ac-3 audio. > However, the sample entry of "mp4a" box show channel_count as "2", not "6". > Howerver, the MPEG-4 elementary stream descriptor in "esds" box describes > channel count as 6. It is an old container format with varied history. Many fields in iso container file boxes are just there to maintain compatibility, and ignored & set to default value. In this case, the channel count could only be 1 or 2, for mono and stereo. The default happens to be 2. ___ 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".