Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Files created with Caspar are not playable in Caspar #1550

Open
Sidonai-1 opened this issue Jun 25, 2024 · 2 comments
Open

Bug: Files created with Caspar are not playable in Caspar #1550

Sidonai-1 opened this issue Jun 25, 2024 · 2 comments
Labels

Comments

@Sidonai-1
Copy link

Sidonai-1 commented Jun 25, 2024

Observed Behavior

I tried to record MP4 and MOV files, the recording works and is playable by VLC and Premiere 2024.

add 1 file test4.mp4

[2024-06-25 16:34:38.749] [info]    Received message from 127.0.0.1: add 1 file test4.mp4\r\n
[2024-06-25 16:34:38.750] [info]    ffmpeg[test4.mp4] Initialized.
[2024-06-25 16:34:38.750] [info]    Sent message to 127.0.0.1:202 ADD OK\r\n
[2024-06-25 16:34:38.816] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] using SAR=1/1
[2024-06-25 16:34:38.816] [info]    
[2024-06-25 16:34:38.817] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024-06-25 16:34:38.817] [info]    
[2024-06-25 16:34:38.834] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] profile High 4:2:2, level 5.1, 4:2:2, 8-bit
[2024-06-25 16:34:38.834] [info]    
[2024-06-25 16:34:38.834] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] 264 - core 164 r3099 e067ab0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=67 lookahead_threads=16 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[2024-06-25 16:34:38.834] [info]    
[2024-06-25 16:34:38.848] [info]    [ffmpeg] [aac @ 0000023B91C36C80] Using a PCE to encode channel layout "hexadecagonal"
[2024-06-25 16:34:38.848] [info]    
[2024-06-25 16:35:06.885] [info]    Received message from 127.0.0.1: remove 1 file test4.mp4\r\n
[2024-06-25 16:35:06.886] [info]    Sent message to 127.0.0.1:202 REMOVE OK\r\n
[2024-06-25 16:35:06.886] [info]    ffmpeg[test4.mp4] Uninitialized.
[2024-06-25 16:35:07.890] [info]    [ffmpeg] [aac @ 0000023B91C36C80] Qavg: 51076.703
[2024-06-25 16:35:07.890] [info]    
[2024-06-25 16:35:07.907] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] frame I:3     Avg QP:10.80  size: 65027
[2024-06-25 16:35:07.907] [info]    
[2024-06-25 16:35:07.907] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] frame P:202   Avg QP:20.92  size:  9984
[2024-06-25 16:35:07.907] [info]    
[2024-06-25 16:35:07.907] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] frame B:498   Avg QP:26.54  size:  4816
[2024-06-25 16:35:07.907] [info]    
[2024-06-25 16:35:07.907] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] consecutive B-frames:  1.1%  2.8% 31.2% 64.9%
[2024-06-25 16:35:07.907] [info]    
[2024-06-25 16:35:07.907] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] mb I  I16..4: 87.3%  8.1%  4.7%
[2024-06-25 16:35:07.907] [info]    
[2024-06-25 16:35:07.908] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] mb P  I16..4:  2.8%  2.2%  0.3%  P16..4:  0.4%  0.3%  0.1%  0.0%  0.0%    skip:94.0%
[2024-06-25 16:35:07.908] [info]    
[2024-06-25 16:35:07.908] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] mb B  I16..4:  0.9%  0.7%  0.0%  B16..8:  1.3%  0.3%  0.0%  direct: 1.1%  skip:95.8%  L0:49.9% L1:46.0% BI: 4.0%
[2024-06-25 16:35:07.908] [info]    
[2024-06-25 16:35:07.908] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] 8x8 transform intra:37.1% inter:20.4%
[2024-06-25 16:35:07.908] [info]    
[2024-06-25 16:35:07.908] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] coded y,uvDC,uvAC intra: 15.9% 57.9% 5.9% inter: 0.1% 1.4% 0.1%
[2024-06-25 16:35:07.908] [info]    
[2024-06-25 16:35:07.908] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] i16 v,h,dc,p: 48% 15%  3% 34%
[2024-06-25 16:35:07.908] [info]    
[2024-06-25 16:35:07.908] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 35% 17%  6%  5%  5%  6%  5%  2%
[2024-06-25 16:35:07.908] [info]    
[2024-06-25 16:35:07.909] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 18% 24%  8%  7%  6%  6%  5%  3%
[2024-06-25 16:35:07.909] [info]    
[2024-06-25 16:35:07.909] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] i8c dc,h,v,p: 37% 14%  7% 43%
[2024-06-25 16:35:07.909] [info]    
[2024-06-25 16:35:07.909] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] Weighted P-Frames: Y:0.0% UV:0.0%
[2024-06-25 16:35:07.909] [info]    
[2024-06-25 16:35:07.909] [info]    [ffmpeg] [libx264 @ 0000023B91C37480] kb/s:1311.63
[2024-06-25 16:35:07.909] [info]    
[2024-06-25 16:35:08.341] [info]    ffmpeg[test4.mp4] Uninitialized.

