
Recherche avancée
Autres articles (53)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (6244)
-
ffmpeg does not produce smooth videos from mkv h265
13 décembre 2018, par user3776738It’s kind of subjective, but I’m not able to produce 100% smooth videos with ffmpeg.
As input I use https://www.libde265.org/hevc-bitstreams/tos-1720x720-cfg01.mkv as a example.This is a h264 mkv video which is running really badly with my vlc player on my win7 laptop.Converting it to a h264 video let it play much better, but it still appears not to be 100% smooth. Especialy in Vegas 9 it even hangs like once a second.Other h264 videos even with 1080p or bigger run perfect with vlc and much better with Vegas, so it is not my laptop.
its seems that there can be a lot of differences between h264 and h264 ??
what could i try to make them more smooth ?I’m using following command to convert the video :
ffmpeg.exe -i INPUT_FILE -ac 2 -vf scale=trunc\\(oh*a/2\\)*2:480 -c:v libx264 -sn -dn -map_metadata -1 -map_chapters -1 -profile:v high -level:v 4.0 -pix_fmt yuv420p OUTPUT_FILE
-
mobile-ffmpeg can't open gallery videos
25 juillet 2020, par MoTahirI'm trying to practice video editing with ffmpeg, I made a sample app which allows the users to either record a video then edit it or choose a video from gallery to edit.


When the user records videos with the application a temporary file is created then that file path is sent to ffmpeg to edit then save


"-i $videoPath -vf crop=ih/$screenR:ih $outPath"



I'm just cropping the video then saving it as a test, The above command works as intended without any problems.


When I try to edit videos from gallery it doesn't work, I understand that the storage system in new versions of android devices is different, the uri is just an address to the content not an actual path to the file


the video path from gallery is something like this




content ://media/external/file/38625




ffmpeg can not access the video with that path so it can't edit it, what should I do ? thank you in advance.


-
Combine videos using Ffmpeg in Lambda and S3
6 mars 2021, par Stan van WeringhGoal


Im making a video converting tool with AWS Lambda where videos can be uploaded using a webpage to a S3 bucket. When all videos (1 or more) are uploaded to the bucket a done.json file will be uploaded last. A Lambda function is called on every upload and only will do something when the final done.json is uploaded.


Code walkthrough


Once the done.json is uploaded it will get all the videos in the current folder and convert them using Ffmpeg like this :


i = 0
 ts_video_paths = []
 for video in video_paths:
 video_ts = os.path.splitext(video)[0] + '.ts'
 s3_source_signed_url = s3_client.generate_presigned_url('get_object', Params={'Bucket': S3_SOURCE_BUCKET, 'Key': video}, ExpiresIn=SIGNED_URL_TIMEOUT)
 
 ts_video_paths.append(f'/tmp/{rnd}/ts_video{i}.ts')
 ffmpeg_ts_cmd = f'/opt/bin/ffmpeg -i {s3_source_signed_url} -c:v copy -copyts -bsf:v h264_mp4toannexb -f mpegts -flags -global_header -af aresample=async=1:first_pts=0 /tmp/{rnd}/ts_video{i}.ts'
 command = shlex.split(ffmpeg_ts_cmd)
 subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 
 i += 1



After all the .ts files are made they will be made into one file (saw somewhere that you can just add .ts files)


data = b''
 for video in ts_video_paths:
 f = open(video, 'rb')
 data += f.read()
 
 f = open(f'/tmp/{rnd}/all.ts', 'wb')
 f.write(data)
 f.close() 



The last step is to convert the all.ts to a .mp4 video. In this step I sometimes can't an error. It only happens with some videos and I cant find a solution.


ffmpeg_combine_cmd = f'/opt/bin/ffmpeg -i /tmp/{rnd}/all.ts -acodec copy -vcodec copy -f mp4 /tmp/{rnd}/video.mp4'
command_final = shlex.split(ffmpeg_combine_cmd)
p2 = subprocess.run(command_final , check=True) # Sometimes gives an error videos 



Error that I get with some video converting :


Command '['/opt/bin/ffmpeg', '-i', '/tmp/CLZHC/all.ts', '-acodec', 'copy', '-vcodec', 'copy', '-f', 'mp4', '/tmp/CLZHC/video.mp4']' returned non-zero exit status 1.



My question to you


- 

- Is this the "right" way to tackle this problem ?
- Does someone know what the erro is im getting ?
- Or can anybody give me tips ?