
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (108)
-
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (7988)
-
FFmpeg warning : could not find codec parameters for stream 1 [closed]
17 avril 2020, par MocchiHello : I have videos in the TS container that are Advanced Video Codec created by Elgato Game Capture HD60 Pro. I am trying to convert the TS videos because sometimes the Elgato MP4 output videos have audio/video sync issues. I have been trying for a few days now to get a clean remuxed video into MP4. I am using this simple batch file :



ffmpeg -analyzeduration 10000M -probesize 10000000M -i "Game Video.ts" -acodec copy -vcodec copy "Game Video.mp4"
pause




I always get these warnings no matter what I have tried. even if I use the -vn command to ignore the video. which makes me believe FFmpeg is seeing something or can't read something in my source video. The Source video Information via Media Info is here, there is 12 Audio streams which are all the same and I only put the first two here :



General
ID : 1 (0x1)
Complete name : P :\Game Video.ts
Format : MPEG-TS
File size : 8.82 GiB
Duration : 54 min 43 s
Overall bit rate mode : Variable
Overall bit rate : 23.1 Mb/s



Video
ID : 100 (0x64)
Menu ID : 2 (0x2)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 1 frame
Format settings, GOP : M=1, N=15
Codec ID : 27
Duration : 54 min 43 s
Bit rate mode : Variable
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Color range : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709



Audio #1
ID : 101 (0x65)
Menu ID : 2 (0x2)
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Format version : Version 4
Muxing mode : ADTS
Codec ID : 15-2
Duration : 54 min 43 s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : 13 ms
Language : English



Audio #2
ID : 103 (0x67)
Menu ID : 2 (0x2)
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Format version : Version 4
Muxing mode : ADTS
Codec ID : 15-2
Duration : 54 min 43 s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : 13 ms
Language : English



FFmpeg does create a MP4 video which seems to be good ; the Media Info is here :



General
Complete name : P :\Game Video.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 7.44 GiB
Duration : 54 min 43 s
Overall bit rate mode : Variable
Overall bit rate : 19.5 Mb/s
Writing application : Lavf58.29.100



Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 1 frame
Format settings, GOP : M=1, N=15
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 54 min 43 s
Bit rate mode : Variable
Bit rate : 19.2 Mb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 59.862 FPS
Minimum frame rate : 0.461 FPS
Maximum frame rate : 59.960 FPS
Original frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.348
Stream size : 7.35 GiB (99%)
Color range : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC



Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 54 min 43 s
Bit rate mode : Constant
Bit rate : 221 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 86.5 MiB (1%)
Language : English
Default : Yes
Alternate group : 1



I have not been able to figure out how to address the FFmpeg warnings and I am concerned that there is something wrong with the video that I will not find out until after I delete the source video. Any help is appreciated. here is the output from FFmpeg :



P:\>ffmpeg -analyzeduration 10000M -probesize 10000000M -i "Game Video.ts" -acod
ec copy -vcodec copy "Game Video.mp4"
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 9.2.1 (GCC) 20200122
 configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libas
s --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libth
eora --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 --enable-libopenm
pt
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
[mpegts @ 00000000003b8fc0] start time for stream 1 is not set in estimate_timin
gs_from_pts
[mpegts @ 00000000003b8fc0] Could not find codec parameters for stream 1 (Video:
 mpeg2video ([2][0][0][0] / 0x0002), none(tv)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'Game Video.ts':
 Duration: 00:54:43.40, start: 505.283956, bitrate: 23076 kb/s
 Program 2
 Stream #0:0[0x64]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc,
 bt709, progressive), 1280x720 [SAR 96:96 DAR 16:9], 59.94 fps, 59.94 tbr, 90k t
bn, 119.88 tbc
 Stream #0:1[0x66]: Video: mpeg2video ([2][0][0][0] / 0x0002), none(tv), 90k
tbr, 90k tbn, 90k tbc
 Stream #0:2[0x67](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 225 kb/s
 Stream #0:3[0x69](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 224 kb/s
 Stream #0:4[0x3ec](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 225 kb/s
 Stream #0:5[0x3f0](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 224 kb/s
 Stream #0:6[0x3f7](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 225 kb/s
 Stream #0:7[0x65](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 225 kb/s
 Stream #0:8[0x3f3](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 225 kb/s
 Stream #0:9[0x3eb](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 225 kb/s
 Stream #0:10[0x3f5](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz
