updated ffmpeg to version 4.4.1, used the following as suggested:
args = dict(
forceRestart=True,
timeLimit=60 * 10,
videoType='h264',
videoFps=24,
videoScale="320:-2"
)
self.appium_driver.start_recording_screen(**args)
recordings are no longer too short!! however, some recordings don’t even open (tried with divx player and tried with vlc)
vlc gives this log:
main debug: processing request item: recording_0.mp4, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 2 items, index 1
main debug: starting playback of new item
main debug: resyncing on recording_0.mp4
main debug: recording_0.mp4 is at 1
main debug: creating new input thread
main debug: Creating an input for 'recording_0.mp4'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path: C:\Users\G4G\AppData\Local\Temp
main debug: `file:///C:/Users/G4G/Desktop/New%20folder/recording_0.mp4' gives access `file' demux `any' path `/C:/Users/G4G/Desktop/New%20folder/recording_0.mp4'
main debug: creating demux: access='file' demux='any' location='/C:/Users/G4G/Desktop/New%20folder/recording_0.mp4' file='C:\Users\G4G\Desktop\New folder\recording_0.mp4'
main debug: looking for access_demux module matching "file": 15 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
main debug: no access_demux modules matched
main debug: creating access: file:///C:/Users/G4G/Desktop/New%20folder/recording_0.mp4
main debug: (path: C:\Users\G4G\Desktop\New folder\recording_0.mp4)
main debug: looking for access module matching "file": 27 candidates
main debug: using access module "filesystem"
main debug: looking for stream_filter module matching "prefetch,cache_read": 24 candidates
cache_read debug: Using stream method for AStream*
cache_read debug: starting pre-buffering
cache_read debug: received first data after 0 ms
cache_read debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: using stream_filter module "cache_read"
main debug: looking for stream_filter module matching "any": 24 candidates
lua debug: Trying Lua scripts in C:\Users\G4G\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\G4G\AppData\Roaming\vlc\lua\playlist
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\playlist
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\anevia_streams.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\anevia_xml.luac
lua debug: Trying Lua scripts in C:\Users\G4G\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\appletrailers.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\bbc_co_uk.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\cue.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\dailymotion.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\jamendo.luac
qt debug: IM: Setting an input
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\koreus.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\liveleak.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\newgrounds.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\rockbox_fm_presets.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\soundcloud.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\twitch.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\vimeo.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\vocaroo.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\youtube.luac
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching "any": 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for file:///C:/Users/G4G/Desktop/New%20folder/recording_0.mp4
main debug: looking for stream_filter module matching "record": 24 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='file' demux='any' location='/C:/Users/G4G/Desktop/New%20folder/recording_0.mp4' file='C:\Users\G4G\Desktop\New folder\recording_0.mp4'
main debug: looking for demux module matching "mp4": 55 candidates
mp4 warning: found an invalid sized 0 box mdat @40
mp4 warning: found an invalid sized 0 box mdat @40
mp4 warning: MP4 plugin discarded (not a valid initialization chunk)
mp4 debug: freeing all memory
main debug: looking for xml reader module matching "any": 1 candidates
main debug: using xml reader module "xml"
webvtt debug: subtitle demux discarded
ts debug: TS module discarded (lost sync)
mod debug: MOD validation failed (ext=mp4)
avcodec debug: trying url: C:\Users\G4G\Desktop\New folder\recording_0.mp4
avcodec debug: CPU flags: 0x0007d3db
avcodec debug: detected format: mov,mp4,m4a,3gp,3g2,mj2
avcodec debug: Trying to seek too far : EOF?
avcodec debug: Trying to seek too far : EOF?
avcodec error: Could not open C:\Users\G4G\Desktop\New folder\recording_0.mp4: Unknown error
ps warning: this does not look like an MPEG PS stream, continuing anyway
main debug: using demux module "ps"
main debug: looking for a subtitle file in C:\Users\G4G\Desktop\New folder\
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\G4G\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.luac
main debug: no meta reader modules matched
main debug: `file:///C:/Users/G4G/Desktop/New%20folder/recording_0.mp4' successfully opened
ps warning: garbage at input from 509, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
main debug: selecting program id=0
main debug: looking for packetizer module matching "any": 25 candidates
main debug: using packetizer module "mpegvideo"
main debug: looking for video decoder module matching "any": 19 candidates
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x0007d3db
avcodec debug: allowing 6 thread(s) for decoding
avcodec debug: codec (mpeg2video) started
main debug: using video decoder module "avcodec"
ps warning: found sync code
main debug: looking for packetizer module matching "any": 25 candidates
main debug: using packetizer module "mpegaudio"
main debug: looking for audio decoder module matching "any": 23 candidates
mpg123 debug: mpga->f32l, bits per sample: 32
main debug: using audio decoder module "mpg123"
mpegvideo debug: waiting for sequence start
ps warning: garbage at input from 62128, trying to resync...
mpegvideo debug: waiting for sequence start
mpegvideo debug: waiting for sequence start
mpegaudio debug: waiting for PTS
ps warning: found sync code
ps warning: garbage at input from 116783, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 137271, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 185907, trying to resync...
ps warning: found sync code
main debug: looking for packetizer module matching "any": 25 candidates
main debug: using packetizer module "mpegvideo"
main debug: looking for video decoder module matching "any": 19 candidates
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x0007d3db
avcodec debug: allowing 6 thread(s) for decoding
avcodec debug: codec (mpeg2video) started
main debug: using video decoder module "avcodec"
ps warning: garbage at input from 203461, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 247889, trying to resync...
ps warning: found sync code
mpegvideo debug: waiting for sequence start
mpegvideo debug: waiting for sequence start
mpegvideo debug: size 1049x2592/1056x2592 fps=0.015
ps warning: garbage at input from 267334, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 314600, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 336927, trying to resync...
ps warning: found sync code
main debug: killing decoder fourcc `mpga'
main debug: removing module "mpg123"
main debug: removing module "mpegaudio"
main debug: looking for packetizer module matching "any": 25 candidates
main debug: using packetizer module "mpegaudio"
main debug: looking for audio decoder module matching "any": 23 candidates
mpg123 debug: mpga->f32l, bits per sample: 32
main debug: using audio decoder module "mpg123"
ps warning: garbage at input from 398198, trying to resync...
ps warning: found sync code
mpegaudio debug: waiting for PTS
ps warning: garbage at input from 446135, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 464560, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 515197, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 534414, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 582353, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 600350, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 652543, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 671911, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 726692, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 744543, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 805302, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 858344, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 886288, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 927072, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 945373, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 992835, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1027668, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1078100, trying to resync...
ps warning: found sync code
main debug: looking for packetizer module matching "any": 25 candidates
main debug: using packetizer module "mpegvideo"
main debug: looking for video decoder module matching "any": 19 candidates
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x0007d3db
avcodec debug: allowing 6 thread(s) for decoding
avcodec debug: codec (mpeg2video) started
main debug: using video decoder module "avcodec"
ps warning: garbage at input from 1129646, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1164848, trying to resync...
mpegvideo debug: waiting for sequence start
ps warning: found sync code
mpegvideo debug: waiting for sequence start
mpegvideo debug: waiting for sequence start
ps warning: garbage at input from 1203849, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1221683, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1270614, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1290605, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1335316, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1338137, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1599385, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1683556, trying to resync...
ps warning: found sync code
main debug: Buffering 0%
ps warning: garbage at input from 1755838, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 1796667, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 2291614, trying to resync...
ps warning: found sync code
ps warning: garbage at input from 3240275, trying to resync...
main debug: EOF reached
main debug: Stream buffering done (0 ms in 0 ms)
mpegvideo debug: need a starting pts/dts
mpegvideo debug: need a starting pts/dts
mpegvideo debug: need a starting pts/dts
main error: buffer deadlock prevented
main error: buffer deadlock prevented
main error: buffer deadlock prevented
main error: buffer deadlock prevented
main debug: Decoder wait done in 0 ms
main debug: killing decoder fourcc `mpgv'
main debug: removing module "avcodec"
main debug: removing module "mpegvideo"
main debug: killing decoder fourcc `mpgv'
main debug: removing module "avcodec"
main debug: removing module "mpegvideo"
main debug: killing decoder fourcc `mpga'
main debug: removing module "mpg123"
main debug: removing module "mpegaudio"
main debug: killing decoder fourcc `mpgv'
main debug: removing module "avcodec"
main debug: removing module "mpegvideo"
main debug: removing module "ps"
main debug: Program doesn't contain anymore ES
main debug: removing module "record"
main debug: removing module "cache_read"
main debug: removing module "filesystem"
main debug: dead input
main debug: changing item without a request (current 1/2)
main debug: nothing to play
qt debug: IM: Deleting the input
tried to convert the video afterwards with ffmpeg, got this error:
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001aa8ea728c0] moov atom not found
recording_0.mp4: Invalid data found when processing input
appium log of failed video run https://gist.github.com/sSpockderpantss/aaa5c879334aefc498bf653c2be050a4