Uwaga! Długie...
Może ktoś napisze, że ntg, ale co w ogóle jeszcze działa?
Mam dekoder dvbt2, nagrywam film, jako output mam plik ts.
Dekoder zewnętrzny HYUNDAY-DVBT-230-PVR, najnowszy firmware (od kupna
pierwszy). Wszystko jest ok, nagrywa, nie rwie podczas, sporo poprawek w
stosunku do poprzedniej wersji.
Chcę przekonwertować ts na mp4. Powiedzmy wg
https://www.vidmore.com/pl/convert-video/ts-to-mp4/
[1]
Potrzebne mi wyjaśnienie jak użyć ffmpeg do takiej operacji (chcę
sprawdzić i tę opcję)
Co zrobiłem:
PotPlayer - zabawa w ustawieniach (zmiana LAV Filter na default),
inaczej szum zamiast dźwięku, obraz z zacięciami (tragedia)
VLC - bez zmian (czysta instalka), dźwięk ok, obraz z zacięciami (tragedia)
!!! Dźwięk w obu przypadkach wyprzedza obraz (sporo)
I teraz z pomocą VLC robię konwersję z TS na TS w profilu ustawiając
takie samo wyjście jak i wejście zarówno video jak i audio. Jest prawie OK.
CEL:
Chcę wyciąć reklamy, biorę SmartCutter. Nie wczytują się pliki ts.
-------------------------------
Ok, biorę VLC i zamiast wg ww strony jako Kapsulację ustawiam MPEG-TS,
niczego innego nie zmieniam (zmiana w "Video for MPEG4 1080 TV/devices"
lub "Video for MPEG4 720 TV/devices").
Kapsulacja (MPG/MOV) ok w odtarzaczu, SmartCutter - wczytuje, drobny
ruch exception.
Od tego czasu jest wsio ok. można edytować, wycinać, wstawiać...
Duży minus - czas konwersji, dlatego [1]
============================
Tu wracam do pytania z pkt. [1]
Po wywołaniu:
ffmpeg -i twoja nazwavideon.ts -c: v libx264 nazwa_wyjściowego pliku.mp4
Mam takie coś:
**************************************************************************
c:\xTemp\vid>ffmpeg -i "Stopklatka TV-2024-04-03 20-15-55.ts" -c: v
libx264 ffmpeg.mp4
ffmpeg version 2023-02-16-git-aeceefa622-full_build-www.gyan.dev
Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontc
onfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp
--enable-bzlib --enable-lzma --enable-libsnappy --ena
ble-zlib --enable-librist --enable-libsrt --enable-libssh
--enable-libzmq --enable-avisynth --enable-libbluray --enable-
libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d
--enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enab
le-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs2 --enable-libxvid --e
nable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx
--enable-mediafoundation --enable-libass --enable-frei
0r --enable-libfreetype --enable-libfribidi --enable-liblensfun
--enable-libvidstab --enable-libvmaf --enable-libzimg --
enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
--enable-nvdec --enable-nvenc --enable-d3d11va --enable-
dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan
--enable-libplacebo --enable-opencl --enable-libcdio --enable-
libgme --enable-libmodplug --enable-libopenmpt
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable
-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc
--enable-libgsm --enable-libopencore-amrnb --ena
ble-libopus --enable-libspeex --enable-libvorbis --enable-ladspa
--enable-libbs2b --enable-libflite --enable-libmysofa -
-enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 58. 1.100 / 58. 1.100
libavcodec 60. 2.100 / 60. 2.100
libavformat 60. 2.100 / 60. 2.100
libavdevice 60. 0.100 / 60. 0.100
libavfilter 9. 2.100 / 9. 2.100
libswscale 7. 0.100 / 7. 0.100
libswresample 4. 9.100 / 4. 9.100
libpostproc 57. 0.100 / 57. 0.100
[hevc @ 00000000003b4680] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 00000000003b4680] Error parsing NAL unit #2.
[hevc @ 00000000003b4680] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 00000000003b4680] Error parsing NAL unit #2.
[mpegts @ 00000000003871c0] PES packet size mismatch
[mpegts @ 00000000003871c0] Packet corrupt (stream = 0, dts = 788671080).
[mpegts @ 00000000003871c0] PES packet size mismatch
[mpegts @ 00000000003871c0] Packet corrupt (stream = 1, dts = 788578560).
[mpegts @ 00000000003871c0] PES packet size mismatch
[mpegts @ 00000000003871c0] Packet corrupt (stream = 2, dts = 788578560).
[mpegts @ 00000000003871c0] Could not find codec parameters for stream 4
(Unknown: none ([5][0][0][0] / 0x0005)): unknow
n codec
Consider increasing the value for the 'analyzeduration' (0) and
'probesize' (5000000) options
Input #0, mpegts, from 'Stopklatka TV-2024-04-03 20-15-55.ts':
Duration: 01:09:44.33, start: 4578.784000, bitrate: 3574 kb/s
Program 27
Metadata:
service_name : ESKA TV
service_provider: Emitel
Program 28
Metadata:
service_name : TTV
service_provider: Emitel
Program 29
Metadata:
service_name : Polo TV
service_provider: Emitel
Program 30
Metadata:
service_name : ANTENA HD
service_provider: Emitel
Program 50
Metadata:
service_name : TV Trwam
service_provider: Emitel
Program 52
Metadata:
service_name : Stopklatka TV
service_provider: Emitel
Stream #0:0[0x1452]: Video: hevc (Main) ([36][0][0][0] / 0x0024),
yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 5
0 tbr, 90k tbn
Stream #0:1[0x1453](pol): Audio: eac3 ([6][0][0][0] / 0x0006), 48000
Hz, stereo, fltp, 192 kb/s
Stream #0:2[0x1454](org): Audio: eac3 ([6][0][0][0] / 0x0006), 48000
Hz, stereo, fltp, 192 kb/s
Stream #0:3[0x1456](POL): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:4[0x1457]: Unknown: none ([5][0][0][0] / 0x0005)
Program 53
Metadata:
service_name : Fokus TV
service_provider: Emitel
Program 70
Metadata:
service_name : Wydarzenia 24
service_provider: Emitel
[NULL @ 0000000003c3dd00] Unable to find a suitable output format for
'libx264'
libx264: Invalid argument
*************************************************************************************
Plik wejściowy jest ewidentnie zwalony? Choć VLC dał radę?
Chcę sprawdzić czas konwersji VLC aka ffmpeg
|