mapmap icon indicating copy to clipboard operation
mapmap copied to clipboard

Media speed (rate) is back to 100% when it loops

Open skankerror opened this issue 7 years ago • 7 comments

Hi guys !

This happens on linux manjaro Qt 5.9.1 GStreamer 1.12.4 with mapmap 0.5.0 and develop branch.

When I set a paint rate at a certain level, it remains until the end of the media. On next turn rate returns to 100%. I expected it to remain to the value I set. This bug is a little more complex : if you set it (either by gui control or osc message) at the same level it's ignored.

To reproduce what I say, open a (short) video, map it, set your video rate at 1000%, let it turn until the next begining. It's now at 100%. Try to reset it to 1000%, it's still at 100%. Set it to 1001%, it turns at 1001% until the next end.

Anyway great thanks for your work !

skankerror avatar Feb 15 '18 21:02 skankerror

Thanks for the report. We probably destroy the GStreamer element and/or pipeline each time it loops. (?) We should look at this closely.

aalex avatar Feb 21 '18 21:02 aalex

We need to pause the video, change its rate, and then resume it. We then need to store that value somewhere and set it up again when the media loop is read from its start.

aalex avatar Mar 13 '18 13:03 aalex

Confirmed on macOS as well.

aalex avatar Mar 27 '18 19:03 aalex

Looks like the bug reappeared.

sofian avatar Jan 08 '20 13:01 sofian

Ok it's a bit more complicated. It seems to change following used codecs and nothing changed since commit

For example with this video, it keeps my rating for several loops (sometimes 2, sometimes 4): General Complete name : /home/ray/boulot/cueilleurs_de_brume/foret/video/Sc_3-1.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 (mp42/mp41) File size : 68.6 MiB Duration : 41 s 600 ms Overall bit rate mode : Variable Overall bit rate : 13.8 Mb/s Encoded date : UTC 2017-11-21 14:39:42 Tagged date : UTC 2017-11-21 14:39:42 TIM : 00:00:00:00

Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4 Format settings : CABAC / 3 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 3 frames Format settings, GOP : M=3, N=60 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 41 s 600 ms Bit rate mode : Variable Bit rate : 13.6 Mb/s Maximum bit rate : 21.5 Mb/s Width : 2 048 pixels Height : 768 pixels Display aspect ratio : 2.667 Frame rate mode : Constant Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.345 Stream size : 67.3 MiB (98%) Language : English Encoded date : UTC 2017-11-21 14:39:42 Tagged date : UTC 2017-11-21 14:39:42 Color range : Limited 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 : 41 s 600 ms Source duration : 41 s 643 ms Bit rate mode : Constant Bit rate : 253 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 : 1.26 MiB (2%) Source stream size : 1.26 MiB (2%) Language : English Encoded date : UTC 2017-11-21 14:39:42 Tagged date : UTC 2017-11-21 14:39:42

But with this, it returns to 100% after one loop : General Complete name : /home/ray/boulot/cueilleurs_de_brume/foret/video/Sc_1_ps_1280x720p.mov Format : QuickTime Format/Info : Original Apple specifications File size : 20.5 MiB Duration : 1 min 30 s Overall bit rate : 1 911 kb/s Encoded date : UTC 2019-01-08 19:00:13 Tagged date : UTC 2019-01-08 19:02:32 Writing library : Apple QuickTime

Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : [email protected] Format settings : 2 Ref Frames Format settings, CABAC : No Format settings, Reference frames : 2 frames Format settings, GOP : M=1, N=75 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1 min 30 s Bit rate : 1 910 kb/s 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.083 Stream size : 20.5 MiB (100%) Language : English Encoded date : UTC 2019-01-08 19:00:13 Tagged date : UTC 2019-01-08 19:02:32 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC

skankerror avatar Jan 08 '20 15:01 skankerror

With preferred codec mpeg4, only one loop. Again same behavior with last commit as with commit

General Complete name : /home/ray/Data/Vidéos/Sc_1_ps_1280x720p.mov Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 (isom/iso2/mp41) File size : 24.5 MiB Duration : 1 min 30 s Overall bit rate mode : Constant Overall bit rate : 2 282 kb/s Movie name : Sc_1_ps_1280x720p Encoded date : UTC 2020-01-09 13:00:11 Tagged date : UTC 2020-01-09 13:00:11 Writing application : HandBrake 1.3.0 2019111100

Video ID : 1 Format : MPEG-4 Visual Format profile : Simple@L1 Format settings, BVOP : No Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : mp4v-20 Duration : 1 min 30 s Bit rate mode : Constant Bit rate : 2 281 kb/s 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 Compression mode : Lossy Bits/(Pixel*Frame) : 0.099 Stream size : 24.5 MiB (100%) Writing library : Lavc58.54.100 Encoded date : UTC 2020-01-09 13:00:11 Tagged date : UTC 2020-01-09 13:00:11

skankerror avatar Jan 09 '20 13:01 skankerror

With this file It works endlessly. Maybe because it's a short video ?

skankerror avatar Jan 13 '20 15:01 skankerror