, stereo, fltp, 225 kb/s
 Stream #0:11[0x3ed](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz
, stereo, fltp, 225 kb/s
 Stream #0:12[0x3f1](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz
, stereo, fltp, 225 kb/s
 Stream #0:13[0x4e7](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz
, stereo, fltp, 225 kb/s
Output #0, mp4, to 'Game Video.mp4':
 Metadata:
 encoder : Lavf58.29.100
 Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709, pro
gressive), 1280x720 [SAR 96:96 DAR 16:9], q=2-31, 59.94 fps, 59.94 tbr, 90k tbn,
 90k tbc
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, flt
p, 225 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 3067 fps=0.0 q=-1.0 size= 111616kB time=00:00:51.16 bitrate=17871.9kbits
frame= 5766 fps=5766 q=-1.0 size= 220160kB time=00:01:36.19 bitrate=18748.6kbit
frame= 8478 fps=5652 q=-1.0 size= 330496kB time=00:02:21.42 bitrate=19143.9kbit
frame=11166 fps=5583 q=-1.0 size= 438272kB time=00:03:06.28 bitrate=19273.1kbit
frame=13962 fps=5254 q=-1.0 size= 549632kB time=00:03:52.94 bitrate=19329.1kbit
frame=16771 fps=5312 q=-1.0 size= 662784kB time=00:04:39.79 bitrate=19405.7kbit
frame=19591 fps=5357 q=-1.0 size= 775424kB time=00:05:26.85 bitrate=19434.7kbit
frame=22357 fps=5378 q=-1.0 size= 887808kB time=00:06:12.99 bitrate=19498.6kbit
frame=24205 fps=5197 q=-1.0 size= 963584kB time=00:06:43.80 bitrate=19548.3kbit
frame=26914 fps=5219 q=-1.0 size= 1073152kB time=00:07:29.02 bitrate=19578.4kbit
frame=28873 fps=5104 q=-1.0 size= 1149696kB time=00:08:01.71 bitrate=19551.8kbit
frame=31566 fps=5127 q=-1.0 size= 1256704kB time=00:08:46.63 bitrate=19548.3kbit
frame=33579 fps=5022 q=-1.0 size= 1336832kB time=00:09:20.21 bitrate=19548.3kbit
frame=36292 fps=5050 q=-1.0 size= 1444096kB time=00:10:05.46 bitrate=19538.7kbit
frame=38205 fps=4970 q=-1.0 size= 1519872kB time=00:10:37.40 bitrate=19533.7kbit
frame=41030 fps=5012 q=-1.0 size= 1631488kB time=00:11:24.52 bitrate=19524.6kbit
frame=43471 fps=4947 q=-1.0 size= 1729280kB time=00:12:05.25 bitrate=19532.9kbit
frame=46199 fps=4974 q=-1.0 size= 1838080kB time=00:12:50.75 bitrate=19536.1kbit
frame=48026 fps=4907 q=-1.0 size= 1909760kB time=00:13:21.24 bitrate=19525.6kbit
frame=50849 fps=4943 q=-1.0 size= 2022144kB time=00:14:08.34 bitrate=19526.8kbit
frame=53324 fps=4909 q=-1.0 size= 2120960kB time=00:14:49.64 bitrate=19530.2kbit
frame=56043 fps=4933 q=-1.0 size= 2231552kB time=00:15:34.99 bitrate=19551.8kbit
frame=58032 fps=4892 q=-1.0 size= 2316288kB time=00:16:08.15 bitrate=19599.2kbit
frame=60918 fps=4928 q=-1.0 size= 2436608kB time=00:16:56.31 bitrate=19640.2kbit
frame=62869 fps=4878 q=-1.0 size= 2516480kB time=00:17:28.85 bitrate=19654.8kbit
frame=65418 fps=4886 q=-1.0 size= 2622464kB time=00:18:11.39 bitrate=19684.3kbit
frame=67200 fps=4839 q=-1.0 size= 2696960kB time=00:18:41.12 bitrate=19706.5kbit
frame=69648 fps=4841 q=-1.0 size= 2799360kB time=00:19:22.17 bitrate=19732.3kbit
frame=72165 fps=4802 q=-1.0 size= 2908160kB time=00:20:04.20 bitrate=19783.8kbit
frame=74787 fps=4816 q=-1.0 size= 3016704kB time=00:20:47.93 bitrate=19803.0kbit
frame=76580 fps=4775 q=-1.0 size= 3090432kB time=00:21:19.98 bitrate=19779.1kbit
frame=78741 fps=4761 q=-1.0 size= 3182080kB time=00:21:57.86 bitrate=19780.2kbit
frame=81470 fps=4781 q=-1.0 size= 3295232kB time=00:22:43.39 bitrate=19799.6kbit
frame=84198 fps=4801 q=-1.0 size= 3409664kB time=00:23:28.87 bitrate=19825.7kbit
frame=86826 fps=4813 q=-1.0 size= 3519744kB time=00:24:12.75 bitrate=19847.6kbit
frame=89508 fps=4828 q=-1.0 size= 3626752kB time=00:24:57.49 bitrate=19840.1kbit
frame=91254 fps=4793 q=-1.0 size= 3699456kB time=00:25:26.61 bitrate=19851.8kbit
frame=94034 fps=4813 q=-1.0 size= 3817472kB time=00:26:12.99 bitrate=19881.1kbit
frame=96349 fps=4808 q=-1.0 size= 3911168kB time=00:26:51.62 bitrate=19880.7kbit
frame=98600 fps=4801 q=-1.0 size= 4004864kB time=00:27:29.17 bitrate=19893.5kbit
frame=100838 fps=4793 q=-1.0 size= 4098048kB time=00:28:06.48 bitrate=19906.0kbi
frame=103620 fps=4811 q=-1.0 size= 4206848kB time=00:28:52.92 bitrate=19886.9kbi
frame=105687 fps=4795 q=-1.0 size= 4292608kB time=00:29:27.40 bitrate=19896.4kbi
frame=107646 fps=4776 q=-1.0 size= 4374016kB time=00:30:00.10 bitrate=19905.4kbi
frame=110196 fps=4752 q=-1.0 size= 4482560kB time=00:30:42.66 bitrate=19928.2kbi
frame=112831 fps=4763 q=-1.0 size= 4592896kB time=00:31:26.61 bitrate=19943.1kbi
frame=114561 fps=4736 q=-1.0 size= 4667648kB time=00:31:55.47 bitrate=19962.3kbi
frame=116471 fps=4714 q=-1.0 size= 4744960kB time=00:32:27.34 bitrate=19960.8kbi
frame=119043 fps=4723 q=-1.0 size= 4850432kB time=00:33:10.25 bitrate=19964.7kbi
frame=120907 fps=4704 q=-1.0 size= 4930816kB time=00:33:41.35 bitrate=19983.2kbi
frame=122932 fps=4691 q=-1.0 size= 5012992kB time=00:34:15.10 bitrate=19982.6kbi
frame=125679 fps=4706 q=-1.0 size= 5123584kB time=00:35:00.94 bitrate=19977.8kbi
frame=127629 fps=4691 q=-1.0 size= 5205760kB time=00:35:33.48 bitrate=19988.7kbi
frame=129623 fps=4679 q=-1.0 size= 5284864kB time=00:36:06.76 bitrate=19980.8kbi
frame=132378 fps=4693 q=-1.0 size= 5394432kB time=00:36:52.71 bitrate=19971.5kbi
frame=134255 fps=4677 q=-1.0 size= 5469440kB time=00:37:24.05 bitrate=19966.4kbi
frame=136291 fps=4667 q=-1.0 size= 5549312kB time=00:37:58.03 bitrate=19955.7kbi
frame=139035 fps=4680 q=-1.0 size= 5658368kB time=00:38:43.79 bitrate=19947.2kbi
frame=140864 fps=4663 q=-1.0 size= 5730560kB time=00:39:14.30 bitrate=19939.9kbi
frame=142685 fps=4647 q=-1.0 size= 5801984kB time=00:39:44.68 bitrate=19931.3kbi
frame=145415 fps=4660 q=-1.0 size= 5910528kB time=00:40:30.25 bitrate=19923.4kbi
frame=147296 fps=4646 q=-1.0 size= 5984000kB time=00:41:01.61 bitrate=19914.1kbi
frame=149243 fps=4634 q=-1.0 size= 6060032kB time=00:41:34.10 bitrate=19904.4kbi
frame=151934 fps=4645 q=-1.0 size= 6164992kB time=00:42:18.99 bitrate=19891.2kbi
frame=153880 fps=4634 q=-1.0 size= 6241280kB time=00:42:51.48 bitrate=19882.9kbi
frame=155799 fps=4622 q=-1.0 size= 6316032kB time=00:43:23.50 bitrate=19873.6kbi
frame=158502 fps=4633 q=-1.0 size= 6426112kB time=00:44:08.60 bitrate=19875.7kbi
frame=160503 fps=4624 q=-1.0 size= 6505984kB time=00:44:41.98 bitrate=19872.2kbi
frame=162396 fps=4612 q=-1.0 size= 6584832kB time=00:45:13.58 bitrate=19878.9kbi
frame=165264 fps=4628 q=-1.0 size= 6705920kB time=00:46:01.43 bitrate=19893.6kbi
frame=167267 fps=4619 q=-1.0 size= 6788608kB time=00:46:34.84 bitrate=19898.2kbi
frame=169281 fps=4611 q=-1.0 size= 6873600kB time=00:47:08.42 bitrate=19908.1kbi
frame=171831 fps=4607 q=-1.0 size= 6972160kB time=00:47:50.95 bitrate=19894.4kbi
frame=174586 fps=4619 q=-1.0 size= 7080192kB time=00:48:36.95 bitrate=19884.1kbi
frame=176481 fps=4608 q=-1.0 size= 7156736kB time=00:49:08.54 bitrate=19883.7kbi
frame=178470 fps=4599 q=-1.0 size= 7234560kB time=00:49:41.74 bitrate=19876.1kbi
frame=181282 fps=4612 q=-1.0 size= 7344128kB time=00:50:28.65 bitrate=19864.6kbi
frame=183059 fps=4598 q=-1.0 size= 7414784kB time=00:50:58.33 bitrate=19861.1kbi
frame=185151 fps=4588 q=-1.0 size= 7496960kB time=00:51:33.23 bitrate=19854.7kbi
frame=188046 fps=4603 q=-1.0 size= 7610368kB time=00:52:21.50 bitrate=19845.3kbi
frame=189885 fps=4591 q=-1.0 size= 7685888kB time=00:52:52.20 bitrate=19848.3kbi
frame=193431 fps=4621 q=-1.0 size= 7761408kB time=00:53:51.34 bitrate=19676.5kbi
frame=196550 fps=4669 q=-1.0 Lsize= 7799116kB time=00:54:43.37 bitrate=19458.7kb
its/s speed= 78x
video:7704206kB audio:89623kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.067837%




