
Recherche avancée
Autres articles (79)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (5850)
-
Metadata disappears when hevc_nvenc is used in ffmpeg (Estimated to be overwrite with null value.)
30 janvier 2020, par Dashhhdisappear metadata using at heve_nvenc
-
When using h264_cuvid and hevc_nvenc through ffmpeg on my server, the metadata of the files that come out of the encoding output is lost.
There was no such thing in h264_nvenc. Also, the libx265 encoding result has metadata. -
The ffmpeg command I used is as follows.
ffmpeg -v debug -vsync 0 -hwaccel cuvid -hwaccel_device 2 -c:v h264_cuvid \
-i ./intputfile.mp4 -map_metadata 0 -map_metadata 0:s:0 -map_metadata:s:v 0:s:v -map_metadata:s:a 0:s:a \
-map 0:v -vf hwdownload,format=nv12,format=yuv420p,scale=iw*2:ih*2 \
-c:v nvenc_hevc -preset slow -rc vbr_hq -pix_fmt yuv420p -b:v 5M -maxrate:v 8M -gpu 2 \
-map 0:a -c:a copy \
-color_range tv -colorspace bt709 -color_trc bt709 -color_primaries bt709 \
hevc_output_test.mp4- Refer to the image below for property information on the generated file.
- In the image in the link, the left pane is a playable h264_nvenc encoding deliverable file.
- In the image in the link, the right pane is a non-replayable hevc_nvenc encoding deliverable
file.- Program available for play : VLC
- Unable to play : Ubuntu 18.04 Base Video Player, Samsung Smart TV (h264_nvenc and libx265 encoded deliverables files can be played).
- Please refer to the image below for an error message displayed in the Player when it is not possible to play. (This is the default video player for ubuntu 18.04.)
-
I added ‘-f matroska’ option to the command written above and made a result.(The result file extension has also been changed to "mkv")
Unusually, metadata exists in the process in which images are made as follows :
-
However, at the end of encoding, this metadata disappears again. (It looks exactly like the first image in the right pane.)
-
The path to which this information was obtained was identified by right-clicking the file in Ubuntu (18.04) to the category "Properties" - "video/audio".
Can you tell me why this is happening ?
If not, please advise me where I should look.
CUDA : 10.2
Video SDK Version (Nvenc version) : 9.1
GPU : GeForce GTX 1080 Ti
Driver Version : 440.33.01
-
-
FFmpeg, MPEG4 video rotate and Windows
25 décembre 2017, par user3768884I have this kind of video recorded in some Samsung Galaxy phone (info from : "ffprobe -v error -show_format -show_streams filename.mp4")
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=7048499/423000000
codec_tag_string=avc1
codec_tag=0x31637661
width=1920
height=1080
coded_width=1920
coded_height=1080
has_b_frames=0
sample_aspect_ratio=0:1
display_aspect_ratio=0:1
pix_fmt=yuv420p
level=40
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=unknown
timecode=N/A
refs=1
is_avc=true
nal_length_size=4
id=N/A
r_frame_rate=30/1
avg_frame_rate=211500000/7048499
time_base=1/90000
start_pts=0
start_time=0.000000
duration_ts=7048499
duration=78.316656
bit_rate=17010472
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=2350
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:rotate=90
TAG:creation_time=2017-12-17T13:42:14.000000Z
TAG:language=eng
TAG:handler_name=VideoHandle
[SIDE_DATA]
side_data_type=Display Matrix
displaymatrix=
00000000: 0 65536 0
00000001: -65536 0 0
00000002: 0 0 1073741824
rotation=-90
[/SIDE_DATA]
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/48000
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=3772416
duration=78.592000
bit_rate=126154
max_bit_rate=128000
bits_per_raw_sample=N/A
nb_frames=3684
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:creation_time=2017-12-17T13:42:14.000000Z
TAG:language=eng
TAG:handler_name=SoundHandle
[/STREAM]
[FORMAT]
filename=original_galaxy.mp4
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=78.592000
size=167808936
bit_rate=17081528
probe_score=100
TAG:major_brand=isom
TAG:minor_version=0
TAG:compatible_brands=isom3gp4
TAG:creation_time=2017-12-17T13:42:14.000000Z
[/FORMAT]Since all my media players does not support rotate-knowledge, I have turned the video over again, and at the same time slightly decreased the resolution of command "ffmpeg -i "input.mp4" -vf "scale=720:1280,transpose=0,transpose=0" -c:a copy "output.mp4""
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1/60
codec_tag_string=avc1
codec_tag=0x31637661
width=720
height=1280
coded_width=720
coded_height=1280
has_b_frames=2
sample_aspect_ratio=0:1
display_aspect_ratio=0:1
pix_fmt=yuv420p
level=31
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=unknown
timecode=N/A
refs=1
is_avc=true
nal_length_size=4
id=N/A
r_frame_rate=30/1
avg_frame_rate=30/1
time_base=1/15360
start_pts=0
start_time=0.000000
duration_ts=1203717
duration=78.366992
bit_rate=2570692
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=2351
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:language=eng
TAG:handler_name=VideoHandler
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/48000
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=3772416
duration=78.592000
bit_rate=126154
max_bit_rate=126154
bits_per_raw_sample=N/A
nb_frames=3684
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:language=eng
TAG:handler_name=SoundHandler
[/STREAM]
[FORMAT]
filename=from_ffmpeg.mp4
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=78.592000
size=26503544
bit_rate=2697836
probe_score=100
TAG:major_brand=isom
TAG:minor_version=512
TAG:compatible_brands=isomiso2avc1mp41
TAG:encoder=Lavf57.41.100
[/FORMAT]This works very well in VLC, for example. However, Windows Media Player or Samsung TV does not play it. Windows Explorer does not even show a video thumbnail, so the video file is broken by Windows.
Is not FFmpeg able to produce a standard MPEG4 file, or what the hell is this about ? I’ve tried all the alternatives presented, such as "-fflags +genpts", "-fflags genpts", "-movflags faststart", "-movflags +faststart", "pix_fmt=yuv420p" etc. but nothing worked.
The sound I copied directly.
-
How to catch connection lost in avcodec_decode_video2 ?
3 juillet 2014, par 4ntoineI’m using android ffmpeg port and i have native crash while playing and connection lost :
07-03 16:06:45.036 831-831/? D/CrashAnrDetector﹕ Build: samsung/hltexx/hlte:4.4.2/KOT49H/N9005XXUENA7:user/release-keys
Hardware: MSM8974
Revision: 8
Bootloader: N9005XXUENA7
Radio: unknown
Kernel: Linux version 3.4.0-348029 (dpi@SWDC3316) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Sat Jan 11 09:45:51 KST 2014
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/hltexx/hlte:4.4.2/KOT49H/N9005XXUENA7:user/release-keys'
Revision: '8'
pid: 21599, tid: 25027, name: AsyncTask #4 >>> com.company.project <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0037000f
r0 8ef40b10 r1 00000002 r2 8ef40b0c r3 00000000
r4 825d0270 r5 79b51e20 r6 00370007 r7 002a001f
r8 8ef40b0c r9 79b10160 sl 8ef40bd8 fp 79c62cf8
ip 00000000 sp 8ef40ae4 lr 7c0ed1db pc 7be277fc cpsr 280f0030
d0 0000000000000000 d1 0000000000000000
d2 0000000000000000 d3 0000000000000000
d4 3fd34413509f79fb d5 40c3880000000000
d6 426d1a94a2000000 d7 42a0c6f7a0b5ed8d
d8 3f13bcd3441bd127 d9 461c40000000168b
d10 00000000441bd127 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 00240014003e000e d17 0028001c00340004
d18 0021001100390009 d19 002d001900310001
d20 00270017003d000d d21 002a001f00370007
d22 00220012003a000a d23 002e001a00320002
d24 0202020202020202 d25 fefefefefefefefe
d26 40e8fd171d2bf551 d27 402305681ecd4aa1
d28 3ff0000000000000 d29 007f007f007f007f
d30 ffffffffffffffff d31 4000000000000000
scr 88000012
backtrace:
#00 pc 001217fc /data/app-lib/com.company.project-178/libffmpeg-neon.so (av_packet_get_side_data+11)
#01 pc 003e71d7 /data/app-lib/com.company.project-178/libffmpeg-neon.so (avcodec_decode_video2+118)
stack:
8ef40aa4 00000000
8ef40aa8 00000001
8ef40aac 00000000
8ef40ab0 0000a09f
8ef40ab4 00000000
8ef40ab8 00000001
8ef40abc 4029abd9 /system/lib/libgui.so (android::Surface::queueBuffer(ANativeWindowBuffer*, int)+300)
8ef40ac0 79afa958
8ef40ac4 4002bf80
8ef40ac8 00000002
8ef40acc 00000000
8ef40ad0 00000000
8ef40ad4 00000000
8ef40ad8 79b51fd8
8ef40adc 825d0270
8ef40ae0 79b51e20
#00 8ef40ae4 825d0270
........ ........
#01 8ef40ae4 825d0270
8ef40ae8 79b51e20
8ef40aec 8ef40b10 [stack:25027]
8ef40af0 8192cfc0
8ef40af4 8ef40b0c [stack:25027]
8ef40af8 00000001
8ef40afc 00000000
8ef40b00 00000000
8ef40b04 00000000
8ef40b08 00000000
8ef40b0c 00000000
8ef40b10 003f000f
8ef40b14 00250015
8ef40b18 00350005
8ef40b1c 0029001d
8ef40b20 00390009
memory near r0:
8ef40af0 8192cfc0 8ef40b0c 00000001 00000000
8ef40b00 00000000 00000000 00000000 00000000
8ef40b10 003f000f 00250015 00350005 0029001d
8ef40b20 00390009 00210011 00310001 002d0019
8ef40b30 003d000d 00270017 00370007 002a001f
8ef40b40 003a000a 00220012 00320002 002e001a
8ef40b50 003e000e 00240014 00340004 0028001c
8ef40b60 4029a577 825d0270 79b51e20 7a049803
8ef40b70 8192cfc0 787bcf70 7b409008 79ded900
8ef40b80 7b409008 7a02c783 1d2bf551 40e8fd17
8ef40b90 7f62b6ae 3ff07dd9 6f177a70 40e8fc9f
8ef40ba0 1d2bf551 40e8fd17 7f62b6ae 3ff07dd9
8ef40bb0 ea5ecf87 0000000b 7b4c48f4 00000000
8ef40bc0 0000001c 79afa598 798ed350 0000000b
8ef40bd0 000fba45 00000000 00000000 00000001
8ef40be0 000f4240 000002c0 53b52b34 9adb02b9
memory near r2:
8ef40aec 8ef40b10 8192cfc0 8ef40b0c 00000001
8ef40afc 00000000 00000000 00000000 00000000
8ef40b0c 00000000 003f000f 00250015 00350005
8ef40b1c 0029001d 00390009 00210011 00310001
8ef40b2c 002d0019 003d000d 00270017 00370007
8ef40b3c 002a001f 003a000a 002200
07-03 16:06:45.036 831-831/? D/CrashAnrDetector﹕ processName:com.company.project
07-03 16:06:45.036 831-831/? D/CrashAnrDetector﹕ broadcastEvent : com.company.project SYSTEM_TOMBSTONE
07-03 16:06:45.036 831-1281/? I/ActivityManager﹕ Killing 24245:com.google.android.apps.magazines/u0a131 (adj 15): empty #31
07-03 16:06:45.046 831-831/? W/ContextImpl﹕ Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1468 com.android.server.analytics.data.collection.application.CrashAnrDetector.broadcastEvent:296 com.android.server.analytics.data.collection.application.CrashAnrDetector.processDropBoxEntry:254 com.android.server.analytics.data.collection.application.CrashAnrDetector.access$100:60 com.android.server.analytics.data.collection.application.CrashAnrDetector$1.onReceive:102
07-03 16:06:45.066 25171-25171/? I/SELinux﹕ Function: selinux_android_load_priority [0], There is no sepolicy file.
07-03 16:06:45.066 25171-25171/? I/SELinux﹕ Function: selinux_android_load_priority , loading version is VE=SEPF_SM-N9005_4.4.2_0013
07-03 16:06:45.066 25171-25171/? I/SELinux﹕ selinux_android_seapp_context_reload: seapp_contexts file is loaded from /data/security/spota/seapp_contexts
07-03 16:06:45.116 1049-31569/? D/KeyguardViewMediator﹕ setHidden false
07-03 16:06:45.116 1049-31569/? D/KeyguardUpdateMonitor﹕ sendKeyguardVisibilityChanged(true)
07-03 16:06:45.116 1049-1049/? D/KeyguardUpdateMonitor﹕ handleKeyguardVisibilityChanged(1)
07-03 16:06:45.166 831-1281/? I/WindowState﹕ WIN DEATH: Window{44ddb5e8 u0 SurfaceView}
07-03 16:06:45.166 1049-11393/? D/KeyguardViewMediator﹕ setHidden false
07-03 16:06:45.166 1049-11393/? D/KeyguardUpdateMonitor﹕ sendKeyguardVisibilityChanged(true)
07-03 16:06:45.166 1049-1049/? D/KeyguardUpdateMonitor﹕ handleKeyguardVisibilityChanged(1)
07-03 16:06:45.166 831-841/? I/ActivityManager﹕ Process com.company.project (pid 21599) (adj 0) has died.How can i fix it - catch exceptions or any other solution ?