Re: [FFmpeg-user] How to use ffmpeg in batch mode?
Am 20.10.2019 um 23:56 schrieb arthur brogard via ffmpeg-user: I have been trying to convert a bunch of mkv files to mp4 using ffmpeg in batch mode via a .bat file but I can't get it right. I've followed a number of suggested commands from various hits I've got on google but none of them work. Don't need anything fancy. Just a basic convert from mkv to mp4 if anyone can help? I haven't tested it, but I thing this (Windows) batch file should work: for %%f in (*.mkv) do call :for_body %%f goto :the_end :for_body set IN=%1 set OUT=%IN:mkv=mp4% ffmpeg -i %IN% -y %OUT% exit /b :the_end pause You find a similar (tested and working) example in my book on page 88: http://www.astro-electronic.de/FFmpeg_Book.pdf Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] A command for splitting a video file by file size
On Mon, Oct 21, 2019 at 00:51:24 +0200, Julien Dotsev wrote: > What is dd? dd is a command line tool. (Also available for other OSs than Unix.) To take up your example: $ dd if=inputfile.ext bs=1M skip=4 of=outputfile.ext But if you're doing this with a video file, the result can be unplayable. This depends on the format of the video file, and possibly on its content. If you want to use ffmpeg to split a file, please understand that ffmpeg always demuxes and remuxes the video content, and usually cannot preserve the exact original container. Cheers, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to use ffmpeg in batch mode?
Hi. If you are only changing the container and don't want to transcode the contents, be sure to add -c copy in the ffmpeg line of the example (haven't tested it but it seems fine), so it looks like this: ffmpeg -i %IN% -y -c copy %OUT% Br. On Mon, Oct 21, 2019 at 9:14 AM Michael Koch wrote: > Am 20.10.2019 um 23:56 schrieb arthur brogard via ffmpeg-user: > > I have been trying to convert a bunch of mkv files to mp4 using ffmpeg > in batch mode via a .bat file but I can't get it right. > > I've followed a number of suggested commands from various hits I've got > on google but none of them work. > > Don't need anything fancy. Just a basic convert from mkv to mp4 if > anyone can help? > > I haven't tested it, but I thing this (Windows) batch file should work: > > > for %%f in (*.mkv) do call :for_body %%f > goto :the_end > > :for_body > set IN=%1 > set OUT=%IN:mkv=mp4% > ffmpeg -i %IN% -y %OUT% > exit /b > > :the_end > pause > > > You find a similar (tested and working) example in my book on page 88: > http://www.astro-electronic.de/FFmpeg_Book.pdf > > Michael > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Split a video file in two by size and merge itback
On Sun, Oct 20, 2019 at 23:40:20 +0200, Julien Dotsev wrote: > Yes, the ts file works exactly as you said. It can be split and every part > is readable. But As I said I want to be able to keep the original file. So > if it is mp4 for example and I converted to mpeg-ts, when I reconvert it > back there is a file size increase. Is there a way to avoid that? This means you are actually not splitting (because that can't easily be done with actual MP4 containers), but remuxing. ffmpeg can't exactly reconstruct the original container, as explained in my response in the other thread. As Carl Eugen worte: Always when describing such as issue, please remember to show us the actual command line you used, and the command's complete, uncut console output. Thanks, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] A command for splitting a video file by file size
Ok. Thank you Moritz. On Mon, 21 Oct 2019, 09:48 Moritz Barsnick, wrote: > On Mon, Oct 21, 2019 at 00:51:24 +0200, Julien Dotsev wrote: > > What is dd? > > dd is a command line tool. (Also available for other OSs than Unix.) > > To take up your example: > > $ dd if=inputfile.ext bs=1M skip=4 of=outputfile.ext > > But if you're doing this with a video file, the result can be > unplayable. This depends on the format of the video file, and possibly > on its content. > > If you want to use ffmpeg to split a file, please understand that > ffmpeg always demuxes and remuxes the video content, and usually cannot > preserve the exact original container. > > Cheers, > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Split a video file in two by size and merge itback
Yes thanks again Moritz. I will do that next time. Julien On Mon, 21 Oct 2019, 10:01 Moritz Barsnick, wrote: > On Sun, Oct 20, 2019 at 23:40:20 +0200, Julien Dotsev wrote: > > Yes, the ts file works exactly as you said. It can be split and every > part > > is readable. But As I said I want to be able to keep the original file. > So > > if it is mp4 for example and I converted to mpeg-ts, when I reconvert it > > back there is a file size increase. Is there a way to avoid that? > > This means you are actually not splitting (because that can't easily be > done with actual MP4 containers), but remuxing. ffmpeg can't exactly > reconstruct the original container, as explained in my response in the > other thread. > > As Carl Eugen worte: Always when describing such as issue, please > remember to show us the actual command line you used, and the command's > complete, uncut console output. > > Thanks, > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to use ffmpeg in batch mode?
set OUT=%IN:mkv=mp4% please note that this renaming will give unexpected results if "mkv" is also part of the filename, for example aamkv.mkv will be renamed to aamp4.mp4 If someone knows a solution to this problem, please let us know. Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] File metadata in m4a causing player problem?
Hi Budgie, On Sun, Oct 20, 2019 at 09:56:40 +0100, Budge wrote: > I have a set of m4a audio files which I can play but on which the > progress bar does not work. If I select anywhere along the progress bar > playing starts again from the beginning. In which players does seeking not work? In all of them? Which did you test? How were there files created? Are they arbitrary files, or did you create them with ffmpeg? Can you provide some of these files? > The only difference I can see when using ffprobe to examine the metadata > is that files which have a creation_time set have a non functioning > progress bar problem. That may be a symptom of their creation, but not the actual root cause for your issues. > What I wish to do is remove the tag: > creation_time : 1970-01-01T00:00:00.00Z ffmpeg certainly didn't create this by itself, but I understand that's not what you're trying to say. ;-) > I confess using ffmpeg to achieve this, if indeed this is the correct > tool, is well beyond my ability and I am seeking help here. Even though I don't believe that is the root cause, I was going to explain to you how to strip metadata using ffmpeg. But it turns out that, when remuxing, ffmpeg doesn't actually copy the creation_time. So all you have to do may be: $ ffmpeg -i input.m4a -c copy output.m4a You can then test the output file. The resulting file may also be fixed for other reasons than the metadata, e.g. reconstruction of some index or something like that, which the original may be missing. (Guessing here - just go try.) Hope this helps, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to use ffmpeg in batch mode?
Sorry, forgot the extensions for output. ;) ffmpeg -i %1 -y %~n1.mkv or ffmpeg -i %1 -y -c copy %~n1.mkv On Mon, Oct 21, 2019 at 10:33 AM Goran Obal wrote: > Michael, you could use this: > %~ni <- this means the filename without the extension, so instead of > renaming, just use: > ffmpeg -i %1 -y %~n1 > or > ffmpeg -i %1 -y -c copy %~n1 > > On Mon, Oct 21, 2019 at 10:28 AM Michael Koch > wrote: > >> >> > >> > set OUT=%IN:mkv=mp4% >> >> please note that this renaming will give unexpected results if "mkv" is >> also part of the filename, for example >> aamkv.mkv will be renamed to >> aamp4.mp4 >> >> If someone knows a solution to this problem, please let us know. >> >> Michael >> ___ >> ffmpeg-user mailing list >> ffmpeg-user@ffmpeg.org >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to use ffmpeg in batch mode?
Michael, you could use this: %~ni <- this means the filename without the extension, so instead of renaming, just use: ffmpeg -i %1 -y %~n1 or ffmpeg -i %1 -y -c copy %~n1 On Mon, Oct 21, 2019 at 10:28 AM Michael Koch wrote: > > > > > set OUT=%IN:mkv=mp4% > > please note that this renaming will give unexpected results if "mkv" is > also part of the filename, for example > aamkv.mkv will be renamed to > aamp4.mp4 > > If someone knows a solution to this problem, please let us know. > > Michael > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to use ffmpeg in batch mode?
Silly me, it's the other way around (mkv to mp4)... ffmpeg -i %1 -y %~n1.mp4 or ffmpeg -i %1 -y -c copy %~n1.mp4 On Mon, Oct 21, 2019 at 10:34 AM Goran Obal wrote: > Sorry, forgot the extensions for output. ;) > ffmpeg -i %1 -y %~n1.mkv > or > ffmpeg -i %1 -y -c copy %~n1.mkv > > On Mon, Oct 21, 2019 at 10:33 AM Goran Obal wrote: > >> Michael, you could use this: >> %~ni <- this means the filename without the extension, so instead of >> renaming, just use: >> ffmpeg -i %1 -y %~n1 >> or >> ffmpeg -i %1 -y -c copy %~n1 >> >> On Mon, Oct 21, 2019 at 10:28 AM Michael Koch < >> astroelectro...@t-online.de> wrote: >> >>> >>> > >>> > set OUT=%IN:mkv=mp4% >>> >>> please note that this renaming will give unexpected results if "mkv" is >>> also part of the filename, for example >>> aamkv.mkv will be renamed to >>> aamp4.mp4 >>> >>> If someone knows a solution to this problem, please let us know. >>> >>> Michael >>> ___ >>> ffmpeg-user mailing list >>> ffmpeg-user@ffmpeg.org >>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >>> To unsubscribe, visit link above, or email >>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". >> >> ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to use ffmpeg in batch mode?
Personally I tend to do this sort of thing with JScript on Windows. It's not the loveliest interpreter, but then at least you have something approaching a real programming language to do all your string manipulation! P On Monday, 21 October 2019, 09:45:12 BST, Goran Obal wrote: Silly me, it's the other way around (mkv to mp4)... ffmpeg -i %1 -y %~n1.mp4 or ffmpeg -i %1 -y -c copy %~n1.mp4 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to use ffmpeg in batch mode?
Thank you for that. It worked perfectly. And thank you for the book - it looks like there's realms of good stuff in it. Looks like a text book to me.. probably won't be able to read it but will have to dip in and out of it to find things when I need them. Congratulations on it... wish I'd achieved something like that... :) Don't understand your batch file either, though I used to write DOS batch files all the time back then in the day... I think the command set and syntax maybe have changed a bit anyway thanks very much... :) - Remember Brandolini's Law and look around. On Monday, 21 October 2019, 6:29:36 pm ACDT, Goran Obal wrote: Hi. If you are only changing the container and don't want to transcode the contents, be sure to add -c copy in the ffmpeg line of the example (haven't tested it but it seems fine), so it looks like this: ffmpeg -i %IN% -y -c copy %OUT% Br. On Mon, Oct 21, 2019 at 9:14 AM Michael Koch wrote: > Am 20.10.2019 um 23:56 schrieb arthur brogard via ffmpeg-user: > > I have been trying to convert a bunch of mkv files to mp4 using ffmpeg > in batch mode via a .bat file but I can't get it right. > > I've followed a number of suggested commands from various hits I've got > on google but none of them work. > > Don't need anything fancy. Just a basic convert from mkv to mp4 if > anyone can help? > > I haven't tested it, but I thing this (Windows) batch file should work: > > > for %%f in (*.mkv) do call :for_body %%f > goto :the_end > > :for_body > set IN=%1 > set OUT=%IN:mkv=mp4% > ffmpeg -i %IN% -y %OUT% > exit /b > > :the_end > pause > > > You find a similar (tested and working) example in my book on page 88: > http://www.astro-electronic.de/FFmpeg_Book.pdf > > Michael > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] FFmpeg: Video gets corrupted.
Hello, Any suggestion will be a great help for the below detailed problem: I am using ffmpeg to record an ip camera stream. The camera produces variable frame rate stream. I am using an SDP file to capture the stream, and save it in files containing data of of 5 mins. OS used is centOS 6.6 FFmpeg version used: 4.0.2 Video stream: h264 Audio: AAC Following is the command used: /usr/bin/ffmpeg -protocol_whitelist file,udp,rtp -y -loglevel quiet -vsync vfr -i -fflags +genpts+igndts+discardcorrupt -reorder_queue_size 100 -c copy -bsf:a aac_adtstoasc -f ssegment segment_format_options movflags=+frag_keyframe+empty_moov+separate_moof+disable_chpl+default_base_moof -reference_stream v:0 -segment_time 00:05:00 -segment_time_delta 0.1 -segment_atclocktime 1 -reset_timestamps 1 -strftime 1 Stream_%y%m%d_%H%M.mp4 It produces videos with name "Stream_YYMMdd_HHMM.mp4" of each with duration 5 minutes. But sometimes the videos becomes more than an hour duration and also when played with ffplay show fast forward behavior and ends in few minutes. Thanks and Regards, Rangarajan ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] how to convert amf timed metadata in flv into id3 timed metadata in mpegts
Hi, As I know, flv supports amf metadata, while mpegts supports id3 timed metadata. How can I convert amf timed metadata into id3 timed metadata? And how to convert id3 timed metadata into amf timed metadata? Thanks! Regards Andrew ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] 453 Not Enough Bandwidth Error when streaming from IP camera
Ok thanks, I didn't realize that was coming from the camera. On Sun, Oct 20, 2019 at 7:09 PM Carl Eugen Hoyos wrote: > Am Mo., 21. Okt. 2019 um 01:03 Uhr schrieb Michael Shaffer > : > > > > I have a Sanyo IP camera that I'm streaming to Youtube via rtsp and > ffmpeg. > > The camera is supposed to be capable of 1080p but I can only get it to > work > > in 720p mode. When I try 1080p mode ffmpeg gives the following error > below. > > If anyone has any ideas I'd really appreciate it. > > > > user@user-computer:~$ ffmpeg -rtsp_transport tcp -y -rtbufsize 200M -i > > "rtsp://admin:password@192.168.1.103:554/VideoInput/1/h264/1" -c:a copy > > -c:v copy -f flv 1080test.mp4 > > > > ffmpeg version N-50401-gdd01947397-static > https://johnvansickle.com/ffmpeg/ > > Copyright (c) 2000-2019 the FFmpeg developers > > built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516 > > configuration: --enable-gpl --enable-version3 --enable-static > > --disable-debug --disable-ffplay --disable-indev=sndio > > --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r > > --enable-gnutls --enable-gmp --enable-libgme --enable-gray > > --enable-libfribidi --enable-libass --enable-libfreetype > > --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb > > --enable-libopenjpeg --enable-librubberband --enable-libsoxr > > --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus > > --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc > > --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 > > --enable-libxml2 --enable-libxvid --enable-libzimg > > libavutil 56. 35.101 / 56. 35.101 > > libavcodec 58. 59.102 / 58. 59.102 > > libavformat58. 33.100 / 58. 33.100 > > libavdevice58. 9.100 / 58. 9.100 > > libavfilter 7. 62.101 / 7. 62.101 > > libswscale 5. 6.100 / 5. 6.100 > > libswresample 3. 6.100 / 3. 6.100 > > libpostproc55. 6.100 / 55. 6.100 > > > [rtsp @ 0xbafb380] method SETUP failed: 453 Not Enough Bandwidth > > rtsp://admin:password@192.168.1.103:554/VideoInput/1/h264/1: Server > > returned 4XX Client Error, but not one of 40{0,1,3,4} > > I may be missing something but this is an error that your camera > returns (FFmpeg only shows the error to you). > > Carl Eugen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] error compiling ffmpeg ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec
Additional information -- I learned to use pkg-config --list-all note the results below ffnvcodec was found. using MSYS2 mingw 64-bit I generated the following: $ cd /d/dev/cpp $ PREFIX="ffmpeg" $ PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" $ pkg-config --list-all ... ffnvcodec ffnvcodec - FFmpeg version of Nvidia Codec SDK headers ... -- Sent from: http://www.ffmpeg-archive.org/ ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] error compiling ffmpeg ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec
Tried the pkg-config before and after the configure. The pkg-config found ffnvcodec both before and after however it still is reported as not found in the configure process. $ cd /d/dev/cpp $ PREFIX="ffmpeg" $ PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" $ pkg-config --list-all ... ffnvcodec ffnvcodec - FFmpeg version of Nvidia Codec SDK headers ... $ $PREFIX/src/configure --arch=native --cpu=native --target-path=$PREFIX/bld/ --logfile=$PREFIX/bld/log/config.log --bindir=$PREFIX/bin/ --docdir=$PREFIX/doc/ --enable-nonfree --enable-cuda --enable-cuvid --enable-nvdec --enable-nvenc --enable-libnpp --extra-cflags=-I/usr/local/CUDA/include --extra-ldflags=-L/usr/local/CUDA/lib/x64 ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffmpeg/bld/log/config.log" produced by configure as this will help solve the problem. $ pkg-config --list-all ... ffnvcodec ffnvcodec - FFmpeg version of Nvidia Codec SDK headers ... -- Sent from: http://www.ffmpeg-archive.org/ ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Live streaming from ffmpeg: what server to use?
Hello, Simple question. I've found out that ffserver is no longer maintained. As far as the project goes, tentatively need these requirements. 1. streaming 2 video cameras simultaneously - both of which are usb cameras. 2. 1280x720 30fps video 3. Able to be run on Pi4 with 2GB of memory. Tentatively looking for the following features - able to access stream to record the video and take snapshots on Android tablet. So what server should I be looking at? Thanks for any help you can provide. Nathan ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] error compiling ffmpeg ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec
On Mon, Oct 21, 2019 at 16:42:16 -0500, pasha-19 wrote: > $ pkg-config --list-all > ... > ffnvcodec ffnvcodec - FFmpeg version of Nvidia Codec SDK headers [...] > ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec That's peculiar, because config.log says ffnvcodec was okay: [...] check_pkg_config ffnvcodec ffnvcodec >= 9.0.18.0 ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h test_pkg_config ffnvcodec ffnvcodec >= 9.0.18.0 ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h pkg-config --exists --print-errors ffnvcodec >= 9.0.18.0 check_func_headers ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h -ID:/Portable/msys64/usr/local/include test_ld cc -ID:/Portable/msys64/usr/local/include test_cc -ID:/Portable/msys64/usr/local/include BEGIN /tmp/ffconf.wKsH8Szh/test.c 1 #include 2 #include 3 #include 4 #include 5 #include 6 int main(void) { int ret = 0; 7 return ret; } END /tmp/ffconf.wKsH8Szh/test.c gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1 -D__printf__=__gnu_printf__ -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/usr/local/CUDA/include -std=c11 -fomit-frame-pointer -ID:/Portable/msys64/usr/local/include -c -o /tmp/ffconf.wKsH8Szh/test.o /tmp/ffconf.wKsH8Szh/test.c gcc -L/usr/local/CUDA/lib/x64 -Wl,--nxcompat,--dynamicbase -Wl,--as-needed -ID:/Portable/msys64/usr/local/include -o /tmp/ffconf.wKsH8Szh/test.exe /tmp/ffconf.wKsH8Szh/test.o [...] Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] error compiling ffmpeg ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec
On Tue, 22 Oct 2019 at 00:42, pasha-19 wrote: > > Tried the pkg-config before and after the configure. The pkg-config found > ffnvcodec both before and after however it still is reported as not found in > the configure process. > > $ cd /d/dev/cpp > > $ PREFIX="ffmpeg" > > $ PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" > > $ pkg-config --list-all > ... > ffnvcodec ffnvcodec - FFmpeg version of Nvidia Codec SDK headers > ... > > $ $PREFIX/src/configure --arch=native --cpu=native > --target-path=$PREFIX/bld/ --logfile=$PREFIX/bld/log/config.log > --bindir=$PREFIX/bin/ --docdir=$PREFIX/doc/ --enable-nonfree --enable-cuda > --enable-cuvid --enable-nvdec --enable-nvenc --enable-libnpp > --extra-cflags=-I/usr/local/CUDA/include > --extra-ldflags=-L/usr/local/CUDA/lib/x64 > ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec > > If you think configure made a mistake, make sure you are using the latest > version from Git. If the latest version fails, report the problem to the > ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. > Include the log file "ffmpeg/bld/log/config.log" produced by configure as > this will help > solve the problem. > > $ pkg-config --list-all > ... > ffnvcodec ffnvcodec - FFmpeg version of Nvidia Codec SDK headers Install clang, ensure its' in your path and rebuild. See this from your log: clang --cuda-gpu-arch=sm_30 -O2 -m32 -S -nocudalib -nocudainc --cuda-device-only -include /d/dev/cpp/ffmpeg/src/compat/cuda/cuda_runtime.h -o D:/Portable/msys64/tmp/ffconf.wKsH8Szh/test.o D:/Portable/msys64/tmp/ffconf.wKsH8Szh/test.cu ffmpeg/src/configure: line 974: clang: command not found ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Live streaming from ffmpeg: what server to use?
On Tue, 22 Oct 2019 at 00:50, Nathan Sinclair wrote: > > Hello, > > Simple question. I've found out that ffserver is no longer maintained. As > far as the project goes, tentatively need these requirements. > > 1. streaming 2 video cameras simultaneously - both of which are usb cameras. > 2. 1280x720 30fps video > 3. Able to be run on Pi4 with 2GB of memory. > > Tentatively looking for the following features - able to access stream to > record the video and take snapshots on Android tablet. > > So what server should I be looking at? > > Thanks for any help you can provide. > > Nathan The likes of nginx can be configured for this. See this for a q ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Live streaming from ffmpeg: what server to use?
On Tue, 22 Oct 2019 at 01:05, Dennis Mungai wrote: > > On Tue, 22 Oct 2019 at 00:50, Nathan Sinclair > wrote: > > > > Hello, > > > > Simple question. I've found out that ffserver is no longer maintained. As > > far as the project goes, tentatively need these requirements. > > > > 1. streaming 2 video cameras simultaneously - both of which are usb cameras. > > 2. 1280x720 30fps video > > 3. Able to be run on Pi4 with 2GB of memory. > > > > Tentatively looking for the following features - able to access stream to > > record the video and take snapshots on Android tablet. > > > > So what server should I be looking at? > > > > Thanks for any help you can provide. > > > > Nathan > > The likes of nginx can be configured for this See this for a quick start: https://github.com/arut/nginx-rtmp-module/wiki/Getting-started-with-nginx-rtmp ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] how to send metadata in mpegts via ffmpeg
> On Oct 19, 2019, at 8:39 AM, qw wrote: > > mpeg2 ts supports metadata and private data. How to send some metadata in > mpeg2 ts periodically at some fixed interval via ffmpeg? Are you talking about timed id3 metadata? >>> >>> In ISO/IEC 13818-1, 2.12 carriage of metadata gives several options for >>> transport of metadata. I don't know timed id3 metadata. >> >> … > > Thanks for your reply. > Yes, I want to transport some metadata similar to timed id3 metadata. What is > id3 metadata used for? Uh. Not sure how you know you want to transport data “similar to timed id3 metadata” when you don’t know what it is, it would help if you could tell us what kind of metadata you’re looking to include… Timed ID3 tags are only used in HLS (I think, don’t quote me on that). They’re literally ID3 tags (such as that you might find in an mp3 file, for example), that are inserted at certain points in time in the TS stream. The way I’ve seen it being it used is to change the title of the stream at discontinuity points (for example it could be a tag with metadata for an episode of a TV show, then another could be inserted when ads play, or another show starts, etc) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] A query on A53 Closed captions (CC) implementation status in the hevc_nvenc encoder
Hello there, Has A53 Closed Captions support been implemented in the hevc_nvenc encoder, at the present? I see a -a53cc option emitted by ffmpeg -h encoder=h264_nvenc but omitted in hevc_nvenc. Warm regards, Dennis. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] how to send metadata in mpegts via ffmpeg
>Uh. Not sure how you know you want to transport data “similar to timed id3 >metadata” when you don’t know what it is, it would help if you could tell us >what kind of metadata you’re looking to include… > >Timed ID3 tags are only used in HLS (I think, don’t quote me on that). They’re >literally ID3 tags (such as that you might find in an mp3 file, for example), >that are inserted at certain points in time in the TS stream. > >The way I’ve seen it being it used is to change the title of the stream at >discontinuity points (for example it could be a tag with metadata for an >episode of a TV show, then another could be inserted when ads play, or another >show starts, etc) The usage of id3 timed metadata can be found in the following link: https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/HTTP_Live_Streaming_Metadata_Spec/2/2.html#//apple_ref/doc/uid/TP40010435-CH2-DontLinkElementID_9 The format of metadata in flv is of AMF, and you can find some company has implemented it, i.e. to convert amf into id3: https://www.wowza.com/docs/how-to-use-timed-metadata-in-wowza-live-streaming-workflows I think the function can be implemented in some self-defined bsf. Thanks! Regards Andrew At 2019-10-22 07:30:24, "Ted Park" wrote: > > >> On Oct 19, 2019, at 8:39 AM, qw wrote: > >> >> mpeg2 ts supports metadata and private data. How to send some metadata >> in mpeg2 ts periodically at some fixed interval via ffmpeg? > > Are you talking about timed id3 metadata? In ISO/IEC 13818-1, 2.12 carriage of metadata gives several options for transport of metadata. I don't know timed id3 metadata. >>> >>> … >> >> Thanks for your reply. >> Yes, I want to transport some metadata similar to timed id3 metadata. What >> is id3 metadata used for? > > >Uh. Not sure how you know you want to transport data “similar to timed id3 >metadata” when you don’t know what it is, it would help if you could tell us >what kind of metadata you’re looking to include… > >Timed ID3 tags are only used in HLS (I think, don’t quote me on that). They’re >literally ID3 tags (such as that you might find in an mp3 file, for example), >that are inserted at certain points in time in the TS stream. > >The way I’ve seen it being it used is to change the title of the stream at >discontinuity points (for example it could be a tag with metadata for an >episode of a TV show, then another could be inserted when ads play, or another >show starts, etc) >___ >ffmpeg-user mailing list >ffmpeg-user@ffmpeg.org >https://ffmpeg.org/mailman/listinfo/ffmpeg-user > >To unsubscribe, visit link above, or email >ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] error compiling ffmpeg ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec
That fixed the error you found but not the error I reported. Thanks for solving a problem I had not yet identified. -- Sent from: http://www.ffmpeg-archive.org/ ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".