Do I need to tell FFmpeg more information about the source file which I have seen suggested but I have been unable to implement. Again all Help is appreciated


-
ffmpeg make slideshow with images and videos
6 avril 2020, par atticusI'm trying to make a slideshow with ffmpeg that should contain videos and images. Since as far as I know, ffmpeg cannot do this in one step (which would be of course the preferable step)
I'm breaking it up to make a slideshow of some images and concatenate the resulting video with another video.



The problem with this is that when making a slideshow with ffmpeg (like described here : https://trac.ffmpeg.org/wiki/Slideshow) the framerate is adjusted to make it possible to view one image for a longer time.



Now I've got multiple videos with different framerates to concatenate which is no good (I didn't got it working).



I also tried to make the slideshow with a higher framerate (with
-vf fps=25
) but I didn't got this working.


(since I have images from different locations/not all images of the current directory should be concatenated at once I really need to use the concat demuxer (as far as I know))



Does someone know how to do this right ?





What I already tried :



ffmpeg -safe 0 -f concat -i tmp -vsync vfr -pix_fmt yuv420p -vf fps=25 output.mkv




with a file tmp looking like this : (see the link above for reference)



file /path/to/file1.JPG
duration 2
file /path/to/file2.JPG
duration 2
file /path/to/file2.JPG




