
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (97)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
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 (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (6516)
-
How can I encode a video to play on a DLink DSM-520 using FFMPEG ?
4 octobre 2015, par tolsen64I have been searching, testing, and coming up with nothing for over a week. I want to use FFMPEG to convert mp4’s and mkv’s to AVI files that will play on my DLink DSM-520. Mencoder will do it. The files that FFMPEG generates cause the player to lock up less than a minute into the video. First, here’s what I use to encode the file using Mencoder (scraped from the test.bat file that PocketDIVXEncoder generates :
mencoder.exe ftwd105.mp4 -af volnorm -srate 44100 -oac mp3lame -lameopts mode=0:cbr:br=128 -noodml -vf pp=ac,scale=720:404,crop=720:400,harddup -sws 9 -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:last_pred=2:vstrict=1:threads=2:vmax_b_frames=0:vbitrate=1200 -ffourcc XVID -o ftwd105_HDTV.avi
The output file plays perfectly on the DSM-520. Looking at the file using FFPROBE, I see this :
Input #0, avi, from 'ftwd105_HDTV.avi':
Metadata:
encoder : MEncoder Redxii-SVN-r37527-4.9.3 (x86_64)
Duration: 00:44:32.96, start: 0.000000, bitrate: 1193 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1053 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/sSo now I try the same thing with FFMPEG.
ffmpeg -i ftwd105.mp4 -vcodec mpeg4 -vtag XVID -b:v 1200k -s 720x400 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -f avi ftwd105_ffmpeg.avi
This file does not play on the media player. It plays choppy with only clicking for sound for about 15-30 seconds, then it freezes. Looking at it with FFPROBE, it looks exactly the same as the one created by Mencoder.
Input #0, avi, from 'ftwd105_ffmpeg.avi':
Metadata:
encoder : Lavf57.0.100
Duration: 00:44:33.14, start: 0.000000, bitrate: 1305 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1165 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/sSo now I encode the video using Xvid4PSP. It plays perfectly fine and FFPROBE shows this :
Input #0, avi, from 'ftwd105_ps2.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.3 | www.virtualdub-fr.org || (build 2550/release)
Duration: 00:44:33.09, start: 0.000000, bitrate: 861 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 723 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/sIt’s using Advanced Simple Profile so I look this up and change my FFMPEG options :
ffmpeg -i ftwd105.mp4 -vcodec mpeg4 -vtag XVID -b:v 1200k -s 720x400 -profile:v 15 -level 0 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -f avi ftwd105_ffmpeg.avi
But though the output file looks the same using FFPROBE as the one made by Xvid4PSP, it still doesn’t play on the DSM-520.
Input #0, avi, from 'ftwd105_ffmpeg_asp.avi':
Metadata:
encoder : Lavf57.0.100
Duration: 00:44:33.14, start: 0.000000, bitrate: 1305 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1165 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/sSo now i’m at a loss. Is FFMPEG incapable of generating a file that the DSM-520 can play ? The reason I want to use FFMPEG over Mencoder is that it’s much faster. What takes FFMPEG 15 minutes takes Mencoder 40.
I should note that all the files created by FFMPEG play fine on the PC and on my Visio television. The DSM-520 is hooked up to a bedroom tv that isn’t a smart tv.
Edit : I also tried libxvid in place of mpeg4 with the same results.
-
How can I encode a video to play on a DLink DSM-520 using FFMPEG ?
17 octobre 2020, par tolsen64I have been searching, testing, and coming up with nothing for over a week. I want to use FFMPEG to convert mp4's and mkv's to AVI files that will play on my DLink DSM-520. Mencoder will do it. The files that FFMPEG generates cause the player to lock up less than a minute into the video. First, here's what I use to encode the file using Mencoder (scraped from the test.bat file that PocketDIVXEncoder generates :



mencoder.exe ftwd105.mp4 -af volnorm -srate 44100 -oac mp3lame -lameopts mode=0:cbr:br=128 -noodml -vf pp=ac,scale=720:404,crop=720:400,harddup -sws 9 -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:last_pred=2:vstrict=1:threads=2:vmax_b_frames=0:vbitrate=1200 -ffourcc XVID -o ftwd105_HDTV.avi




The output file plays perfectly on the DSM-520. Looking at the file using FFPROBE, I see this :



Input #0, avi, from 'ftwd105_HDTV.avi':
 Metadata:
 encoder : MEncoder Redxii-SVN-r37527-4.9.3 (x86_64)
 Duration: 00:44:32.96, start: 0.000000, bitrate: 1193 kb/s
 Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1053 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
 Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s




So now I try the same thing with FFMPEG.



ffmpeg -i ftwd105.mp4 -vcodec mpeg4 -vtag XVID -b:v 1200k -s 720x400 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -f avi ftwd105_ffmpeg.avi




This file does not play on the media player. It plays choppy with only clicking for sound for about 15-30 seconds, then it freezes. Looking at it with FFPROBE, it looks exactly the same as the one created by Mencoder.



Input #0, avi, from 'ftwd105_ffmpeg.avi':
 Metadata:
 encoder : Lavf57.0.100
 Duration: 00:44:33.14, start: 0.000000, bitrate: 1305 kb/s
 Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1165 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
 Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s




So now I encode the video using Xvid4PSP. It plays perfectly fine and FFPROBE shows this :



Input #0, avi, from 'ftwd105_ps2.avi':
 Metadata:
 encoder : VirtualDubMod 1.5.10.3 | www.virtualdub-fr.org || (build 2550/release)
 Duration: 00:44:33.09, start: 0.000000, bitrate: 861 kb/s
 Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 723 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
 Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s




It's using Advanced Simple Profile so I look this up and change my FFMPEG options :



ffmpeg -i ftwd105.mp4 -vcodec mpeg4 -vtag XVID -b:v 1200k -s 720x400 -profile:v 15 -level 0 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -f avi ftwd105_ffmpeg.avi




But though the output file looks the same using FFPROBE as the one made by Xvid4PSP, it still doesn't play on the DSM-520.



Input #0, avi, from 'ftwd105_ffmpeg_asp.avi':
 Metadata:
 encoder : Lavf57.0.100
 Duration: 00:44:33.14, start: 0.000000, bitrate: 1305 kb/s
 Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1165 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
 Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s




So now i'm at a loss. Is FFMPEG incapable of generating a file that the DSM-520 can play ? The reason I want to use FFMPEG over Mencoder is that it's much faster. What takes FFMPEG 15 minutes takes Mencoder 40.



I should note that all the files created by FFMPEG play fine on the PC and on my Visio television. The DSM-520 is hooked up to a bedroom tv that isn't a smart tv.



Edit : I also tried libxvid in place of mpeg4 with the same results.


-
ffmpeg program doesn't running on shell script with java Application
20 octobre 2017, par Hae-Yoon JoI code java Application and running Linux shell-script when java App running on Linux server.
The linux shell-script is running. But, i need runnning ffmpeg program by shell.-
the ffmpeg is running with shell-script command by ./shellName.sh
-
ffmpeg is not running with java App run by .
- only ffmpeg command in shell.
- working mkdir command
- working pwd command
#!/bin/bash
echo -n "ffmpeg cmd :"
/home/popsline/ffmpeg -i /home/popsline/sub02_chocolat.mp4 -r 0.14 -ss 00:00:20 -t 10:00:00 -vframes 10 -f image2 -y /home/popsline/img/iamges%d.png
mkdir /home/username/test
pwdJava code.
HomeController.java refer sh.java as Object.
so codes is follows :HomeController.java
/**
* Simply selects the home view to render by returning its name.
*/
@RequestMapping(value = "/", method = RequestMethod.GET)
public String home(Locale locale, Model model) {
logger.info("Welcome home! The client locale is {}.", locale);
Sh sh = new Sh();
sh.shRun();
return "home";
}sh.java
private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
public void shRun(){
Runtime rt = Runtime.getRuntime();
Process proc = null;
InputStream is = null;
BufferedReader bf = null;
try {
String[] cmd = {
"/bin/sh"
, "-c"
, "/usr/local/bin/creaThum.sh"
};
proc = rt.exec(cmd);
proc.getInputStream();
is = proc.getInputStream();
bf = new BufferedReader(new InputStreamReader(is));
while (true) {
String info = bf.readLine();
if(info == null || info.equals("")){
break;
}
logger.info("info haeyoon:: " + info);
}
} catch (Exception e) {
logger.info(e.getMessage());
}
} -