[FFmpeg-user] hls & Continuity check failed
Hello. I'm using ffmpeg to get a stream(hls) and send it to a media server. After some time i keep getting the following error and the video will never be corrected(i mean i see no video at all). I have to restart ffmpeg. [mpegts @ 0x559c3a0] Continuity check failed for pid 4095 expected 1 got 0 frame= 4314 fps=2.3 q=23.0 size= 37963kB time=00:04:56.06 bitrate=1050.4kbits/s dup=0 drop=2864 speed=0.16x [AVIOContext @ 0x7d56d00] Statistics: 144760 bytes read, 0 seeks [hls,applehttp @ 0x5575020] HLS request for url 'foo', offset 0, playlist 4 [hls,applehttp @ 0x5575020] Opening 'bar' for reading [http @ 0x7d5d700] request: GET foobar1 HTTP/1.1 User-Agent: Mozilla/5.0 (Linux; Android 5.1.1; SM-G928X Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Mobile Safari/537.36 Accept: */* Connection: close Host: foobar Cookie: foofoo Icy-MetaData: 1 Is there any way to fix the problem without having to restart ffmpeg? Thank you very much! ___ 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 hvc1 mp4 with ffmpeg only
Hello Moritz -san, > 2017/07/03 午後8:30、Moritz Barsnickのメール: > > Let us know how it goes... > 2017/07/03 午後9:58、桃源老師 のメール: > I'll report how this patch works after building... I have tested patched ffmpeg with the following command line: $ ffmpeg -i sample.wmv -c:v libx265 -preset medium -crf 23 -tag:v hvc1 -c:a libfdk_aac -b:a 128k test.mp4 $ ffmpeg -i sample.wmv -c:v libx265 -preset medium -crf 23 -c:a libfdk_aac -b:a 128k test2.mp4 Result: test.mp4 is hvc1 and test2.mp4 is hev1 Off course test.mp4 can play with next macOS's QuickTime Player, and test2.mp4 can not... I can not wait for this patch would be applied to ffmpeg master!! Best Regards, // Miya aka. TougenRoushi smime.p7s Description: S/MIME cryptographic signature ___ 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 hvc1 mp4 with ffmpeg only
Hello, Sorry for careless miss!! > 2017/07/03 午後9:30、桃源老師のメール: > >> Actually, you may require some of the other patches of that series >> (1..3 of 5) for this to work. > > I applied 5 of 5 patches. I have applied old 1/5 patch. Here's URL of patches: https://patchwork.ffmpeg.org/patch/4158/ https://patchwork.ffmpeg.org/patch/4150/ https://patchwork.ffmpeg.org/patch/4152/ https://patchwork.ffmpeg.org/patch/4151/ https://patchwork.ffmpeg.org/patch/4149/ I'll report how this patch works after building... Best Regards, // Miya aka. TougenRoushi smime.p7s Description: S/MIME cryptographic signature ___ 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 hvc1 mp4 with ffmpeg only
Hello Moritz -san, > 2017/07/03 午後8:30、Moritz Barsnickのメール: > > Basically, you could store the emails as text. A better choice in this > case is to take the patches off patchwork: > > https://patchwork.ffmpeg.org/patch/4151/ > https://patchwork.ffmpeg.org/patch/4149/ > > (There's a "download patch" link on each of those pages.) > > Apply them by changing into the ffmpeg source directory before > configuring or before calling "make", and running > $ patch -p1 -i ../path/to/file.patch > > for each of the two patches. Thanks for kind explanation. > Actually, you may require some of the other patches of that series > (1..3 of 5) for this to work. I applied 5 of 5 patches. > Let us know how it goes... Then I got error while running make command: libavformat/movenc.c:6450:7: error: use of undeclared identifier 'AV_CODEC_ID_EVR' { AV_CODEC_ID_EVR , MKTAG('m', 'p', '4', 'v') }, ^ 1 error generated. It seems come from patch 1/5. Should I do not apply patch 1/5? Best Regards, // Miya aka. TougenRoushi smime.p7s Description: S/MIME cryptographic signature ___ 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 hvc1 mp4 with ffmpeg only
On Mon, Jul 03, 2017 at 13:30:51 +0200, Moritz Barsnick wrote: > https://patchwork.ffmpeg.org/patch/4151/ > https://patchwork.ffmpeg.org/patch/4149/ Actually, you may require some of the other patches of that series (1..3 of 5) for this to work. 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".
Re: [FFmpeg-user] Create hvc1 mp4 with ffmpeg only
Hi Miya, On Mon, Jul 03, 2017 at 17:41:12 +0900, 桃源老師 wrote: > > http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212956.html > > http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212956.html > > Those two URL are same. Should I apply same patch? Oh sorry, I meant two different ones. > Yes I'm building ffmpeg by myself. > But pretty beginner at create patch from E-mail. Should I copy from diff-- > line? Basically, you could store the emails as text. A better choice in this case is to take the patches off patchwork: https://patchwork.ffmpeg.org/patch/4151/ https://patchwork.ffmpeg.org/patch/4149/ (There's a "download patch" link on each of those pages.) Apply them by changing into the ffmpeg source directory before configuring or before calling "make", and running $ patch -p1 -i ../path/to/file.patch for each of the two patches. Let us know how it goes... 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".
Re: [FFmpeg-user] Create hvc1 mp4 with ffmpeg only
Hello Moritz -san, Thanks for reply... > 2017/07/03 午後4:49、Moritz Barsnickのメール: > > On Mon, Jul 03, 2017 at 16:31:22 +0900, 桃源老師 wrote: >>> No idea, but have you *tried* doing this: >>> ffmpeg -i hev1.mp4 -c:copy -tag:v hvc1 hvc1.mp4 >> >> Here's the result: > [...] >> [mp4 @ 0x7febaa001c00] Tag hvc1 incompatible with output codec id '174' >> ([35][0][0][0]) >> Could not write header for output file #0 (incorrect codec parameters ?): >> Invalid data found when processing input > [...] >> Seems that ffmpeg does not accept to use hvc1 for mp4... > > There are two patches on the development mailing list, waiting for > review and to be applied to ffmpeg master: > http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212956.html > http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212956.html Those two URL are same. Should I apply same patch? > These may or may not make it to ffmpeg HEAD really soon. Oh. > In the meantime, you can apply them to your local build (are you > building yourself?) and see whether they help you. Yes I'm building ffmpeg by myself. But pretty beginner at create patch from E-mail. Should I copy from diff-- line? Best Regards, // Miya aka. TougenRoushi smime.p7s Description: S/MIME cryptographic signature ___ 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 hvc1 mp4 with ffmpeg only
On Mon, Jul 03, 2017 at 16:31:22 +0900, 桃源老師 wrote: > > No idea, but have you *tried* doing this: > > ffmpeg -i hev1.mp4 -c:copy -tag:v hvc1 hvc1.mp4 > > Here's the result: [...] > [mp4 @ 0x7febaa001c00] Tag hvc1 incompatible with output codec id '174' > ([35][0][0][0]) > Could not write header for output file #0 (incorrect codec parameters ?): > Invalid data found when processing input [...] > Seems that ffmpeg does not accept to use hvc1 for mp4... There are two patches on the development mailing list, waiting for review and to be applied to ffmpeg master: http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212956.html http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212956.html These may or may not make it to ffmpeg HEAD really soon. In the meantime, you can apply them to your local build (are you building yourself?) and see whether they help you. Regards, 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".
Re: [FFmpeg-user] Create hvc1 mp4 with ffmpeg only
Hello Cley -san, Thanks for reply... > 2017/07/03 午後4:14、Cley Fayeのメール: > > 2017-07-03 5:43 GMT+02:00 桃源老師 : > >> But if it is possible, I'd like to create hvc1 mp4 using ffmpeg only. Is >> it possible? >> > > No idea, but have you *tried* doing this: > ffmpeg -i hev1.mp4 -c:copy -tag:v hvc1 hvc1.mp4 Here's the result: $ ffmpeg -i /Volumes/SA25-TR1-U3SV-5/hev1.mp4 -t 00:02:00 -c: copy -tag:v hvc1 hvc1.mp4 ffmpeg version N-86608-g22a03c2900 Copyright (c) 2000-2017 the FFmpeg developers built with Apple LLVM version 8.1.0 (clang-802.0.42) configuration: --prefix=/Volumes/ffmpeg_compile --pkg-config-flags=--static --disable-ffserver --enable-gpl --enable-version3 --enable-nonfree --enable-libmp3lame --enable-libfdk-aac --enable-libvo-amrwbenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libspeex --enable-libopus --enable-libgsm --enable-libtwolame --enable-libsoxr --enable-libwavpack --enable-libmodplug --enable-libopenjpeg --enable-libwebp --enable-libtheora --enable-libx264 --enable-libopenh264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libxavs --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-libass --enable-libbluray --enable-libvidstab --enable-libsnappy --enable-libzmq --enable-libzvbi libavutil 55. 66.100 / 55. 66.100 libavcodec 57. 99.102 / 57. 99.102 libavformat57. 75.100 / 57. 75.100 libavdevice57. 7.100 / 57. 7.100 libavfilter 6. 94.100 / 6. 94.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc54. 6.100 / 54. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/SA25-TR1-U3SV-5/hev1.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf57.75.100 Duration: 00:48:28.04, start: 0.00, bitrate: 593 kb/s Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, top coded first (swapped)), 1280x720 [SAR 1:1 DAR 16:9], 457 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc (default) Metadata: handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name: SoundHandler [mp4 @ 0x7febaa001c00] Tag hvc1 incompatible with output codec id '174' ([35][0][0][0]) Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Last message repeated 1 times Seems that ffmpeg does not accept to use hvc1 for mp4... Best Regards, // Miya aka. TougenRoushi smime.p7s Description: S/MIME cryptographic signature ___ 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 hvc1 mp4 with ffmpeg only
2017-07-03 5:43 GMT+02:00 桃源老師: > I also know that ffmpeg can produce hvc1 mov with the following command: > ffmpeg -i hev1.mp4 -c: copy -tag:v hvc1 hvc1.mov > > Above information (hvc1 with mov) was found by Googling: > https://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212538.html > > But if it is possible, I'd like to create hvc1 mp4 using ffmpeg only. Is > it possible? > No idea, but have you *tried* doing this: ffmpeg -i hev1.mp4 -c:copy -tag:v hvc1 hvc1.mp4 ? ___ 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".