This gives me a video which somehow only the first image.





ffmpeg -safe 0 -f concat -i tmp -vsync vfr -pix_fmt yuv420p output.mkv




with a file tmp looking like this : (see the link above for reference)



file /path/to/file1.JPG
duration 2
file /path/to/file2.JPG
duration 2
file /path/to/file2.JPG




This gives me a file which shows all images at the right rate (everything right up to now) but I'm unable to concatenate it with the right video (25fps) with
ffmpeg -safe 0 -f concat -i <(printf "file ${PWD}/%s\n" "output.mkv" "video.mp4") -c copy out.mkv





EDIT : The main problem is the concatenation of these two Files :



$ mediainfo video2.MTS
General
ID : 1 (0x1)
Complete name : video2.MTS
Format : MPEG-TS
File size : 8.95 MiB
Duration : 8 s 240 ms
Overall bit rate mode : Variable
Overall bit rate : 9 024 kb/s
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty

Video
ID : 256 (0x100)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : 27
Duration : 8 s 320 ms
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 159 r2991 1771b55
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID : 257 (0x101)
Menu ID : 1 (0x1)
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Format version : Version 4
Muxing mode : ADTS
Codec ID : 15-2
Duration : 8 s 192 ms
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : -21 ms

Menu
ID : 4096 (0x1000)
Menu ID : 1 (0x1)
Duration : 8 s 240 ms
List : 256 (0x100) (AVC) / 257 (0x101) (AAC)
Service name : Service01
Service provider : FFmpeg
Service type : digital television




