View Single Post
Old 23rd November 2019, 09:45   #6  |  Link
alturismo
Registered User
 
Join Date: May 2002
Location: Germany
Posts: 59
ok, i guess im 1 step further now, as im no expert in these things i try in my words

as i guessed it has something todo with the "start" frame i made now a test, i imported the .ts file in avisynth and jumped to the 1st found keyframe, cutted away the start, went to the last found keyframe, cutted the end.
(i use avisynth to cut commercials fast and easy so thats how i came to the "found" keyframe)

now, when i do use ffmpeg with the cutted and remuxed files hw acc works and no more errors appear ...

so my question is now, is there a cmd string to tell ffmpeg to start on the 1st found keyframe ?

i added 4 files to the shared onedrive

VU_SAT.ts -> VU_SAT_edit.ts
VU_CBL.ts -> VU_CBL_edit.ts

the edited one are cutted and remuxed (not encoded) with avisynth and working, sample result from a benchmark and no errors

Quote:
# ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i VU_CBL_edit.ts -f null - -benchmark -hide_banner
Input #0, mpegts, from 'VU_CBL_edit.ts':
Duration: 00:00:15.38, start: 0.344000, bitrate: 31796 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: hevc ([36][0][0][0] / 0x0024), yuv420p10le(tv), 3840x2160 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101](qab): Audio: eac3 ([135][0][0][0] / 0x0087), 48000 Hz, 5.1(side), fltp, 192 kb/s
Stream #0:2[0x102](qac): Audio: eac3 ([135][0][0][0] / 0x0087), 48000 Hz, stereo, fltp, 96 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
Stream #0:1 -> #0:1 (eac3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: wrapped_avframe, vaapi_vld, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 fps, 50 tbn, 50 tbc
Metadata:
encoder : Lavc58.35.100 wrapped_avframe
Stream #0:1(qab): Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s
Metadata:
encoder : Lavc58.35.100 pcm_s16le
frame= 771 fps=207 q=-0.0 Lsize=N/A time=00:00:15.42 bitrate=N/A speed=4.13x
video:404kB audio:8568kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
bench: utime=0.433s stime=0.218s rtime=3.733s
bench: maxrss=314784kB
#

Last edited by alturismo; 24th November 2019 at 08:04. Reason: updated ffmpeg command
alturismo is offline   Reply With Quote