freenode/#maemo/ Friday, 2018-08-03

sparreDo any of you happen to have some sensible video recoding suggestions for the N900?19:10
sparreI imagine that "ffmpeg" is the best tool, but which are the best parameters, if I'm going to play the videos on my N900?19:11
sparre(I'm going to live in a tent for four days.)19:13
DocScrutinizer05sparre: please elaborate20:06
DocScrutinizer05what's wrong with maemo's very own genuine camera and mediaplayer?20:06
sparreI have some existing videos in MKV format, which I wish to recode for play-back on an N900.20:07
sparreThey are a bit large (close to 4 Gb/hour), so I consider recoding in a slightly lower quality.20:08
sparreI intend to use the built-in mediaplayer, but it can't handle any format.20:09
sparreI haven't tried with my MKV files because they are a bit large.20:09
DocScrutinizer05aaah20:11
DocScrutinizer05what worked for me in internal player is https://pastebin.com/aLNvAyPm20:23
DocScrutinizer05/home/jr/Documents/N900/backup/MyDocs/.videos/Dr__House_10.11.17_00-35_rtl_50_TVOON_DE.mpg.avi: RIFF (little-endian) data, AVI, 640 x 360, 25.00 fps, video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 44100 Hz)21:04
DocScrutinizer05sparre: ^^^ HTH21:05
sparreThanks.21:40
sicelo640x360 seems small though22:27
DocScrutinizer05800*480 prolly would be optimum (wild guess) but I dodn't see that option for download22:56
DocScrutinizer05then, I wanted the stuff for plaback via CVBS to a TV composite input, and for that 640*400 sounds pretty fine22:57
DocScrutinizer05640*360 proly results in a 10% aspect ratio error on TV, which should be OKish stll22:58
DocScrutinizer05whatever, rhis is what worked for me, on holidays22:59
MaxdamantusNote that the video resolution alone does not necessarily tell you the overall aspect ratio.22:59
DocScrutinizer05using N900 and video cable for watching movies on arbitrary TVs23:00
Maxdamantus(all commonly used video encodings today support a non-1:1 pixel aspect ratio)23:00
siceloon the subject of videos, i have a video that is aboit 2hours 10 minutes long. but on N900, it always hangs at 71 minutes. however, the same file plays in its entirety on laptop.23:02
DocScrutinizer05sure I've seen better quality movie playback before, but hey for holiday when you don't want to bring your VDR or DVD-player23:02
siceloif anyone has a hint/suggestion, i'd be happy to try it23:03
DocScrutinizer05sicelo: you found a toxic sequence for the H.nnn decoder23:03
DocScrutinizer05it's a bug in N900 driver and DSP I guess23:03
siceloshould i try a different codec maybe? right now, according to OpenMediaPlayer, coded is MPEG-4 video23:05
DocScrutinizer05for fame and fun you could try truncate the video material down to that one second or one master and n times i-frames that cause the hang, then publish that as bug ticket23:06
DocScrutinizer05for just "fixing" the issue, simply resample/recode/transcode the whole video file23:07
MaxdamantusIf it's DSP, presumably reencoding the audio should suffice.23:08
Maxdamantuswhich is relatively quick: ffmpeg -i foo.mkv -vcodec copy -acodec mp3 foo-out.mkv23:09
Maxdamantus(since the main expensive thing in encoding is the video, and with the command above, it just copies the video stream instead of reencoding it)23:10
siceloi'll try that.23:10
Maxdamantus(`mp3` might have to be `mp3lame` or `libmp3lame` or something .. try looking through `ffmpeg -codecs` if none of those work)23:10
DocScrutinizer05if you could spot the segment that contains the toxic sequence we could either try to fix the DSP decoder or even build a simplistic filter like `sed -i media.avi 's/($part1)$part2($part3)/\1$DUMMY\1/g'`23:14
sicelohow could we fix dsp decoder?23:16

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!