and



$ mediainfo output.mkv
General
Unique ID : 28406040384100140874396026026809692875 (0x155ECDEBB2C5FEFE07B31D86D8B512CB)
Complete name : output.mkv
Format : Matroska
Format version : Version 4
File size : 10.2 MiB
Duration : 6 s 83 ms
Overall bit rate : 14.0 Mb/s
Writing application : Lavf58.29.100
Writing library : Lavf58.29.100
ErrorDetectionType : Per level 1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L6
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 6 s 63 ms
Width : 5 184 pixels
Height : 3 888 pixels
Display aspect ratio : 4:3
Frame rate mode : Variable
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 159 r2991 1771b55
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Duration : 6 s 83 ms
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Writing library : Lavc58.54.100 aac
Default : Yes
Forced : No



-
TVHeadend not using codec copy on an IPTV stream ?
3 avril 2020, par petaireSo I'm using the great TVHeadend, which is in my case a DVB-T or IPTV server that can record greatly some inputs. This is a great piece of software, which I recommend much.



But I'm a little bit confused in here. So I've set up a tvheadend on a raspberry pi 4, because I need for my work to record a lot of tv programs. I appreciate TVheadend very much on an other installation, and so are my coworkers who also needs to use it and not a CLI only interface (that's relevant you'll see).



So when I'm using a simple ffmpeg command like this :



ffmpeg -err_detect ignore_err -i http://mystream -to 00:10:00 -codec copy /media/partage/dvr/test.mp4




my cpu usage goes to something like 1 or 2% percent. But when I'm trying to replicate that in tvheadend, the cpu goes to 400%, and clearly it's not the same behavior.



Here my stream configuration :






Here's the result with ffmpeg codec copy :



General
Complete name : /Volumes/Share/dvr/test2.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 58.3 MiB
Duration : 3mn 20s
Overall bit rate : 2 436 Kbps
Writing application : Lavf58.20.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings : 2 Ref Frames
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Format settings, GOP : M=3, N=50
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 3mn 20s
Bit rate : 2 300 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.100
Stream size : 55.0 MiB (94%)
Codec configuration box : avcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 3mn 20s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 KHz
Frame rate : 43.066 fps (1024 SPF)
Compression mode : Lossy
Stream size : 3.07 MiB (5%)
Language : French
Default : Yes
Alternate group : 1




And the result with tvheadend :



General
Complete name : /Volumes/Share/dvr/2020-04-01/BFMTV/Edition-speciale-BFMTV2020-04-0121-00.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/iso6/mp41)
File size : 8.40 MiB
Duration : 42s 486ms
Overall bit rate : 1 659 Kbps
Movie name : Edition spéciale
Writing application : Lavf58.20.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 40s 512ms
Bit rate : 11.9 Kbps
Nominal bit rate : 1 500 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 25.000 fps
Minimum frame rate : 13.885 fps
Maximum frame rate : 25.014 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.001
Stream size : 58.6 KiB (1%)
Writing library : x264 core 155 r2917 0a84d98
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=125 / keyint_min=12 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=1500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=1875 / vbv_bufsize=5625 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Codec configuration box : avcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 42s 486ms
Bit rate mode : Constant
Bit rate : 172 bps
Nominal bit rate : 172 Kbps
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 48.0 KHz
Frame rate : 46.875 fps (1024 SPF)
Compression mode : Lossy
Stream size : 915 Bytes (0%)
Language : French
Default : Yes
Alternate group : 1




As you can see, Tvheadend is making a variable bitrate and variable framerate file, which is really bad for Premiere Pro (which is the main goal for all this). Clearly it's transcoding it, which I don't need, in a format that is worst for my workflow.



My Pi4 is on Raspbian Buster, but I've also tried this with the same unfortunate result on libreelec.



Does anyone has any idea ?