However, Caspar can't play those same files. Invalid channel layout 0 seems to be the cause.

[2024-06-25 16:35:42.084] [info]    Received message from 127.0.0.1: PLAY 1-20 "test4.mp4" MIX 8 LINEAR RIGHT     Loop \r\n
[2024-06-25 16:35:42.090] [info]    Sent message to 127.0.0.1:202 PLAY OK\r\n
[2024-06-25 16:35:42.199] [error]   [ffmpeg] [in_1 @ 0000023B9086FD00] Invalid channel layout 0.
[2024-06-25 16:35:42.199] [error]   
[2024-06-25 16:35:42.205] [error]   Exception: D:\a\server\server\src\modules\ffmpeg\producer\av_producer.cpp(497): Throw in function auto __cdecl caspar::ffmpeg::Filter::{ctor}::<lambda_3d78c5b404e263a57fa623a88f5ad9cb>::operator ()(void) const
[2024-06-25 16:35:42.205] [error]   Dynamic exception type: class boost::exception_detail::clone_impl<struct caspar::ffmpeg::ffmpeg_error_t>
[2024-06-25 16:35:42.205] [error]   [struct boost::errinfo_api_function_ * __ptr64] = avfilter_graph_create_filter( &source, avfilter_get_by_name("abuffer"), name.c_str(), args.c_str(), nullptr, graph.get())
[2024-06-25 16:35:42.205] [error]   [struct boost::errinfo_errno_ * __ptr64] = 22, "Invalid argument"
[2024-06-25 16:35:42.205] [error]   [struct caspar::ffmpeg::tag_ffmpeg_errn_info * __ptr64] = -22
[2024-06-25 16:35:42.205] [error]   [struct caspar::tag_stacktrace_info * __ptr64] =  0# 0x00007FF6A7053427 in casparcg
[2024-06-25 16:35:42.205] [error]    1# 0x00007FF6A707F7C6 in casparcg
[2024-06-25 16:35:42.205] [error]    2# 0x00007FF6A71BF38E in casparcg
[2024-06-25 16:35:42.205] [error]    3# 0x00007FF6A71BB32F in casparcg
[2024-06-25 16:35:42.205] [error]    4# 0x00007FF6A71C26D9 in casparcg
[2024-06-25 16:35:42.205] [error]    5# 0x00007FF6A71C3256 in casparcg
[2024-06-25 16:35:42.205] [error]    6# 0x00007FF6A71BF767 in casparcg
[2024-06-25 16:35:42.205] [error]    7# 0x00007FF6A728CD93 in casparcg
[2024-06-25 16:35:42.205] [error]    8# configthreadlocale in ucrtbase
[2024-06-25 16:35:42.205] [error]    9# BaseThreadInitThunk in KERNEL32
[2024-06-25 16:35:42.205] [error]   10# RtlUserThreadStart in ntdll
[2024-06-25 16:35:42.205] [error]   
[2024-06-25 16:35:42.205] [error]   

[2024-06-25 16:35:42.205] [error]    0# 0x00007FF6A7053427 in casparcg
[2024-06-25 16:35:42.205] [error]    1# 0x00007FF6A7052EAA in casparcg
[2024-06-25 16:35:42.205] [error]    2# 0x00007FF6A73350E7 in casparcg
[2024-06-25 16:35:42.205] [error]    3# 0x00007FF8CE271080 in VCRUNTIME140_1
[2024-06-25 16:35:42.205] [error]    4# _NLG_Return2 in VCRUNTIME140_1
[2024-06-25 16:35:42.205] [error]    5# RtlCaptureContext2 in ntdll
[2024-06-25 16:35:42.205] [error]    6# 0x00007FF6A71BF767 in casparcg
[2024-06-25 16:35:42.205] [error]    7# 0x00007FF6A728CD93 in casparcg
[2024-06-25 16:35:42.205] [error]    8# configthreadlocale in ucrtbase
[2024-06-25 16:35:42.205] [error]    9# BaseThreadInitThunk in KERNEL32
[2024-06-25 16:35:42.205] [error]   10# RtlUserThreadStart in ntdll
[2024-06-25 16:35:42.205] [error]   

Environment

  • Server version: 2.5.0 2ffc202 Dev
  • Operating system: Windows 10
@Sidonai-1
Copy link
Author

Sidonai-1 commented Jun 25, 2024

Also I cannot find how to record in qtrle with alpha.

When I add -c:v qtrle it says "unused"

Edit: Nevermind, using the long label for the qtrle codec works: add 1-1 FILE test.mov -codec:v qtrle, but they have the same issue I mention above when playing.

@Sidonai-1
Copy link
Author

I tried playing those files with version 2.0.7 and they play no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant